Some Android devices treat Internal Storage as SD Cards and External Storage as EXTSD

前端 未结 3 1905
离开以前
离开以前 2021-02-14 03:27

I have a bunch of Android devices from different vendors.

Some of them attach /mnt/sdcard to internal storage and /mnt/extsd to external storage(Scenar

3条回答
  •  不知归路
    2021-02-14 03:57

    On a rooted device, you can change your /system/etc/permissions/platform.xml to "fix" the permissions issue. The following worked for me:

    • adb pull /system/etc/permissions/platform.xml
    • Modify platform.xml such that media_rw is included in the WRITE_EXTERNAL_STORAGE permission like this:

      
         
         
      
      
    • adb push platform.xml /system/etc/permissions/platform.xml

    • Restart Device

提交回复
热议问题