FORUMS

What Features Do You Look for in a Gallery App?

With so many different options to choose from, finding the right Gallery app may be a … more

Google Photos ‘Unlimited’ Storage Reportedly Being Capped

When Google Photos was announced, many of us thought very highly … more

Sprint Moves to Lift Video Streaming Limit for All-In

Yesterday, Sprint announced a new unlimited scheme that offered customers an … more

Xiaomi Releases Kernel Source Code For Mi4i

If you’ve been following the XDA News Portal lately, you might have noticed an … more

[Q] USB Masst Storage ? UMS ...

216 posts
Thanks Meter: 37
 
By doublehp, Senior Member on 28th June 2014, 03:54 PM
Post Reply Subscribe to Thread Email Thread
20th September 2014, 03:32 AM |#21  
Captain_Throwback's Avatar
Retired Moderator / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 13,224
 
10
Donate to Me
More
Quote:
Originally Posted by DeathmonkeyGTX

Gpe isn't aosp so I had some hope. My m8 is a gpe from the play store, not a rom or ruu. Even if it just worked in a version of twrp that would be fine, it's rare when I need ums but often enough to where I'd gleefully spend $20 on it.

Sent from my HTC One_M8 using XDA Premium 4 mobile app

Where's my $20?

 
 
20th September 2014, 06:42 AM |#22  
DeathmonkeyGTX's Avatar
Senior Member
Flag Little Rock, AR
Thanks Meter: 547
 
More
Not from recovery
20th September 2014, 01:41 PM |#23  
Captain_Throwback's Avatar
Retired Moderator / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 13,224
 
10
Donate to Me
More
Quote:
Originally Posted by DeathmonkeyGTX

Not from recovery

Ah, you wanted it in GPE. Well that's more than $20 worth of work, so I'll pass, lol.
22nd September 2014, 09:22 AM |#24  
OP Senior Member
Thanks Meter: 37
 
More
Quote:
Originally Posted by Captain_Throwback

Not sure if you're still trying to figure this out, but I got UMS working in TWRP . Link is in my sig.

! see UMS in the changelog, I will test it (I don't know when I have time). Thanks.
16th February 2015, 08:15 PM |#25  
Member
Thanks Meter: 23
 
More
Quote:
Originally Posted by Captain_Throwback

Ah, you wanted it in GPE. Well that's more than $20 worth of work, so I'll pass, lol.

Will your recovery give me the ability for UMS in my HTC M8 GPE?
16th February 2015, 08:16 PM |#26  
Captain_Throwback's Avatar
Retired Moderator / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 13,224
 
10
Donate to Me
More
Quote:
Originally Posted by mayhemrules

Will your recovery give me the ability for UMS in my HTC M8 GPE?

Use the official TWRP.
17th May 2015, 01:43 PM |#27  
Junior Member
Thanks Meter: 0
 
More
Question UMS on HTC M7
Quote:
Originally Posted by doublehp

Here is a quick tuto from a friend:

echo 0 > /sys/class/android_usb/android0/enable
echo 22D9 > /sys/class/android_usb/android0/idVendor
echo 2767 > /sys/class/android_usb/android0/idProduct
echo adb,mass_storage > /sys/class/android_usb/android0/functions
echo /storage/sdcard1/debian.iso > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
echo 1 > /sys/class/android_usb/android0/enable

Here is the interesting part:
root@htc_m8:/storage/emulated/legacy # cat /sys/class/android_usb/android0/functions
mtp,adb,mass_storage

This means ... my kernel can do UMS. I will dig this later.

Sounds like this method can be used to simulate several devices at the same time: several HDD, several CDs ...


Hi doublehp,

Your is the closest I have come to what I call as 'hope'! I've been trying for the past three weeks to recover data from my HTC One M7 after an accidental factory reset. In order to use a Recovery Software(I have R-Studio), the phone needs to be mounted as a USB drive. Unfortunately, I cannot find a way to disable MTP and enable UMS on my phone.

I haven't tried DriveDroid yet. I want to be sure (at least as much as possible) before I write more data into the drive thereby overwriting my previous data. My phone has an unlocked bootloader, rooted and has terminal emulator on it. I can access it through adb shell from my PC. I tried the last command you have quoted. I got this.

root@m7:/ # cat /sys/class/android_usb/android0/functions
mtp,adb,mass_storage

Using lsusb, I got the following
root@m7:/ # lsusb
lsusb
Bus 001 Device 002: ID 05c6:9048
Bus 001 Device 001: ID 1d6b:0002

I'm not sure what device 001 & 002 stand for and which ones to use for the IDs. Is there a way to activate UMS with a similar set of commands?

Else, my option seems to be DriveDroid. I have the following.

Android 5.0.2
HTC Sense 6.0
Software Number 7.17.1540.7
Kernel 3.4.10-g3c9a631
Baseband Version 4T.35.3218.16_10.33Q.1718.01L
Build Number 7.17.1540.7 CL468180

Is it possible for DriveDroid to enable UMS on my device? Please let me know.

Thanks a lot in advance....

---------- Post added at 01:43 PM ---------- Previous post was at 01:08 PM ----------

Quote:
Originally Posted by Captain_Throwback

Not sure if you're still trying to figure this out, but I got UMS working in TWRP . Link is in my sig.

Hi Captain_Throwback,

I have the following on my HTC One M7 (no external SD card, unlocked bootloader, rooted, superSU installed). I'm trying to mount the internal storage as a drive and recover data.

Android 5.0.2
HTC Sense 6.0
Software Number 7.17.1540.7
Kernel 3.4.10-g3c9a631
Baseband Version 4T.35.3218.16_10.33Q.1718.01L
Build Number 7.17.1540.7 CL468180

Can the TWRP ROM you quote enable UMS on my device? I'm currently running TWRP v2.8.0.2 and cannot activate UMS with the Mount option. Please let me know.

Thanks a lot in advance....
17th May 2015, 09:37 PM |#28  
ashyx's Avatar
Senior Member
Thanks Meter: 611
 
More
There is an app called disk digger that has a high success rate of recovering deleted stuff.
Or you could go the create image of the said partition route and then use Windows recovery software on it.
18th May 2015, 05:10 AM |#29  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by ashyx

There is an app called disk digger that has a high success rate of recovering deleted stuff.
Or you could go the create image of the said partition route and then use Windows recovery software on it.

Hi ashyx,

I have tried making an image with the technique mentioned here (http://forum.xda-developers.com/gala...y-yes-t1994705). However, I couldn't find anything recoverable! I'm not sure what kind of copy the 'dd' command does. I could find only the files from the existing partitions and nothing from before the factory reset. I find it hard to believe that 'factory reset does a low level erase of the internal drive. About DiskDigger, I'm not sure of installing apps on my device and overwrite any possible data especially when there's no guarantee that the app can do anything.

The last resort for me is to get the internal memory mounted somehow as a UMS and the access it directly from the recovery software I have on my PC.

Thanks for your reply....
Last edited by billqu; 18th May 2015 at 08:58 AM. Reason: Add info
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes