Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: return a list of special permissions of the current device, so that we could prepare an explanation before reaching it #85

Open
AndroidDeveloperLB opened this issue May 31, 2022 · 0 comments

Comments

@AndroidDeveloperLB
Copy link

AndroidDeveloperLB commented May 31, 2022

Currently we have isAutoStartPermissionAvailable , but this is only for the single permission of AutoStart, and even then it's for when the repository thinks it has some solution to start the Activity.

Sadly this doesn't even work in some cases, such as on Vivo devices (sample app crashed and showed it needs a permission that can't be granted: “com.vivo.permission.manage.permission.ACCESS”) .

So my request is to have a new function that will return a Set of enum values that tell us which special permissions exist on the device.
This way, we could instruct users to reach the app-info screen (or settings screen of the OS) of the app, and find these special permissions to be granted.

Examples of special permissions on Xiaomi (tested on Redmi 8 on Android 10, MIUI 12.5.2) :

  • Autostart
  • Home screen shortcuts
  • Show on Lock screen
  • Display pop-up windows while running in the background
  • Change Wi-Fi connectivity
  • Permanent notification (enabled by default, so usually not a problem).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant