USB mass storage - Samsung Galaxy S Relay 4G

as we all know with jelly bean, google dropped the mass storage mode.
after searching i found that it is still there, but no longer selectable.
executing "setprop persist.sys.usb.config mass_storage,adb" (as root) select mass storage mode.
this works nice on a lot of other devices. there are also apps around for selecting mass storage without fiddeling around at the command line.
here's what happens on our Relay (with the most recent cm10.1 nightlies):
the device reports "connected as installer"
the pc finds:
Code:
[39232.264536] usb 2-2: new high-speed USB device number 17 using ehci-pci
[39232.380491] usb 2-2: New USB device found, idVendor=04e8, idProduct=685e
[39232.380500] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[39232.380505] usb 2-2: Product: SAMSUNG_Android_SGH-T699
[39232.380509] usb 2-2: Manufacturer: SAMSUNG
[39232.380513] usb 2-2: SerialNumber: 34184744
[39232.382545] scsi11 : usb-storage 2-2:1.0
[39233.386954] scsi 11:0:0:0: CD-ROM SAMSUNG File-Stor Gadget 0001 PQ: 0 ANSI: 2
[39233.389794] sr0: scsi-1 drive
[39233.390168] sr 11:0:0:0: Attached scsi CD-ROM sr0
[39233.390379] sr 11:0:0:0: Attached scsi generic sg4 type 5
trying to mount the new device (/dev/sr0) reveals that there's no medium in the drive...
so apparently the driver is yet there in the ROM, but seems like it's not set up.
what's needed to be done is
switch to harddisk emulation
point the driver to the right location (internal/external storage or maybe both)
apparently i have no idea of how to do so. can anybody help?
would also be interesting what kinda drive is exposed on the stock rom. anybody care to try out?

I had SGS3 Easy UMS working on earlier builds for the Relay, so I agree it can definitely be done. On newer builds it sees the SD card as a CD drive and only the first few folders in alphabetical order are accessible.
I can not begin to understand why but I hope someone else can work some magic on this. I am so tired of MTP questioning my decision to move FLAC files to my phone.

MTP has benefits over the standard mass storage, although I prefer mass storage more.
Apparently you can disconnect without corrupting anything when MTP. So there's no "eject safely" nonsense.

Bump
Did you ever figure anything out, @kilr00y?
I too would love to use mass storage mode, the MTP stuff is too flaky for me. Currently, I'm getting by with a random SAMBA server app, but it's pretty slow over Wi-Fi. I would much rather use it like a USB hard drive.

Wait, what? there's no mass storage option on Relay? I'm on the Epic 4G with Cyanogenmod, which seems based on Jelly Bean and I get a mass storage option. The Cyanogenmod nightlies do not give this option?

Related

[Q] Android and USB mass storage devices

Hi there,
I was wondering if Android devices had their linux kernel built with USB Mass storage support enabled.
What I mean is I would like to connect an external hard drive to my Samsung Galaxy S, mount it from a root console and see its contents from the phone.
I've seen there are very cheap USB adapters on the market (type A female - micro USB type B male should do the job).
Would that be feasible?
Thanks.
To connect any slave device to your phone you need to have Host USB support. As far as I know Galaxy S doesn't have this and can work only as "slave device".

[Q] USB host mode help request

