microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.54k stars 1.72k forks source link

Add the code to ask the user to disable permission auto-reset #1598

Open ale5000-git opened 3 years ago

ale5000-git commented 3 years ago

@mar-v-in Please add the code to ask the user to disable permission auto-reset. This will avoid a lot of unknown problems in the future.

Info here: https://www.xda-developers.com/android-11-auto-reset-permissions-coming-to-android-6-0/

Bubu commented 2 years ago

This will be backported to Android <11 via play services update, so I don't think this is of concern to microG proper, but it still would be interesting for apps that include the ENF function. (But I suspect they'll need to deal with that themselves and microG-ENF-UI might not be the best place to put this... not sure).

As for Android 11+, I think we can add that to the self-check list. But I'm unsure if we can find out if the app is actually exempted. (I.e. will we be able to show a green checkmark when the user completed this task?)

Here's the technical details in jetpack-core: https://developer.android.com/reference/androidx/core/content/IntentCompat#createManageUnusedAppRestrictionsIntent(android.content.Context,%20java.lang.String)

ale5000-git commented 1 month ago

@Bubu @fynngodau

I have personally verified that Google is able to remove permissions of apps on Android 7 with microG Services + Google Play Store.

So even without Play Services it is a real problem.