Вы находитесь на странице: 1из 3

Can Android's internal memory be mapped to a drive letter on PC? - Sta... http://stackoverflow.com/questions/5097389/can-androids-internal-me...

Can Android's internal memory be mapped to a drive letter on PC?

When an Android device is plugged in to a PC (through USB?), is the internal file system mapped to a drive letter on the PC? So that one can copy files to
and from the Android under Windows?

And, can Emulator simulate the situation when it's plugged in? How?

Thank you in advance!

android

asked Feb 23 '11 at 21:28


wwyt
1,573 3 24 38

1 Almost all of the answers here talk about the so-called "External" storage, even in it's permanently installed
and/or emulated implementations. Ultimately it should be possible to expose any internal and/or external
files which a 3rd party application can access over a network-filesystem type mechanism, using for a
known implemented example ssh (with sshfs) or possibly SMB using some sort of port of SAMBA code.
Chris Stratton May 30 '13 at 20:49

4 Answers

You can mount the device via USB but (in Win7 at least) it doesn't appear to have its own drive
letter; rather it's treated like a camera or another media device. It doesn't mount automatically;
you generally need to "opt-in" in the notification area with something like "Turn on USB storage"

Don't know about emulators.

answered Feb 23 '11 at 21:45


Cheezmeister
3,391 3 20 33

1 Except for devices without a MicroSD card (i.e., Nexus S), turning on USB storage will mount the card as a
drive letter in Windows. I think the question refers to the internal memory of the phone, not the MicroSD
card sargas Feb 23 '11 at 21:48

1 @sargas @cheezmeister Thank you! So I gather the answer is "no" for internal memory. Is my
understanding correct? wwyt Feb 23 '11 at 22:16

Right, AFAIK. Although you can still use 'adb push'/'adb pull' sargas Mar 11 '11 at 5:57

Yes, it CAN be mapped to a drive letter. It was much easier with something like a Droid X (Android 2.3), sin
storage device (disconnecting the card from your phone in the meantime), but it's also possible on newer p
you're willing to install 2 free programs, which you probably would like to have anyway.

ES File Explorer - Remote Manager (FTP Server)

First, you need a file manager, not only because the built-in one is useless, but also because you need an
Explorer" on your Android Device. Then in the options, turn on the "Remote Manager" option, which will ac
show you its local address like "192.168.1.3:3721. You can now access your phone as an FTP site from y
local WiFi network.

1 of 3 07-02-2017 AM 02:07
Can Android's internal memory be mapped to a drive letter on PC? - Sta... http://stackoverflow.com/questions/5097389/can-androids-internal-me...

Net Drive - Remote Drive Mapping Utility

Next, all you have to do is install NetDrive: http://netdrive.net/ It's freeware and seems to be used by a lot o
you map cloud storage to local drives. That will allow you to map your FTP server on your phone as a loca

Don't bother trying to map an FTP site with explorer. First, you may run into a problem that's apparently cau
can't even add an FTP network location. You'll get an unexpected error telling you the path format is invalid
opening the registry editor, then under [HKEY_CLASSES_ROOT\ftp] add a key named "ShellFolder" with s
"{E436EBB6-524F-11CE-9F53-0020AF0BA770}". The error will immediately cease occurring, with no res

2 of 3 07-02-2017 AM 02:07
Can Android's internal memory be mapped to a drive letter on PC? - Sta... http://stackoverflow.com/questions/5097389/can-androids-internal-me...

required. Just go back in and add the ftp network location. That, however, still does not allow you to map it
you need NetDrive.

edited Jan 6 '15

1 Works for me but only for the internal storage, on the SD card only a few directories are available, and I
checked that those can be browsed fine with ES File Explorer (!?) golimar Apr 13 '15 at 16:27

As of Android 4, the wise ones have removed USB Mass Storage support for accessing the
internal phone memory. So you no-longer get direct block-access (or a driver letter in
windows). You can usually choose on the phone between MTP, or PTP (Media / Photo Transfer
protocols) for whichever your OS supports better.

If your device has removable storage it should still support USBMS (with a drive letter) for that
partition. At least Android still supports that, but your Manufacturer or Carrier-ware may still fail
you here.

However, when it comes to the phone memory, there was a trade-off made in Honeycomb.
Unified storage prevents wasted space (no more separate storage for phone / data, and
having one fill up first and having confused frustrated users trying to move apps to SD, etc).
The trade-off requires that:

Android can no longer ever yield up the storage for the host PC to molest directly over
USB.

Initially for Mac and Linux where support for MTP/PTP has been slower, You can use an FTP
app on your phone. But now there is an increasing number of Desktop (PC/Mac/Linix) apps
that understand and support the MTP or PTP protocols. You just don't get block access and so
you can't get a drive letter without some hackery / third party software.

There have been hacks over the years to make FTP or WebDav or some other protocol work
behind a windows drive letter, and something like could still work work for these MTP/PTP
protocols, but I have yet to see any such consumer usable software for windows.

If your Linux distro doesn't include MTP support, gMTP seems pretty popular.

edited Jun 14 '13 at 21:10 answered May 30 '13 at 20:43


DanO
1,413 1 20 29

Using Eclipse you can push and pull files to the emulator using the DDMS perspective. Doing
similar on a real device, iirc will require root access to the device, at least to get to the
'sensitive' areas.

The SDK tools will also provide a way of push and pull via the command line.

answered Feb 23 '11 at 21:55


techiServices
6,516 4 23 36

3 of 3 07-02-2017 AM 02:07

Вам также может понравиться