一些Android设备把内部存储的SD卡和外部存储作为EXTSD [英] Some Android devices treat Internal Storage as SD Cards and External Storage as EXTSD

查看:296
本文介绍了一些Android设备把内部存储的SD卡和外部存储作为EXTSD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一帮来自不同厂商的Andr​​oid设备。

I have a bunch of Android devices from different vendors.

他们中的一些附加到/ mnt / SD卡在内部存储器到/ mnt / extsd到   外部存储(方案一)和其他附加到/ mnt / SD卡外部存储(方案2)

Some of them attach /mnt/sdcard to internal storage and /mnt/extsd to external storage(Scenario 1) and others attach /mnt/sdcard to external storage(Scenario 2)

我认为第二个方案是标准的,因为Android的API提供了一个手柄,这条道路。现在的问题是,在方案1,的/ mnt / extsd 变成只读甚至 WRITE_EXTERNAL_STORAG​​E 许可!

I think the second scenario is standard since the Android API provides a handle to this path. Now the problem is that in scenario 1, /mnt/extsd becomes readonly even with WRITE_EXTERNAL_STORAGE permission!

这意味着我只能从实际的外置SD卡读取数据并不能写入。

有没有一种解决方法,所以我可以写extsd文件夹?

Is there a workaround for this so I can write to the extsd folder ?

推荐答案

我身边唯一的工作,到目前为止已经获得了设备上的写访问生根设备:(发现

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

<一个href="http://www.xda-developers.com/android/android-3-2-$c$c-inadvertently-$p$pventing-write-access-to-external-storage/" rel="nofollow">http://www.xda-developers.com/android/android-3-2-$c$c-inadvertently-$p$pventing-write-access-to-external-storage/

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

节选:

这似乎是谷歌已经在他们的AOSP code,这是一个错误   针对Android 3.2,这会影响引进操作系统如何处理USB   存储并能prevent写访问的SD卡和U盘。 XDA   精英公认的开发人员,资深主持人和新闻作家   Chainfire总结了问题在他的博客文章:

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:

在过去,一个应用程序将请WRITE_EXTERNAL_STORAG​​E   许可,这将允许写入访问所有外部存储器   (用户/组sdcard_rw)。这显然​​已经改变了只   授予写访问主要外部存储。一秒   许可已经推出了名为WRITE_MEDIA_STORAG​​E,这   将授予给其他外部存储器访问(用户/组   media_rw)。

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

问题是,第三方会不会真的被授予此   权限,只能由设备提供的系统的应用程序和应用程序   制造商通常会被授予这个权限。有   例外,显然在某些设备上的第三方应用程序将是   授予此权限,但根据AOSP源,他们是   当然不应该。

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

这篇关于一些Android设备把内部存储的SD卡和外部存储作为EXTSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