[Tutorial] FIX SD Card Write Permission!

31581

23

2017-06-11 18:35

Show all posts
Edited by Rudraksh at 2017-06-14 15:45

You might have encountered that some apps cant write to SD cards saying "After a security permission in Android 4.4 and later, apps cant write to SD card" and even if some apps can write, they can only write to their specific data folders in SD card/Android/data.
This makes it quite inconvenient to manage various apps which write to their specific folders and they will be deleted if the app is uninstalled.

This is a system level restriction. This is how your device with KitKat and later installed works. Here is the official technical document describing this behavior

http://source.android.com/devices/tech/storage/

Quoted from there:

The WRITE_EXTERNAL_STORAGE permission must only grant write access to the primary external storage on a device. Apps must not be allowed to write to secondary external storage devices, except in their package-specific directories as allowed by synthesized permissions. Restricting writes in this way ensures the system can clean up files when applications are uninstalled.

You might have seen a error like this...

S70614-142954.jpg S70614-143005.jpg


So How to FIX this?

Requirements:

  • Rooted device

  • Root Explorer/Solid Explorer (Make sure you have given root permissions to these apps)


Steps:

1. Open Solid Explorer and goto Root storage.
photo6190531433005688751.jpg


2. Navigate to /system/etc/permissions.

photo6190531433005688752.jpg

3. Now find the file named platform.xml

photo6190531433005688748.jpg

4. Open it with SE Note Editor.

photo6190531433005688753.jpg

5. Find the line <permission name=”android.permission.WRITE_EXTERNAL_STORAGE” > and add this line after the line <group gid="sdcard_rw" />
  1. <group gid=”media_rw” />
Copy the Code

photo6190531433005688749.jpg

6. Save the file and reboot the device.

photo6190531433005688750.jpg

Now all those apps will be able to write to SD card.

Note: This method does not add a "Move to SD Card" option in app Settings.