Give write permissions to external memory(/mnt/extsd) on Android

On a rooted Android device, you can modify your /system/etc/permissions/platform.xml to fix the permissions issue.

  • On the terminal, enter:
    adb pull /system/etc/permissions/platform.xml
    
  • Modify platform.xml such that media_rw is included in WRITE_EXTERNAL_STORAGE permission:
    <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
      <group gid="sdcard_rw" />
      <group gid="media_rw" />
    </permission>
    
  • Push your changes
    adb push platform.xml /system/etc/permissions/platform.xml
    
  • Finally restart your device.

Leave a comment