MohGovIL / Ramzor

https://corona.health.gov.il/en/ramzor-model
Creative Commons Zero v1.0 Universal
20 stars 11 forks source link

Change android:requestLegacyExternalStorage="true" to false for enforced scoped storage usage #11

Open emanuelb opened 3 years ago

emanuelb commented 3 years ago

From AndroidManifest:

android:requestLegacyExternalStorage="true">

change the setting to false! in order to use scoped storage that limit not needed access of the app to user data, which is less secure! also the below change is needed (the addition of android:maxSdkVersion="28" to WRITE_EXTERNAL_STORAGE permission)

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
                 android:maxSdkVersion="28" />

see: https://developer.android.com/training/data-storage/shared/media#request-permissions