Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - How do I know all methods that require a certain permission?

I work on a project that currently asks for 21 (!) permissions.

I want to clean that up as I believe a lot of them are not necessary (for instance, there is a permission for android.permission.CALL_PHONE which can be removed as pretty much the same thing can be achieved with an Intent with ACTION_DIAL).

What I want to know is a way to, given a permission (say, android.permission.AUTHENTICATE_ACCOUNTS) find all methods which require that permission.

Note that the opposite is easy, i.e., given a method, it is easy to find if that method requires any permission (just go to the documentation and check), but what about the other way around?

like image 203
Bitcoin Cash - ADA enthusiast Avatar asked Nov 09 '22 12:11

Bitcoin Cash - ADA enthusiast


1 Answers

Here you can find all methods that PScout found which require Android permissions. PScout was a tool that did this particular work you need, but the original website is offline.

PScout results- map of Android permissions and methods that require those permissions

like image 153
Drag0 Avatar answered Nov 14 '22 21:11

Drag0