[Tutorial] FIX SD Card Write Permission!

32924

23

2017-06-11 18:35

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...



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.



2. Navigate to /system/etc/permissions.



3. Now find the file named platform.xml



4. Open it with SE Note Editor.



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



6. Save the file and reboot the device.



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.