Skip to content

Play Protect blocks Test DPC during QR provisioning: "App blocked to protect your device" #283

Description

@LAKSHAYNE

Summary
During QR-code (6-tap) provisioning of Test DPC as device owner on a factory-reset device, Google Play Protect blocks the app with:

App blocked to protect your device — Test DPC
This app can request access to sensitive data. This can increase the risk of identity theft or financial fraud.

Only an "OK" button is shown, so provisioning cannot continue. This started on 2026-09-19; the same flow worked before that date with no changes on our side.

Steps to reproduce

  1. Factory-reset an Android device.
  2. On the Welcome screen, tap 6 times to open the QR provisioning scanner.
  3. Scan a provisioning QR whose payload uses:
    • PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME: com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
    • PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION: an HTTPS URL serving the release APK
    • PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM: the APK signing certificate checksum
  4. The device shows "Getting ready for work", then the Play Protect "App blocked" dialog.

APK details

  • Package: com.afwsamples.testdpc
  • Version: 9.0.12 (versionCode 9012), targetSdk 34
  • Signer: CN=testdpc, O=Google Inc.
  • Signing certificate SHA-256: 8090f6630b4e8962479123249087cb4658feaae36a1b57dbeafd74d109b333dc

Expected
Provisioning completes and Test DPC becomes device owner.

Notes

  • The APK is the Google-signed release build, unmodified.
  • Other developers report Play Protect now enforcing an approved-DPC allowlist during provisioning (https://support.google.com/work/android/answer/16694822) and blocking DPCs not on it. Is Test DPC on that allowlist, and is there a recommended way to provision it now?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions