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
- Open the merged manifest (Android Studio > AndroidManifest.xml > Merged Manifest) and find which module adds the permission; SDKs often do.
- Remove it if the feature works without it, or with a narrower API (notification, picture-in-picture, MediaProjection).
- 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.
- 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 appReferences
Related checks (M6)
- PII in a response over a cacheable/first-party channel
- Supabase view in the public schema exposes auth.users
- Ads start before the user's consent (text search)
- Device/user PII sent to a third party
- Privacy manifest has invalid keys or values
- Missing Apple privacy manifest (PrivacyInfo.xcprivacy)
- Required-reason API used without a declared reason
- Third-party tracker not disclosed in the privacy manifest