Skip to content

Refactor and request permissions as required

Aayush Gupta requested to merge theimpulson/AuroraStore:master into master

Summary

On Android 11+, MANAGE_EXTERNAL_STORAGE permission is all we need to work nicely with storage. This is important as on Android 13, both READ and WRITE permissions for external storage don't do anything.

This Merge Request:

  • Requests and adds check for MANAGE_EXTERNAL_STORAGE on Android 11+
  • Requests and adds check for POST_NOTIFICATIONS on Android 13 using the compatibility library
  • Limits READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permission till Android 10

Issue(s)

#820 (closed)

Testing

  • Ensure that the permission fragment asks for appropriate storage permission as per API levels
  • Verify by downloading apps that storage management permission is also taken into account instead of accessing permission during different actions
  • Ensure notifications permission is requested in permission fragment but is not a hard blocker
Edited by Aayush Gupta

Merge request reports