Is there a way to tell if a certain Android permission is required by which Android APIs? For example, which APIs will require the GET_TASKS or REBOOT permissions? My app, inherited from someone who's long gone, has these permissions listed in the manifest. I don't think we are using them, but I'm also afraid that if I remove them, there will be bad consequences. Any ideas on how to deal with this?
Normal permissions, Signature permissions, and Dangerous permissions are the three types.
Android exposes three Android API level project settings: Target Framework – Specifies which framework to use in building your application.
The Android Management API is available as part of Android Enterprise, an initiative providing developers with tools to build solutions for organizations to manage their Android device fleets. The program is intended for enterprise mobility management providers (EMMs).
Graph is definitely one of the most used API in the Play Store.
Both of these permissions are quite specialized, and only have a few uses.
android.permission.REBOOT
First of all, this permission has a protection level of signatureOrSystem
, so unless your application is part of a custom ROM or you have access to the signing keys for the platform you are installing it on, the application won't even be granted the permission.]
It is required to call PowerManager.reboot()
android.permission.GET_TASKS
This permission is only marked dangerous
, so your app can actually obtain this one.
There are two calls in ActivityManager
that require this permission, getRecentTasks()
and getRunningTasks()
to get information about the current application tasks in the system. It's often used by custom Launcher applications to populate task lists.
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With