A
A
Andrey Zhidenko2017-05-16 18:46:27
Android
Andrey Zhidenko, 2017-05-16 18:46:27

How to find out where permission is used?

I want to completely transfer the application to runtime permissions. As far as I understand, for this I should initially find the places of use, and then "wrap" the call to specific methods. The question is how can I find the pieces of code where the android.permission.CAMERA permission is used, for example. Is it necessary to look for every method that is used by the camera or is there a smarter solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2017-05-16
@abler98

And how did you know that the application needed these permissions?
We look at the list of permissions that need to be requested:
https://developer.android.com/guide/topics/permiss...
To simplify the work, you can request all permissions at once when starting the application, but sometimes this option is not suitable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question