9

I'm making changes to existing code to make it compliant with the new permissions model in Android M. The app declares the READ_PHONE_STATE permission in its manifest which will require me to prompt the user to grant it at runtime. How can I locate all API calls which require this permission so I can prompt the user? I tried commenting out the permission from the manifest but the app built without errors in Android Studio 1.5.1. I also ran the lint tool while making sure that permission checking is turned on as described here but found no errors.

Community
  • 1
  • 1
Mirza Dobric
  • 1,467
  • 1
  • 14
  • 36

1 Answers1

1

Maybe a bit late, just found the following threads, hopefully still can help. How to find required Android Marshmallow runtime permissions in code? and How to find out which permission an android application needs

Community
  • 1
  • 1
chrisli
  • 1,161
  • 8
  • 12