Thursday, 16 August 2018

filesystems - How to mount an Android smartphone as a drive in Windows?


So some smartphones are mounted as.. I don't even know how to call it.. a device, see the screenshot below. The problem is this is no drive, so I can't go there in cmd (can I?) and do other stuff.


(particularly now I'd like to recover some files that were lost when I cut them on the smartphone, navigated to another folder on my PC and pasted there; I encounter this bug for the second time, although failed to make it reproducible; again, Recuva doesn't recognize the device, see the second screenshot)


My question is: can I mount such device as a drive? What is this situation and why some devices are mounted as drives while others are not?


(I've tried also to enable USB-debugging mode on the smartphone, but that didn't help, although when enabled, safe ejection is required)


enter image description here


enter image description here


PS for those interested, currently I use WebDAV server app for some operations like OscarAkaElvis suggested, but for now, it has the following drawbacks:



  • drive letter mapping is to be done per WiFi network. That's a Windows problem, not sure if this can be simplified

  • namely WebDAV server doesn't work for me in the password-protected mode

  • some operations are slow: for instance, calling tree in cmd with output to a file for several tens of folders and 1.5K files tree took ~10 minutes



Answer



Historically Android phones did support two major protocols when presenting itself to USB host: (1) Mass storage class (MSC), and (2) MTP/PTP device (media transfer protocol, with camera capabilities). The USB mode was user-switchable in some configuration area. Since the Mass Storage provides almost direct access to phone file directories (as from CMD), there were many cases of phone bricking (corruption). As result, newer phones do not offer the MSC configuration mode, only MTP/PTP. So the answer to your question is "you can't", unless your particular Android phone does have the MSC/MTP switch.


Here is some answer from Photography stackexchange.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...