Could someone be kind enough to explain to me how to set up/enable USB tethering from my rooted Droid Incredible (running CM7) to my rooted Xoom (HC 3.1, kernel 1.4.2, wireless only).
I made a USB host cable following this thread >http://forum.xda-developers.com/showthread.php?t=1068197
When I type : "Cd /dev/block" then "ls" on my Xoom terminal I can see "sda" for phone and "sda1" for my USB flash drive. And my phone recognizes the USB connection to my Xoom.
But when I type "busybox mount /dev/block/sda1/mnt/usbotg" on Xoom, the response is > "mount: can't read '/etc/fstab' : No such file or directory"
And while I can enable USB tethering on my phone, my Xoom doesn't recognize it (of course). My phone is also charging from the Xoom.
What can I do next to try to get this working?
Thanks, in advance.
I am also very interested in this. I have made my own USB host cable that I know is working (keyboard, mouse, etc. all work great) and I have a 4G USB dongle.
This dongle works in a fully hostless mode, meaning it does not need any drivers to run. I simply need the Xoom to recognize the ethernet over USB connection.
The dongle powers up and connects to the network, the Xoom just does not see or make use of the connection.
If I can make this work it will simply be awesome, getting 4G on my WiFi only Xoom before the 3G Xoom gets it ;-)
I use this USB host cable and it works great. Have tested it with my 750gb Oyen and 320gb WD Passport external HDD's, several usb flash drives (8-16gb), San disk USB memory card reader, and a USB keyboard.
For those having issues getting their Xoom to recognize USB storage devices here's what I've got and did to get it to work: I flashed my XOOM (3.1) to the 2.6.36.4 Tiamat_Xoom-v1.4.4-Full_Throttle Kernel and was unable to get the USBMount to recognize drives or storage at first.
I installed USB Mass Storage Watcher from the market (it's free) and it works awesome! Can mount any storage I want (NTFS, FAT16/32, HFS, HFS+, EXT2, ETX3, EXT4) with any capacity. I think this app will work with any rooted Xoom (or other devices). Under my Kernel my USB host is located under/usbOTG.
Hope this helps.

[Q] Safely disconnecting with CM10

Hey everyone, I'm currently running the latest stable version of CM10. My phone also has a microSD card inserted in it.
My question is about connecting to the computer via USB port. Normally, with stock, when you connect to a computer you have to allow it to connect and disconnect it before you remove it from the computer. I think it has to do with USB debugging (which I have off)? However, when I use CM10, I get no prompt whatsoever.
Is it safe to just put it in and pull it out (that's what she said)?
If I enable USB debugging will I get this prompt again? Is it even possible to get this prompt again?
I've tried looking all over for an answer, but it's kind of difficult to word in a search. I've been just pulling the plug, and I'd really hate to damage my precious SR!
Thanks, y'all
bump
When you plug the usb in pull down the menu on your phone and it'll give you the option to connect usb. Just Swype down from the top of your screen.
God promised men that he'd put beautiful women in all corners of the world. Then he laughed and laughed and made the world round
I think CM10 and 10.1 have USB OTG which means you don't have to allow/disallow it anything. Just pull the usb cord and that's it.
lingowistico said:
I think CM10 and 10.1 have USB OTG which means you don't have to allow/disallow it anything. Just pull the usb cord and that's it.
Click to expand...
Click to collapse
Excellent, thanks!
I don't have this device but when you install JB, it use MTP mode as default, which is a Microsoft transfer standard. MTP mode allow you to use the phone storage space (and Sdcard) while transferring at the sametime, for example, if you have apps installed or files on your Sdcard they will still be accessible while plugged in. You can unplug it anytime and there are less chances of files corruption. However MTP also have its limitation such as being retarded.
The other mode is USB MSC (aka UMS aka usb mass storage) which we're familiar with. You could pull the chord with this mode too since its really how USB transferring is designed, but it's better to safe remove first to prevent corruption.
USB debugging is something different which allow ADB access, which I recommend turning off when not in use for security. It should work with both UMS and MTP mode.
USB OTG means on the go, which allow plugging in USB peripherals such as flash drives and is only available for phones that have both the hardware and kernel that support it. Sometimes you also need additional mounting software such as Stick Mount.
Some phones allow you to switch between UMS and MTP mode. Most newer ones running JB only have MTP mode and donot allow UMS mode at all, such as Nexus devices and Galaxy SIII. Also if the device only work with MTP you will not be able to mount USB storage to your PC while in CWM.
Sent from XDA app

nabi XD USB host

Hardware confirmed via USB device info:
Tegra EHCI host controller
/sys/bus/usb/devices/usb1
control panel has both SD card and USB storage section
nabi changed from micro USB to proprietary.
It looks like an overgrown micro USB.
root needed to access?
I kind of like the usb now . just pop the end in to a usb port and it charges and u can get to the sdcards at the same time with 1 cable .
the same cable is on the nabi jr

How do I use my tablet as a mass storage device?

I want to move a 10GB file to my computer from another one, but I don't have a pen drive or external HD around... I used to install the USB drivers on my computer, and plugged my tablet into my computer's USB port, it worked like a charm but since I upgraded to JB the drivers are useless now, what do I do?
Sent from my ASUS Transformer Pad TF700T using xda app-developers app
You need to buy a USB pen drive or an external HD, or a network cable. The tablet cannot be mounted as USB mass storage device because that mode would need to give full control over the internal storage to the computer, i.e. Android could not run at the same time.
It still works fine I copy large files all the time. Just make sure you have the latest SDK from Google installed and you should get the latest USB drivers then you can use it like a pen drive again.
sbdags said:
It still works fine I copy large files all the time. Just make sure you have the latest SDK from Google installed and you should get the latest USB drivers then you can use it like a pen drive again.
Click to expand...
Click to collapse
As USB mass storage? I don't think so - which filesystem should be unmounted here?. Otherwise please explain in detail how. And if you mean only as MTP device, how do you transfer files > 2 GB?
Ah right yes not as a mass storage device. I never tried anything over about a gig so never thought about that.
Since JB, only MTP(Media Device) and PTP (Camera) protocols are supported. The MTP protocol is achingly slow, not just on the TF700. My SGS3 (supposedly 'faster than the tf700') is equally slow in terms of USB transfer.
I agree that it used to work as a regular Mass Storage Device before JellyBean. Mine always showed up as F:\Asus TF700T. Updated to JB and to my great annoyance, only MTP. (PTP is pointless.)
ICS with Regular took 30 seconds to copy 600MB. JB's MTP requires 5 minutes! On both of my devices.
As for it not showing up, it's not in the list of drives. It should show up below everything else, without a drive letter(!). For me it's below Control Panel and above Shared Documents. (WinXP)
Did you, by any chance, kill the wufdhost.exe process in taskmanager's processes tab? You see, I did. And not a single MTP device would be recognised afterwards. It should A, running in Taskmanager, B, be in C:\WINDOWS\system32 and C, as 'Windows Driver Foundation - User-mode Driver Framework' in services.exe.

Categories

Resources