Use USB OTG memory and internal storage with Android 6 - X 2014 Q&A, Help & Troubleshooting

Well, after consultation with the motorola support have indicated to me that motorola has this option disabled on their smartphones for security because if the USB memory without giving previously disconnected drive you can lose information. Hes asked him if I could give support to activate it and refuse to support operations that require root.
Does anyone have any idea where you can modify this?
sorry for my English

Related

[Q] External storage and the nook

So I'm brand new to the world of tablets and Android and whatnot (and, subsequently, this forum, so sorry if this is a dumb question). I'm trying to decide between buying a nook Color (with the intention of rooting) and the Archos 101. I prefer almost everything about the nook, but the 101 can connect to an external hard drive, and that's a big deal, as I'd like to be able to access my documents and video on the fly.
So, with the proper USB adaptor, will the nook support external storage? Thanks!
The hardware should allow it, but AFAIK it doesn't support it out of the box. It shouldn't be TOO much trouble to allow it to. shrug.
others will know much more about this.
10equals2 said:
The hardware should allow it, but AFAIK it doesn't support it out of the box. It shouldn't be TOO much trouble to allow it to. shrug.
others will know much more about this.
Click to expand...
Click to collapse
Yeah, I'm not expecting it to work pre-rooting. I'm just trying to figure out if I'll be able to access the external using a file manager.
Thanks!
Ok, don't quote me on this, but I (think) i remember someone somewhere (not very convincing...) stating that the usb hardware was capable of host and OTG modes.
Android is most definitely capable of dealing with host mode, which is necessary for usb hard drives. So there should be some way of enabling it....
Sorry I'm not much help... I'll do some research and see if its a hidden toggle somewhere, otherwise I'm no help. lol
Any update on this? I'd really like to buy a tablet... but I need to make sure that the hardware can support it.. even if rooting is necessary to make USB port into Host.
If it can't does anyone know of a tablet within the $200-300 range that has USB host capabilities? Would like it to have a separate port for power while USB being used specifically for my 1TB Western Digital My Passport external USB HDD.
Do you actually have 1TB worth of info that has to be accessible on the fly or could you just load what you regularly use onto a larger sd card? I know this isn't an answer to your question but I just wondered how many gigs of documents you have to have access to during the day because the NC can use up to a 32 gig mSD if I remember correctly.

[Q] USB Host on P9xx

