Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Complete Guide to Install, Setup and Remove Test DPC


What is Test DPC

TestDPC / Test DPC is a app that is used for testing Device Policy Controller for Android Devices. This app was released by Google first in 2015. This app is smart enough to fool your Android device thinking that it is being used under a corporate context. If you are a Android App developer and want to test a specific behavior of your app under the conditions when the device would be enrolled to Work Managed or Work Profile Mode by an EMM like WorkspaceOne Intelligent Hub.
Once you set the device to Device Owner or Work Managed / Work Profile mode using the TestDPC app, you can verify the remote app performance.
If you want to understand more on Work Managed and Work Profile, you can refer this article: Difference-between-Work-Profile-and-Work-Managed-Profile.html

This app can be downloaded from the below official links and there are other links from where you can download it too.

Test DPC Google play download Link: https://play.google.com/store/apps/details?id=com.afwsamples.testdpc
Test DPC Git Hub Download Link: https://github.com/googlesamples/android-testdpc
The Source code is available for Free for this app in GitHub, so you can play around with it.
Jump to the Steps to Uninstall test DPC App.

What Test DPC does?

Android Device comes with Device Policy Controller (DPC) which controls most of the device Settings. These settings can be contolled manually, that you do from Settings but these can be also can be controlled by Enterprise Mobility Management) ISVs (Independent Software Vendor) OEMs (Original Equipment Manufacturer) 
Users can manage security polices , can set applications restrictions and much more things using this app. It also has as a implementation reference for other DPCs.
For using Test DPC app, device Rooting is not required.

List of APIs Methods available in Test DPC app

Below are the images from the Test DPC app 7.0 and the complete list of Policy Management APIs availabe within the app. Few of the setting in the main menu would contain subsettings which are not included in the list of screenshots.
 
To name few, 
Suspend apps, Unsuspend apps, clear app data, Managed configuration, Disable metered data , app feedback notification, App restrictions manager,  Delegated cert installer, generic delegation, lock task mode,Manage app permissions,Wipe etc
.
                                   


                                

                               
                           
                                


Installing test DPC

For setting the device to Device Owner , you can use below command without factory Resetting the device. The Current/latest version available is for test DPC app is 7.0.

Installing from Google Play Store

- To install, you must connect your Gmail account to your Android device.
- To download from Play Store
- Click ‘Accept’ for permissions and let it download
- Once Test DPC is installed from Play Store. 
- Follow the steps below given in the  Test DPC Initial Setup section

Installing from APK
- After downloading, go to Device Settings and then Security.
- Search for ‘Allow installation of apps from unknown sources’ and enable the option.
- Install any APK using below steps

- Install the DPC apk from adb
adb install

- And run below command to set the dpc app as Device Admin.
adb shell dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver

Test DPC Initial Setup:
Below screenshot would explain you the initial setup.
Launch the Test DPC app after installing and folow the instructions given below.

                                                   


Test DPC is one of the best Device Policy controller for Android devices and it is compatible with devices running on Lollipop (Android 5.0) and higher. 

Uninstalling Test DPC

 As you must have understood, this app is very useful but I would suggest you to uninstall it once you are done with your work. Keeping it on your device and playing around it might cause you trouble.

                                                             
- Launch the Test DPC application 
- Search for "Wipe" option 
- Click "Ok" on the prompt
- Remove the test DPC Apk from Device Apps list.  Go to Device Settings > Apps > search app and click Uninstall


You might also like to look at this quick small article on Android emulator Camera Surprise : Android-emulator-camera-surprise


This post first appeared on G33K-TRICKS - Your Source To Tips And Tricks, please read the originial post: here

Share the post

Complete Guide to Install, Setup and Remove Test DPC

×

Subscribe to G33k-tricks - Your Source To Tips And Tricks

Get updates delivered right to your inbox!

Thank you for your subscription

×