
Test DPC
Test DPC is a sample device policy controller for use with Android Enterprise.
Sample developer · com.afwsamples.testdpc
UpdatedMar 27, 2026
PublishedDec 14, 2021
Packagecom.afwsamples.testdpc
MD53b639d620295d7a04c90f1b4af96e588
SHA1 (signer)94:76:41:2B:9E:9D:0F:BC:FB:68:F8:2D:9A:17:C5:A4:85:9F:70:C6
Signed byCN=testdpc, OU=Android, O=Google Inc., L=Mountain View, ST=California, C=US
Malware scanTRUSTED
Contact[email protected]
Privacy policyView
What's new
Bug fixes.
TargetSDK is now 35.
Edge-to-edge layout improvements.
Fixed issue preventing Work Profile setup from completing successfully.
transferOwnership will no longer be available in release builds.
Shell commands added:
* set-screencapture-disabled
* add-persistent-preferred-activity ...
* clear-persistent-preferred-activity ...
TargetSDK is now 35.
Edge-to-edge layout improvements.
Fixed issue preventing Work Profile setup from completing successfully.
transferOwnership will no longer be available in release builds.
Shell commands added:
* set-screencapture-disabled
* add-persistent-preferred-activity ...
* clear-persistent-preferred-activity ...
Description
Please note that this app is for development purposes only. It is NOT intended for production usages. The app should never be used with real data.
Test DPC is a sample device policy controller for use with Android Enterprise. It gives developers the ability to see how their app will behave in a managed context such as device owner or within a managed profile. Users can set up a work profile, enable work apps, set applications restrictions, manage security polices, and much more. The app also serves as a implementation reference for other DPCs. Feel free to check out the source code at https://github.com/googlesamples/android-testdpc/.
#testdpc #androidenterprise
Test DPC is a sample device policy controller for use with Android Enterprise. It gives developers the ability to see how their app will behave in a managed context such as device owner or within a managed profile. Users can set up a work profile, enable work apps, set applications restrictions, manage security polices, and much more. The app also serves as a implementation reference for other DPCs. Feel free to check out the source code at https://github.com/googlesamples/android-testdpc/.
#testdpc #androidenterprise
Required features
- Location android.hardware.location
Permissions (44)
Test DPC requests the following Android permissions:
- Access Coarse Location android.permission.ACCESS_COARSE_LOCATION
- Access Fine Location android.permission.ACCESS_FINE_LOCATION
- Access Network State android.permission.ACCESS_NETWORK_STATE
- Access Wifi State android.permission.ACCESS_WIFI_STATE
- Change Wifi State android.permission.CHANGE_WIFI_STATE
- Download Without Notification android.permission.DOWNLOAD_WITHOUT_NOTIFICATION
- Foreground Service android.permission.FOREGROUND_SERVICE
- Foreground Service System Exempted android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED
- Get Accounts android.permission.GET_ACCOUNTS
- Internet android.permission.INTERNET
- Manage Accounts android.permission.MANAGE_ACCOUNTS
- Manage Device Policy Account Management android.permission.MANAGE_DEVICE_POLICY_ACCOUNT_MANAGEMENT
- Manage Device Policy Apps Control android.permission.MANAGE_DEVICE_POLICY_APPS_CONTROL
- Manage Device Policy Autofill android.permission.MANAGE_DEVICE_POLICY_AUTOFILL
- Manage Device Policy Camera Toggle android.permission.MANAGE_DEVICE_POLICY_CAMERA_TOGGLE
- Manage Device Policy Certificates android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES
- Manage Device Policy Display android.permission.MANAGE_DEVICE_POLICY_DISPLAY
- Manage Device Policy Install Unknown Sources android.permission.MANAGE_DEVICE_POLICY_INSTALL_UNKNOWN_SOURCES
- Manage Device Policy Locale android.permission.MANAGE_DEVICE_POLICY_LOCALE
- Manage Device Policy Location android.permission.MANAGE_DEVICE_POLICY_LOCATION
- Manage Device Policy Lock Credentials android.permission.MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS
- Manage Device Policy Mobile Network android.permission.MANAGE_DEVICE_POLICY_MOBILE_NETWORK
- Manage Device Policy Modify Users android.permission.MANAGE_DEVICE_POLICY_MODIFY_USERS
- Manage Device Policy Package State android.permission.MANAGE_DEVICE_POLICY_PACKAGE_STATE
- Manage Device Policy Query System Updates android.permission.MANAGE_DEVICE_POLICY_QUERY_SYSTEM_UPDATES
- Manage Device Policy Restrict Private Dns android.permission.MANAGE_DEVICE_POLICY_RESTRICT_PRIVATE_DNS
- Manage Device Policy Safe Boot android.permission.MANAGE_DEVICE_POLICY_SAFE_BOOT
- Manage Device Policy Sms android.permission.MANAGE_DEVICE_POLICY_SMS
- Manage Device Policy System Update Info android.permission.MANAGE_DEVICE_POLICY_SYSTEM_UPDATE_INFO
- Manage Device Policy Time android.permission.MANAGE_DEVICE_POLICY_TIME
- Manage Device Policy Vpn android.permission.MANAGE_DEVICE_POLICY_VPN
- Manage Device Policy Wallpaper android.permission.MANAGE_DEVICE_POLICY_WALLPAPER
- Manage Device Policy Wifi android.permission.MANAGE_DEVICE_POLICY_WIFI
- Package Usage Stats android.permission.PACKAGE_USAGE_STATS
- Post Notifications android.permission.POST_NOTIFICATIONS
- Query All Packages android.permission.QUERY_ALL_PACKAGES
- Read External Storage android.permission.READ_EXTERNAL_STORAGE
- Receive Boot Completed android.permission.RECEIVE_BOOT_COMPLETED
- Request Password Complexity android.permission.REQUEST_PASSWORD_COMPLEXITY
- Update Device Management Resources android.permission.UPDATE_DEVICE_MANAGEMENT_RESOURCES
- Write External Storage android.permission.WRITE_EXTERNAL_STORAGE
- Write Sync Settings android.permission.WRITE_SYNC_SETTINGS
- Providers Gsf Permission Read Gservices com.google.android.providers.gsf.permission.READ_GSERVICES
- Setupwizard Setup Compat Service com.google.android.setupwizard.SETUP_COMPAT_SERVICE