How do I determine why my Android app requires certain permissions?

前端 未结 4 1557
执念已碎
执念已碎 2021-01-05 01:25

Let\'s say I have taken over development of an Android app, and my boss asks me why our app requires certain permissions to be displayed to users who buy the app on the Andr

4条回答
  •  無奈伤痛
    2021-01-05 01:45

    With the latest build tools, you can run lint check which will highlight for you all the android SDK method calls which are requiring permissions.

    See announcement here http://android-developers.blogspot.com/2015/07/get-your-hands-on-android-studio-13.html and documentation here https://developer.android.com/tools/debugging/annotations.html#permissions .

    This is based on android annotations and after some adoption time 3rd party libraries can integrate permission annotations also

提交回复
热议问题