Must remove QUERY_ALL_PACKAGES permission but cannot find it

Viewed 4414

Google Play Console (App Content section) declares that my published app makes use of

android.permission.QUERY_ALL_PACKAGES

and I want to remove this permission.

I checked my AndroidManifest.xml and the Merged Manifest but I cannot find it.

Where should I look at to find all permissions included by dependencies, libraries, ecc.? Thank you.

3 Answers

I didn't find exactly where this permission was requested, but there is a simple way to remove it definitely: add this to AndroidManifest.xml

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

You can find it in manifest with all other permissions and from there you can remove the line.

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
Related