Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A list of Android APIs that require certain Android permissions

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?

like image 399
John W Avatar asked May 25 '12 17:05

John W


People also ask

What are the types of Android permissions?

Normal permissions, Signature permissions, and Dangerous permissions are the three types.

How many API are there in Android?

Android exposes three Android API level project settings: Target Framework – Specifies which framework to use in building your application.

What are Android Apis?

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).

Which API is best for Android?

Graph is definitely one of the most used API in the Play Store.


1 Answers

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

like image 170
devunwired Avatar answered Nov 15 '22 17:11

devunwired