googlesamples/android-testdpc
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 observed · 2026-08-28
Health v2 · maintenance only
52/100
- Activity 64
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4121
- days_rel: 723
- days_push: 216
- n_releases_24m: 1
Adoption not part of the score
1030 stars · 419 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Test DPC is a sample Device Policy Controller app for Android Enterprise that lets developers test how their apps behave in managed contexts like device owner or work profiles. It also serves as an implementation reference for other DPCs and supports provisioning via QR code, ADB, or AFW# code.
Use cases
- test my app in an android work profile
- set up a device owner on android for testing
- see how my app behaves under enterprise management policies
- provision a fully managed device with a QR code
- reference implementation for building a device policy controller
- manage security policies and app restrictions on a test device
When to choose
- you are an EMM, ISV, or OEM testing apps against Android Enterprise APIs
- you need to simulate device owner or profile owner scenarios
- you want a reference implementation of Android device policy APIs
When to avoid
- you need a production DPC for managing real enterprise fleets
- you are not working with Android Enterprise managed devices or profiles
Facets
application · maturity active
testing security developer-tools android-tools developer-tools security testing device-policy-controller android-enterprise work-profile emm sample-app device-owner provisioning android
2 sources
- readme: https://github.com/googlesamples/android-testdpc · fetched 2026-08-28 · 237a8ff0088d
- homepage: https://play.google.com/store/apps/details?id=com.afwsamples.testdpc · fetched 2026-08-29 · 44136fa355b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| googlesamples/android-testdpc | main | 52 |
For agents
markdown · JSON · MCP: product_card(name="googlesamples/android-testdpc")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem