Test DPC is an app designed to help EMMs, ISVs, and OEMs to test their applications and platforms in a Android for Work managed profile (i.e. work profile). It serves as both a sample Device Policy Controller and a testing application to flex the APIs available for Android for Work. It supports devices running Android 5.0 Lollipop or later. As of April 13, 2016, it also supports devices running the Android N Developer Preview 2. If you are running Developer Preview 1, update your device so that it's running Developer Preview 2.
- Android N Preview SDK
- Android Build Tools v23.0.2
- Android Support Repository
This sample uses the Gradle build system. To build this project, use the "gradlew assemble" command or use "Import Project" in Android Studio. Please note that two apks will be generated when building this app: TestDPC-standard-*.apk is the apk targeting devices Android 6.0 and below while TestDPC-N-*.apk is targeting the Android N Developer Preview.
- Not saving selected permitted input methods
- Not saving "Mute audio" setting
- TestDPC thinks it is running inside a managed profile when launched in secondary user
If you've found an error in this sample, please file an issue: https://github.com/googlesamples/android-testdpc/issues
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
Licensed under the Apache 2.0 license. See the LICENSE file for details.
Please read and follow the steps in the CONTRIB file.