How to Disable READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE Permissions
Step 1:
Open AndroidManifest.xml
Locate the AndroidManifest.xml file in your project’s app/src/main/ directory.
Step 2:
Remove These Permission Lines (if present)
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
If your app needs to read/write files, replace shared external storage access with one of the following:
For app-specific files:
For images/videos using MediaStore (Android 10+):
Use the MediaStore API to safely access media without needing broad permissions.
For accessing documents or user files, use an Intent like:
This does not require storage permissions, as it’s a user-granted file access.
Set Target SDK to 30 or Higher (Optional but Recommended)
In your build.gradle (app-level), update:

This enables Scoped Storage enforcement, even if legacy code exists.