Closed jcoona closed 2 years ago
Thx! kinda interesting only PermissionChecker
causes the issue but I don't have any objection to use ContextCompat.
https://github.com/permissions-dispatcher/PermissionsDispatcher/pull/757
BTW, maybe we should report to AOSP or androidx team? sounds like a bug or lack of documentationš¤ @jcoona
Maybe, this issue is a bug of old AndroidX Core library.
See below links:
IMO, this issue is fixed on Android Core 1.7.0 or later, so, updating dependency on it is the first choice to fix this issue.
Overview
PermissionUtils.hasSelfPermissions(Context context, String... permissions)
and we include the Audio permission in this collection, it will trigger the Android 12 Privacy Indicator, and add a log to the user's privacy dashboard. See: ArticleContextCompat.checkSelfPermission(Context context, String permission)
and the indicator will not be triggered. I am wondering if the following update could be made:See: Google's documentation on requesting permissions
I am requesting this feature because in my app, I am often checking to see if a permission is granted on app launch, so that if its missing, I can present the user with an instructional page on why they may want to grant the permission. If they have it granted already, we just move on. This check will falsely cause the user to think I am unexpectedly accessing the camera / microphone.
Expected
Actual
Environment
Reproducible steps
PermissionUtils.hasSelfPermissions
orPermissionUtils.hasSelfPermission
will trigger this experience.