Hi all, I did a search under this forum and do not actually found any info.
Actually, many older Android phone/device do come with USB Host (OTG) function, hardware or software, with hacks or officials,
Mod/Hacks:
MOTO droid, N1, ZTE Blade, etc
Officials support:
Samsung GS2, MOTO Xoom, MOTO Atrix4G, EEETransformer, Many CN crappy Android Tablet.
I tried using a OTG Cable with a USB thumbdrive on LGP9xx but no luck, browsing thru the system I found that there are USBDisk DIRs on / or /mnt/USBDisk, there are no define on vold.fstab at all on LG, not like the MOTO Xoom..
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
So my wild guess is it was not turned on kernel level?
As far as I can tell, there is USBHost OTG support on Tegra2, seen post related to that on that, I understand that hardware might not be wired (that's what we gonna check), anyone any info/hints/directions/ideas about this on the LGP9xx?
It would just be great if we can use OTG on LG99x...
thanks.
utp said:
Hi all, I did a search under this forum and do not actually found any info.
Actually, many older Android phone/device do come with USB Host (OTG) function, hardware or software, with hacks or officials,
Mod/Hacks:
MOTO droid, N1, ZTE Blade, etc
Officials support:
Samsung GS2, MOTO Xoom, MOTO Atrix4G, EEETransformer, Many CN crappy Android Tablet.
I tried using a OTG Cable with a USB thumbdrive on LGP9xx but no luck, browsing thru the system I found that there are USBDisk DIRs on / or /mnt/USBDisk, there are no define on vold.fstab at all on LG, not like the MOTO Xoom..
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
So my wild guess is it was not turned on kernel level?
As far as I can tell, there is USBHost OTG support on Tegra2, seen post related to that on that, I understand that hardware might not be wired (that's what we gonna check), anyone any info/hints/directions/ideas about this on the LGP9xx?
It would just be great if we can use OTG on LG99x...
thanks.
Click to expand...
Click to collapse
It needs to be turned on via menuconfig. I could do a quick compile later, if you want. The downside is, that a enabled USBHost disables the slave mode. So no mass storage (Or you implement something like holding back while booting up etc to enable usb host)
Benee said:
It needs to be turned on via menuconfig. I could do a quick compile later, if you want. The downside is, that a enabled USBHost disables the slave mode. So no mass storage (Or you implement something like holding back while booting up etc to enable usb host)
Click to expand...
Click to collapse
Wow, that's a quick and straight to the point reply!!!!!
I think I can live without a slave mode, most of my files are copied to the phone by samba, dropbox or ftp....
just wonder what trick did SGS2 or others uses, I know many of the devices which support OTG has 2 diff USB port, 1 for host and 1 for slave, but I "think" got that working too in 1 port, wonder is it the same as our case here that needs special reboot or so? (SGS2 is not available here yet...so I have never tried it instead of watching in on the youtube VID online...)
Anyway, THANKS! waiting for your releases. thumbs up to all DEVs!!!!!!!!
utp said:
Wow, that's a quick and straight to the point reply!!!!!
I think I can live without a slave mode, most of my files are copied to the phone by samba, dropbox or ftp....
just wonder what trick did SGS2 or others uses, I know many of the devices which support OTG has 2 diff USB port, 1 for host and 1 for slave, but I "think" got that working too in 1 port, wonder is it the same as our case here that needs special reboot or so? (SGS2 is not available here yet...so I have never tried it instead of watching in on the youtube VID online...)
Anyway, THANKS! waiting for your releases. thumbs up to all DEVs!!!!!!!!
Click to expand...
Click to collapse
Don't know. One part maybe only with other hardware drivers. The reboot solution would be best for us (but needs some work). So the easy enable via menuconfig would be enough. Anyway I started to working on this, but I don't know if my otg cable isn't working (slave function was disabled but host didn't worked). So I wanted to test it anyway. What do you need? only mass storage?
The compile could take a while (working on fixing cust toolchain build)
I am aiming on USB thumb drive, keyboard and mouse..thx..
Honeycomb 3.1 has USB Host support.
Hopefully someone can pull it out and use it somehow.
Since there's no source it might not be easy.
Or you can just wait for Ice cream Sandwich(Q4 2011), i'm guessing there will be Host support.
Any news on development?
i think the usb port of phone has no more power to use the flashdrive.
So is this a dead project? Or is there any hope left?
Not being picky or challenging to admin, I originally post this thread under development, which is should be more related since I am not asking generally how to "use" USB Host but related to kernel/drivers development....
I think this thread in general would not actually get much development attention at all...
Anyway, nope, no news, I understand hacks/dev is not a piece of cake, thanks for everyone who is working on the topic here!!!!!!!
and since CM distro do not support USB host at all, then I would suggest there may not be enough attention or momentum at all on this...
dusitmon123 said:
i think the usb port of phone has no more power to use the flashdrive.
Click to expand...
Click to collapse
I may not agree, I did use a O2Graphite with a USB host cable with a USB jostick, and keyboard+mouse on many CN made crappy Tablets, they just works...
Many USB devices do not drain that much power, especially some Flashdrives...
Hello
So is this thread as good as dead, or is anyone trying to develop this?
as far as seen on the thread, it seems dead.....
hello
the usb memory stick must be formatted in fat32 to work.
Which specfic cable works with it?
flavianoxxl said:
the usb memory stick must be formatted in fat32 to work.
Click to expand...
Click to collapse
Sent from my LG-P990 using Tapatalk
Nothing works with it, no-one has produced a kernel with OTG support for the P990.
No idea what that post is about.

[Q] USB Mass Storage

Hi guys sorry for stupid question. I have preordered HTC One and coming from SGS3 where samsung didnt offered native UMS mode for file transfer and I had to install stupid 3rd party apk as I cannot install anything on my work station so MTP and PTP didnt work. So the question is, does HTC One have native USB mass storage support for file transfer aka flash drive?
THX
No. By the way what 3rd party app did you use to enable UMS? It might come in handy to HTC One upcoming/users.
are you kid*ing? Again another phone for 600Euro without UMS? Is it JellyBean related?
BTW: I have been using http://forum.xda-developers.com/showthread.php?t=1711009 but only for microSD card, so it wont help with internal I suppose...
yes, it is jelly bean related.
UMS went out with ICS and all android devices use MTP as standard.
What OS are you running that it doesn't support MTP? Even my mums years old xp computer supports MTP as long as Windows Media Player is up to date....
Some corporate XPs (at work), so even they support MTP, after SGS3 connected some exclamation (cant remember what exactly) pop up because of restricted administrator rights (winXP wanted to install some drivers) and I only saw folders with unidentified files so totaly useles. But at home win 7 it worked. Only UMS fully work at my work computer. And thats very important to me...
Since JB there is only MTP, no Mass Storage.
But u can easily workaround with USB-Host OTG
LG, Helmut
kultus said:
Some corporate XPs (at work), so even they support MTP, after SGS3 connected some exclamation (cant remember what exactly) pop up because of restricted administrator rights (winXP wanted to install some drivers) and I only saw folders with unidentified files so totaly useles. But at home win 7 it worked. Only UMS fully work at my work computer. And thats very important to me...
Click to expand...
Click to collapse
Ah, Of course. Used to have that in my old job, but then even USB would not help me there as they had locked out all external devices. nice to know your IT department aren't as bad as mine used to be.
Looks like you'll have to go with that 3rd party app again...
hd2neuling said:
Since JB there is only MTP, no Mass Storage.
But u can easily workaround with USB-Host OTG
LG, Helmut
Click to expand...
Click to collapse
as I know USB on the go is for connecting flash drives, card readers, maybe camera or DVB-T or other client devices to host device (phone) so really didnt think about it to connect phone to computer throught USBotG reduction to PC. I think it wont work...

[Q] Preventing USB access to internal storage?

I've done some searching on this an not found anything really relevant - mostly questions about Media/MTP vs Camera/PTP and the loss of USB Mass Storage capability. My question is something different, and by the time MTP/PTP come into play things have already gone much too far. I'm also not clear whether this is a Nook thing or a Cyanogenmod thing, and I'm afraid that it might be the latter.
Is there any way to prevent access to the internal storage via USB?
On my HTC Amaze 4G (4.0.3) and I believe on my older 2.x based phone I have/had an option for USB connections: "Charge Only" or "Disk Drive" and with Charge Only there was no filesystem access from the PC. That is, in fact exactly how I want it. Heck, on the Amaze I actually have the option of encrypting the data, at least on the removable card. I see absolutely no reason why any shlub who gets his hands on my tablet should be able to freely browse the filesystem with the only requirements being a proprietary cable and a computer with a USB port. Heck, I don't want someone with a hacked charging station to be able to suck down the contents of my tablet (e.g. Jonathan Zdziarski's "juice-jacking" though that's focused more on iOS devices).
Is this really the state of security on modern Android devices?

Case with extended storage built in

I have access to a 3D printer, and I was thinking of designing a case with a bare flash drive built in. If I cut one of the USB OTG cables down that allows usb and charging simultaneously and fit it in the case design would I be able to have the USB connected and still be able to charge? If that is a possibility, is there a way to trick Android into thinking that the USB drive is instead an SD card? If we could trick Android into thinking it was an SD card wouldn't we be able to merge the flash drive with the internal storage and increase the storage capacity of the phone? My other thought for this idea was using multirom, and just sticking a 256gb flash drive in the case and just booting off of that. Do either of these ideas sound like they would work well at all? I just have the 32gb model and it just isn't enough.
No. The phone will not charge while in USB host mode, if you try to just throw in voltage you'll burn out the flash drive and or damage your phones micro USB port.
You're multirom idea wasnt bad. But all multirom does is allow a system partition to be installed with an image to a flash drive, and then boot it from the flash drive. It still reads data cache and such off your devices partition.
How are you using your storage? I got use to the "no expandable storage" with my lg and Galaxy Nexus.
Are you encrypted? Unencrypt your phone, you'll save 1.5-2gbs of storage capacity. Use Google photos to backup your photos and videos in HD quality and have it delete files after backup. Do you flash roms? Go through your android/data and Android/obb folders and delete everything related to apps you don't use.
It's not a bad idea to backup music/photos/videos to a PC, then wipe internal storage and restore all the photos and such. You would be amazed at how much storage our phones will use that you can't find and delete without digging around.
Deleted as apparently useless...
noidea24 said:
No. The phone will not charge while in USB host mode, if you try to just throw in voltage you'll burn out the flash drive and or damage your phones micro USB port.
You're multirom idea wasnt bad. But all multirom does is allow a system partition to be installed with an image to a flash drive, and then boot it from the flash drive. It still reads data cache and such off your devices partition.
How are you using your storage? I got use to the "no expandable storage" with my lg and Galaxy Nexus.
Are you encrypted? Unencrypt your phone, you'll save 1.5-2gbs of storage capacity. Use Google photos to backup your photos and videos in HD quality and have it delete files after backup. Do you flash roms? Go through your android/data and Android/obb folders and delete everything related to apps you don't use.
It's not a bad idea to backup music/photos/videos to a PC, then wipe internal storage and restore all the photos and such. You would be amazed at how much storage our phones will use that you can't find and delete without digging around.
Click to expand...
Click to collapse
I am un-encrypted so I do have that little bit of extra space. I have a lot of music on my phone for listening in the car. LTE is spotty where I live, so streaming isn't a great option. I was under the impression that with a modified kernel it is possible to charge and access a device at the same time. Doesn't the nexus 7 have a kernel that allows that? If that is in fact possible is there a way to trick android into thinking that it's an sd card instead of a flash drive?
This is one such kernel for the nexus 7
https://mehrvarz.github.io/usb-host-mode-power-management-nexus7/
I think my solution my work great if there is a kernel that works with charging and we could get the USB to integrate.
Encryption takes up more space?
Code:
adb shell sm set-force-adoptable true
lets you use any external storage device as adoptable storage letting you use a OTG drive as internal storage. Could've just been my drive but it stalled at 20% for a couple minutes, mighta finished but my OTG adapter is kinda flaky and lost connection. After a bit of reading I've learned it might be since my phone isn't encrypted and adoptable storage is encrypted by default.
Also from what I understand about OTG things is that you CANNOT charge the phone while it's connection with OTG even wirelessly.
Though with the N6 having USB 2.0 it'll likely be very very slow.
Ad
StykerB said:
Code:
adb shell sm set-force-adoptable true
lets you use any external storage device as adoptable storage letting you use a OTG drive as internal storage. Could've just been my drive but it stalled at 20% for a couple minutes, mighta finished but my OTG adapter is kinda flaky and lost connection. After a bit of reading I've learned it might be since my phone isn't encrypted and adoptable storage is encrypted by default.
Also from what I understand about OTG things is that you CANNOT charge the phone while it's connection with OTG even wirelessly.
Though with the N6 having USB 2.0 it'll likely be very very slow.
Click to expand...
Click to collapse
Awesome!! Thank you. I'll do some tinkering maybe this weekend to see what I can come up with. That was exactly what I was looking for as far as adoptable storage!
EDIT: I ran the adb command you gave me through terminal emulator on the phone itself after giving it root access. All 3 flash drives I tried integrated with my internal storage just phone. All 3 were 32gb usb 3.0, but each was a different brand. I built a custom "y" cable, but you can buy them on Amazon. I'm talking with a kernel developer and it seems it is possible to charge the phone at the same time. Both the nexus 4 and 2013 nexus 7 have custom kernels that allow what's called USB OTG Host mode that allows the device to charge and use a USB device at the same time. From what I can tell it's a kernel module that needs to be added. For the nexus 4 it was just a zip file that patched whatever kernel you were currently using. I don't have a lot of experience with compiling kernels, but I'll try and find out what needs to be done and fire my Ubuntu box up.

Categories

Resources