Android platform checks
Android permissions security review
Permissions decide what an app can reach on the device and which other apps can reach it. A short review of the manifest catches most permission problems before release.
Two sides of permissions
Permissions work in two directions. Requested permissions (<uses-permission>) are what your app asks the system for, such as location or the camera. Enforced permissions are what your app demands from other apps before they can start its components or read its data. A review covers both: the app should request only what it needs, and it should not leave its own components open to any app on the device. Both belong to MASVS-PLATFORM, with requested permissions also relevant to MASVS-PRIVACY.
Permission types to know
- Normal permissions are granted at install time and cover low-risk access, such as network access.
- Signature permissions are granted only to apps signed with the same certificate as the app that defines the permission.
- Dangerous (runtime) permissions cover personal data and sensitive device features. Since Android 6.0 the user grants them at runtime and can revoke them later.
- Special permissions, such as drawing over other apps or managing all files, are granted from a system settings screen and deserve extra justification.
See the Android permissions overview for the full model.
Static check: requested permissions
Read the merged manifest of the release build, not only the source manifest, because libraries can add permissions during the build. For each dangerous or special permission, ask:
- Which feature uses it, and does the app still work without it?
- Is it requested by a third-party SDK rather than the app itself?
- Is a narrower option available? On Android 13 and later,
READ_MEDIA_IMAGES,READ_MEDIA_VIDEOandREAD_MEDIA_AUDIOreplace broad external storage reads for media. - Is it limited with
android:maxSdkVersionwhere it is only needed on older Android versions?
Static check: enforced and custom permissions
List every exported activity, service, receiver and provider and note the android:permission attribute that protects it. An exported component with no permission can be reached by any installed app. For each custom <permission> the app defines, check android:protectionLevel: signature limits access to your own apps, while normal or dangerous lets other apps obtain it. Also look for components protected by a custom permission that the app uses but never defines, or defines with a misspelled name; another app could define that permission first with a weaker protection level.
Android allows only one package to define a permission name unless the packages share a signing certificate. See defining a custom app permission.
Runtime check
On a device you are authorized to test, install the app and a small unprivileged test app with no special permissions. From the test app, try to start each exported component and query each provider. A component that responds without the expected permission is a confirmed finding; record the command, the response and the app version. Then deny each runtime permission in turn and confirm the app degrades cleanly instead of crashing or silently falling back to a less safe path.
Fix and report
Remove permissions no feature needs, prefer narrower permissions, and use signature protection for permissions that guard components meant only for your own apps. Set android:exported="false" on components that do not need outside access. In the report, separate what static review shows (a permission is requested, a component is unprotected) from what runtime testing confirmed (another app actually reached the component).