Search code examples
androidgoogle-playandroid-permissionsandroid-11

Package Visibility in new Google Play Privacy Policy


I read this link about the Google play new privacy policy. But I don't understand. Can I keep the below line without adding permission to AndroidManifest.xml and get a filtered list of device applications? And can I keep this line without adding QUERY_ALL_PACKAGES permission to AndroidManifest.xml and set the condition to get installed apps on the device for android ten and below? Both of them without adding anything to my Google Play store Privacy policy.

context.getPackageManager().getInstalledApplications(PackageManager.GET_META_DATA);

Solution

  • Can I keep the below line without adding permission to AndroidManifest.xml and get a filtered list of device applications?

    You can keep the line without modifications. However, getInstalledApplications() will not return many items. It will mostly return pre-installed applications, not user-installed applications. I do not know if that matches your "get a filtered list of device applications".

    And can I keep this line without adding QUERY_ALL_PACKAGES permission to AndroidManifest.xml and set the condition to get installed apps on the device for android ten and below?

    I do not know what "set the condition" means here. On Android 10 and below, getInstalledApplications() should return all installed applications.