Is it possible to check if another app has been granted a permission on Android 6.0+?
问题 I want to check if another app has been granted a "dangerous" or "system" level permission. I have tried loading another app's context and calling packageContext.checkCallingPermission(permission). However, the documentation says it returns PERMISSION_GRANTED if the calling pid/uid is allowed that permission, or PERMISSION_DENIED if it is not. Is it possible to check if another app has been granted a permission? Here is my attempt (I wrote it before realizing it checks the calling pid/uid and