Assigned
Status Update
Comments
vi...@google.com <vi...@google.com> #2
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
lb...@gmail.com <lb...@gmail.com> #3
@2 For some reason a bug report I've reported was marked as duplicate to here. There I've shown that the dialog isn't a confirmation at all to users, as opposed to the docs. Here I request to have some API to check if the current app is marked as restricted.
Why did you mark them as duplicates?
Description
Some apps get a restriction based on how they were installed:https://source.android.com/docs/compatibility/15/android-15-cdd#restricted-settings
https://www.androidauthority.com/android-15-restricted-settings-sideloading-3481098/
I can't find how to check if such a thing is required, as I want my apps to be installed in every way that users wish to install them, whether via the Play Store or anywhere else.
Sadly as opposed to what's written on the docs, the user doesn't have any confirmation to accept and un-restrict the app: "Restricted Settings provides a user with visible warnings and solicits user confirmation in order to grant permissions" What they get instead is a dialog that has a link to a website to explain them how to un-restrict the app (see attached image):https://www.androidauthority.com/wp-content/uploads/2024/09/Android_15_usage_access_permission_denied_access_dialog-399w-864h.png.webp
I've reported about this here: https://issuetracker.google.com/issues/366272535
Please offer an API to be able to query if the current app is marked as "restricted" , so that I could let the users reach the app-info screen to un-restrict it by themselves.
If this is already possible, and the query gets updated after the app became un-restricted, please let me know.
The only clue I've found is that at least on Android 15 (I don't know if possible on 14 and 13 that this restriction was added to, too), I could check how the current app was installed, and maybe if using
getInstallSourceInfo(currentAppPackageName).packageSource
, it will return either PACKAGE_DOWNLOADED_FILE or PACKAGE_SOURCE_LOCAL_FILE.