在Verizon宏达电Droid Incredible Programmitically访问内部存储(不是SD卡)(安卓) [英] Programmitically accessing internal storage (not SD card) on Verizon HTC Droid Incredible (Android)

查看:98
本文介绍了在Verizon宏达电Droid Incredible Programmitically访问内部存储(不是SD卡)(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到如何以编程方式访问信息宏达电Droid Incredible的应该 8GB 内部存储内存

I'm trying to find information on how to programmatically access the HTC Droid Incredible's supposed 8GB of Internal Storage Memory.

要确定外部存储(SD卡)位置,我使用的命令:

To determine the External Storage (SD Card) Location, I'm using the command:

android.os.Environment.getExternalStorageDirectory().

我一直没能找到任何推论为手机内部存储

在检查 HTC /谷歌Nexus One 摩托罗拉Droid HTC梦/ G1手机,有(正如所预料的)不没有出现任何挂载点这样的任意内部存储

In examining HTC/Google Nexus One, Motorola Droid, and HTC Dream/G1 phones, there (as would be expected) does not appear to be any Mount Point for such Arbitrary Internal Storage.

在这些手机中的内部存储被划分到 /数据 /系统 /缓存分区。

On these phones the Internal Storage is divided amongst /data, /system, and /cache partitions.

难以置信的内部存储肯定是不会被位于 /系统 /缓存也不太可能,因为这是全球范围内的非可读/非执行

The Incredible's Internal Storage is certainly not going to be located in /system. /cache is also unlikely given that it is globally non-readable/non-executable.

我读到的评论,手机仍将被限制在 512MB 左右的应用程序,这表明它不是 /数据。

I'd read in reviews that the phone will still be limited to 512MB or so for apps, suggesting that it is not simply a subdirectory of /data.

任何建议将是极大的AP preciated。我没有机会当然是一个 Droid难以置信单位自己。

Any suggestions would be greatly appreciated. I do not have access to a Droid Incredible unit myself, of course.

推荐答案

在这里有更多的信息:<一href="http://www.droidforums.net/forum/droid-incredible-general-discussions/41766-favor-ask-droid-incredible-user-sd-card-storage-mount-points.html">Droid令人难以置信的存储挂载点。看来,Droid的难以置信装入其内部存储/ EMMC,据说安装R / W的它尚未得到确认的WRITE_EXTERNAL_STORAG​​E许可是否是必要的,以便获得R / W访问 - 我试图获得这些信息在http:// code.google.com / P / aedict /问题/细节? ID = 86

There is more information here: Droid Incredible storage mount points. It seems that Droid Incredible mounts its internal storage to /emmc, supposedly mounted r/w. It is not yet verified whether the WRITE_EXTERNAL_STORAGE permission is necessary in order to gain r/w access - I'm trying to get this information at http:// code.google.com/p/aedict/issues/detail?id=86

我很可能通过允许用户两种选择来存储数据解决这样的:

I will probably solve this by allowing the user two options to store the data:

  1. 在SD卡
  2. 在Droid难以置信,只有内部存储

编辑:看来,WRITE_EXTERNAL_STORAG​​E权限是足够了:根据<一个href="http://www.droidforums.net/forum/droid-incredible-hacks/50916-how-i-rooted-my-incredible-installed-busybox.html">http://www.droidforums.net/forum/droid-incredible-hacks/50916-how-i-rooted-my-incredible-installed-busybox.html两者/ SD卡和/ EMMC拥有1015相同的GID。

It seems that the WRITE_EXTERNAL_STORAGE permission is sufficient: according to http://www.droidforums.net/forum/droid-incredible-hacks/50916-how-i-rooted-my-incredible-installed-busybox.html both /sdcard and /emmc has the same GID of 1015.

EDIT2:根据<一个href="http://groups.google.com/group/android-developers/browse_thread/thread/45d96f07abd83549/42d5ec430b2f7572?lnk=raot">http://groups.google.com/group/android-developers/browse_thread/thread/45d96f07abd83549/42d5ec430b2f7572?lnk=raot令人难以置信的回报/ SD卡作为Environment.getExternalStorageDirectory的结果值()。因此,用户需要决定是否要使用/ SD卡或/ EMMC。令人难以置信的自动检测,可以根据存在/ EMMC路径。

According to http://groups.google.com/group/android-developers/browse_thread/thread/45d96f07abd83549/42d5ec430b2f7572?lnk=raot the Incredible returns /sdcard as the result value of Environment.getExternalStorageDirectory(). Therefore, the user needs to decide whether he wants to use /sdcard or /emmc. The autodetection of Incredible may be based on existence of the /emmc path.

这篇关于在Verizon宏达电Droid Incredible Programmitically访问内部存储(不是SD卡)(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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