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

前端 未结 3 1915
离开以前
离开以前 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 04:14

    The only work around I've found so far to get write access on the device is rooting the device :(

    Samsung provides a work around with a manifest entry

    More details are available in the following links

    http://www.xda-developers.com/android/android-3-2-code-inadvertently-preventing-write-access-to-external-storage/

    and

    http://www.chainfire.eu/articles/113/Is_Google_blocking_apps_writing_to_SD_cards_/

    Excerpts:

    It would seem that Google has a bug in their AOSP code that was introduced around Android 3.2, which affects how the OS handles USB Storage and can prevent write access to SD cards and USB sticks. XDA Elite Recognized Developer, Senior Moderator, and News Writer Chainfire sums up the issue in his blog post:

    "In the past, an app would request the “WRITE_EXTERNAL_STORAGE” permission, which would grant write access to all external storages (user/group “sdcard_rw“). This has apparently been changed to only grant write access to the primary external storage. A second permission has been introduced called “WRITE_MEDIA_STORAGE“, which would grant access to the other external storages (user/group “media_rw“).

    The problem is, a third party will not actually be granted this permission, only system apps and apps provided by the device manufacturer will normally be granted this permission. There are exceptions, apparently on some devices third party apps will be granted this permission, but according to the AOSP sources, they’re certainly not supposed to."

提交回复
热议问题