Android Use of the broad package (App) visibility (QUERY_ALL_PACKAGES) permission

266 views
Skip to first unread message

Debin Zhang

unread,
May 9, 2022, 11:21:31 AM5/9/22
to Chromium-dev
Hi,

Google recently announced the new policy for the apps on the Play Store with regard to the QUERY_ALL_PACKAGES permission.

Our Android App is Chromium-based. Chromium has QUERY_ALL_PACKAGES permission turned on by default. Does anyone have the experience of how to get this permission for your Chromium-based apps from the Play store?

Thank you

Debin

K. Moon

unread,
May 9, 2022, 7:26:52 PM5/9/22
to debin...@gmail.com, Chromium-dev
I don't see how being Chromium-based is relevant to this discussion: If your app needs the permission, then you have to deal with the Play Store. If this happens to be a permission your app needs because it's based on Chromium, I think the right thing to do would be to eliminate the need for the permission, not get special treatment for Chromium-based apps.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/179b6e6b-aa17-4166-8f65-baa3c716166bn%40chromium.org.

Torne (Richard Coles)

unread,
May 10, 2022, 11:08:34 AM5/10/22
to K Moon, debin...@gmail.com, Chromium-dev
As far as I'm aware the reason for Chromium having this permission is so that it can look up whether URLs that get loaded in the browser should be turned into intents to launch other apps (e.g. navigating to youtube.com launching the Youtube app instead of loading it in Chromium) - since any URL could be potentially matched by any app, Chromium needs the QUERY_ALL_PACKAGES permission to get correct results.

This is why the policy lists "browsers" as one of the acceptable use cases for this permission, because any browser that wants to implement this standard Android logic will need the permission.

So, if your app behaves like a browser and allows users to follow links to arbitrary sites, and you want this standard behaviour where they will be redirected to external apps when appropriate, then you will need this permission for your app, and will have to justify this as your app being browser-like.

If your app doesn't do that, then you may be able to just remove the permission, but you may also need to make changes to the Chromium code that's responsible for intent dispatching as it may not work as expected without the permission. I'm not aware of an existing configuration option to control this.

Debin Zhang

unread,
May 10, 2022, 4:21:34 PM5/10/22
to Chromium-dev, to...@chromium.org, Debin Zhang, Chromium-dev, km...@chromium.org

Thanks! Excellent explanation. We want our app to work just like Chrome with some additional features. So we need that setting. I think the reason you give is acceptable to the Play Store admin team to allow our app to keep this setting.

Thanks again.
Reply all
Reply to author
Forward
0 new messages