I'm trying to get the MANAGE_EXTERNAL_STORAGE permission on my Android 10 (API 29) device.
https://developer.android.com/training/data-storage/manage-all-files
Manifest:
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
MainActivity:
Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);
startActivity(intent);
The result is:
No Activity found to handle Intent { act=android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION }
Okay, this behaviour is possible. The doc says:
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
But how can I obtain that permission?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…