Name: android-testdpc
Owner: Google Samples
Description: null
Created: 2015-05-22 02:46:28.0
Updated: 2018-05-23 09:21:04.0
Pushed: 2018-05-08 16:35:22.0
Homepage: null
Size: 6857
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Test DPC is an app designed to help EMMs, ISVs, and OEMs to test their applications and platforms in a Android enterprise 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 enterprise. It supports devices running Android 5.0 Lollipop or later.
See the documentation to learn more about Android in the enterprise.
This sample uses the Gradle build system. To build this project, use the “gradlew assemble” command or use “Import Project” in Android Studio.
You can find various kinds of provisioning methods here. Let's take a few of them as an example.
The NFC Provisioning app is used for device owner provisioning.
adb push nfcprovisioning.txt /sdcard/
adb shell dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver
The easiest way is to launch the Test DPC app in launcher and follow the onscreen instructions.
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.