Test DPC
Purpose and Intended Use
• Test DPC is a sample device policy controller application developed specifically for the Android Enterprise ecosystem.
• This application serves as an educational and testing tool for developers working with enterprise mobility management solutions.
• It is crucial to understand that Test DPC is designed exclusively for development and testing environments.
• The application should never be deployed in production systems or used with real user data, as its primary function is to simulate and demonstrate device policy management capabilities in a controlled testing environment.
Core Functionality
• Test DPC provides developers with extensive capabilities to understand how applications behave under managed device conditions.
• The application supports multiple enterprise management scenarios, including device owner mode and managed profile configurations.
• Developers can utilize this tool to simulate various enterprise management situations and observe how their applications respond to different policy enforcement mechanisms.
• The feature set includes comprehensive work profile setup functionality, allowing developers to create isolated work environments on Android devices.
• Users can enable and manage work applications, configure specific application restrictions, and implement security policies that govern device behavior.
• The application supports detailed policy configuration across multiple dimensions, including security settings, application management, and data isolation controls.
Implementation Reference
• Beyond its testing capabilities, Test DPC functions as a complete implementation reference for developers building their own device policy controllers.
• The source code demonstrates proper patterns and practices for interacting with Android Enterprise APIs, making it an invaluable resource for understanding the technical implementation of device management solutions.
Developer Resources
• The complete source code is publicly available through the official Google Samples repository.
• Developers can access the implementation at the GitHub repository to examine the code structure, understand API usage patterns, and use it as a foundation for custom device policy controller development.
FAQ
Q: Who Is the Intended Audience for Test DPC?
A: Test DPC is designed primarily for software developers, IT administrators, and technical architects who work with Android enterprise mobility management solutions. If you are developing applications that need to integrate with Android Enterprise APIs, building a custom device policy controller, or simply want to understand how your application will behave when deployed in an enterprise environment with management policies in place, Test DPC is an invaluable resource for you. The tool assumes familiarity with Android development concepts and enterprise mobility management principles, making it most suitable for intermediate to advanced developers rather than beginners just getting started with Android development.
Q: Can Test DPC Be Installed on Production Devices or Used With Real User Data?
A: Absolutely not. Test DPC is strictly designed for development and testing environments only, and it should never be deployed in production systems or used with real user data. The application is explicitly labeled as a sample tool, and using it in a production environment could lead to unexpected policy enforcement, data isolation issues, and potential disruption to real users and business operations. If you need a device policy controller for production use, you should either develop a proper DPC following the patterns demonstrated in Test DPC, or deploy a commercially available enterprise mobility management solution that has been thoroughly tested and certified for production deployment.
Q: What Management Modes Does Test DPC Support?
A: Test DPC supports multiple enterprise management scenarios that are fundamental to the Android Enterprise ecosystem. The application can operate in device owner mode, which provides full device management capabilities and gives administrators comprehensive control over all aspects of the device. Additionally, Test DPC supports managed profile configurations, which enable the creation of isolated work environments that separate personal applications and data from work-related content. These two modes represent the primary approaches to Android enterprise management, and Test DPC allows developers to experiment with both to understand their respective capabilities, limitations, and appropriate use cases.
Version History
v9.0.16——4 May 2026
Test DPC is a device policy controller app that lets developers simulate Android Enterprise management and validate policies in work profile or device owner modes. Download the latest version of Test DPC to enjoy new features and updates immediately!
*9.0.16
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 ...
*9.0.15
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 ...
*9.0.14
Bug fixes.
TargetSDK is now 35.
Edge-to-edge layout improvements.
Shell commands added:
* set-screencapture-disabled
* add-persistent-preferred-activity ...
* clear-persistent-preferred-activity ...