How to Solve Error: QUERY_ALL_PACKAGES permission in Google Play Console

Last updated September 15, 2024 by Appdome

What is the Issue?

When uploading a mobile app to the Google Play Store, you might encounter the error:
“This release includes the QUERY_ALL_PACKAGES permission, which hasn’t been declared in Play Console.”

This error happens when the app is flagged for including the QUERY_ALL_PACKAGES permission in its Android Manifest without declaring it in the Play Console.

How Does Appdome Impact This?

Appdome adds certain permissions to the Android Manifest when specific security features, like Diagnostic Logs, are included in the fusion process. One such permission is QUERY_ALL_PACKAGES, which can inadvertently cause problems during the upload or testing phases of Google Play Store submission.

There are two scenarios where this issue can arise:

  1. If your app originally included the QUERY_ALL_PACKAGES Permission:
    The app will pass the upload stage but fail during Google’s internal stability tests, which prevents it from being published. Google uses RoboTest to perform sanity tests; Appdome purposely injects a detection method that shows the app is running on RoboTest and crashes the app. This is done to prevent secured Appdome apps that include exposed diagnostic logs from being uploaded and published to the Google PlayStore.
    Screenshot 2024 09 15 At 15.33.07 (1)
  2. If your app does not initially include QUERY_ALL_PACKAGES but it is added after using Appdome’s Diagnostic Logs feature:
    In this case, the app will fail at the upload stage itself and show the error mentioned above.

How to Resolve This Issue

To resolve this error and successfully publish the app:

  1. Remove the Diagnostic Logs feature from the Appdome fusion.
  2. Rebuild the app without the QUERY_ALL_PACKAGES permission.
  3. Re-upload the app to the Google Play Console.

By doing this, the app will no longer include the permission that caused the failure, allowing it to pass both the upload and stability testing phases in Google Play.

Related Articles:

How Do I Learn More?

If you have any questions, please send them our way at support.appdome.com or via the chat window on the Appdome platform.

Thank you!

Thanks for visiting Appdome! Our mission is to secure every app on the planet by making mobile app security easy. We hope we’re living up to the mission with your project.

Appdome

Want a Demo?

Cyber Release Management™

GilWe're here to help
We'll get back to you in 24 hours to schedule your demo.