←back to thread

1192 points gniting | 1 comments | | HN request time: 0.228s | source
Show context
zx8080 ◴[] No.43519828[source]
> For extremely specific use cases such as file managers, browsers or antivirus apps, Google grants an exception by allowing QUERY_ALL_PACKAGES permission, which provides full visibility into installed apps.

Why would browser need to enumerate the installed apps?

Why?!

replies(6): >>43519852 #>>43519860 #>>43521776 #>>43522253 #>>43522261 #>>43522492 #
Borealid ◴[] No.43519852[source]
When a user visits a play.google.com URL Google wants to be able to show either an "install" or a "launch" button contingent on whether the app is already installed.

In other words, blame Google product management.

replies(5): >>43519879 #>>43520058 #>>43520420 #>>43521123 #>>43521423 #
lurking_swe ◴[] No.43519879[source]
this doesn’t make sense and sounds like an excuse IMO.

Instead of the browser enumerating all apps, why can’t it check when you visit a page if the current page (ONLY the current page) is installed as an app?

replies(1): >>43519892 #
jerbear4328 ◴[] No.43519892[source]
How would the OS know if the app that the browser is querying about is actually the current page? For all the OS knows, the user might be quickly visiting a ton of play.google.com pages for the top 1000 apps on the app store.
replies(2): >>43520010 #>>43520082 #
lurking_swe ◴[] No.43520082[source]
> How would the OS know if the app that the browser is querying about is actually the current page?

Maybe i’m missing something, but it sounds like it would be easy for google to support this functionality by letting developers configure this in their app “bundle”. A property that tells the OS “my app is related to domain example.com”. Make it an array of domains if you must.

replies(2): >>43520655 #>>43520866 #
1. charcircuit ◴[] No.43520655[source]
Intent filters can be for domains. It's how deeplinks work. But with querying being locked down you can't know what apps can handle a deeplink.