Advertisement
dzikovskyy

"Dangerous" permissions in Android

Jun 1st, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. The big reason for not getting your permission nowadays is because your project has a targetSdkVersion of 23 or higher, and the permission that you are requesting is "dangerous". In Android 6.0, this includes:
  2.  
  3. ACCESS_COARSE_LOCATION
  4. ACCESS_FINE_LOCATION
  5. ADD_VOICEMAIL
  6. BODY_SENSORS
  7. CALL_PHONE
  8. CAMERA
  9. GET_ACCOUNTS
  10. PROCESS_OUTGOING_CALLS
  11. READ_CALENDAR
  12. READ_CALL_LOG
  13. READ_CELL_BROADCASTS
  14. READ_CONTACTS
  15. READ_EXTERNAL_STORAGE
  16. READ_PHONE_STATE
  17. READ_SMS
  18. RECEIVE_MMS
  19. RECEIVE_SMS
  20. RECEIVE_WAP_PUSH
  21. RECORD_AUDIO
  22. SEND_SMS
  23. USE_SIP
  24. WRITE_CALENDAR
  25. WRITE_CALL_LOG
  26. WRITE_CONTACTS
  27. WRITE_EXTERNAL_STORAGE
  28.  
  29. For these permissions, not only does your targetSdkVersion 23+ app need to have the <uses-permission> element(s), but you also have to ask for those permissions at runtime from the user on Android 6.0+ devices, using methods like checkSelfPermission() and requestPermissions().
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement