medium · M6 · MASVS-PRIVACY-1 · PTKD-GL-PLAY-RESTRICTED-PERMISSION

    Google Play restricted or sensitive permission

    The manifest uses a permission Google Play restricts or reviews closely (SMS/MMS, call log writes, accessibility, overlays, device admin, VPN, usage stats, contacts). Without an approved use case and declaration the update is rejected or the app removed.

    How it is exploited

    Not an attack: the manifest asks for SYSTEM_ALERT_WINDOW (a popup player), PACKAGE_USAGE_STATS or BIND_ACCESSIBILITY_SERVICE. Google Play restricts these because malware uses them to draw over other apps or read what users do, so each needs a core use case and a declaration.

    Why it matters

    Without the declaration, Play rejects the update; a use Google does not accept leads to removal.

    How to fix it

    1. Open the merged manifest (Android Studio > AndroidManifest.xml > Merged Manifest) and find which module adds the permission; SDKs often do.
    2. Remove it if the feature works without it, or with a narrower API (notification, picture-in-picture, MediaProjection).
    3. If the core feature needs it, fill in the matching Play Console declaration (Policy > App content), with a short video when Google asks for one.
    4. Explain the use to the user in the app before asking for the permission.

    AndroidManifest.xml (drop a permission an SDK adds)

    <uses-permission
      android:name="android.permission.SYSTEM_ALERT_WINDOW"
      tools:node="remove" />

    Does your app have this?

    PTKD checks your build or your source project for PTKD-GL-PLAY-RESTRICTED-PERMISSION and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M6)