[Q] Usb master mode - HTC One X

hello everybody here on xda,
i have my self a very shinny hox (t3) unlocked through htcdev.com but no s-off but my question is can any one tell me what usb master mode is? i may sound stupid but when you hold down both volumes and the power a weird message comes up looking for a .zip then usb master mode but reboots back to the bootloader?
cheers :good:

+1

Anyone?

USB is asymetrical - meaning that in a usb link there is a master and a slave. For example, when you plugin a usb drive to your PC, the PC is the master and the usb disk is a slave.
It's done this way to lower cost of end devices, usb devices can be "dumb" when their slaves - means less components to build them - means cheap cheap cheap!
This is why Firewire was better, but failed to adopt as much as USB.
At any rate, when you connect your OneX to the PC, it acts in slave mode, presenting a couple of devices - USB Storage, Network Adapter, ADB and what have you not. What you see in hboot is when it is in master mode - meaning you can connect stuff like USB drives and keyboards TO the One X (using a Y Cable). In hboot specifically this is used to find recovery zip/.nbh files. Since the OneX has no removable storage, if you would screw up your system and recovery for some reason, you wouldn't be able to restore your phone easily (well, yes, there are methods, but it's basically HTC trying to have functionality they used to have by using a dongle).
I believe some android roms could (and do) provide Master mode for OneX. This would allow you to hook up USB keyboards, mice, gamepads and usb disks.
Hope this explains everything

Related

Can you plug a Thumb Drive to your WM Device?

Can you use the Mini USB connector on a WM Phone (I've got an Ultimate 9502) to successfully connect directly to a USB Thumb Drive (if you get a gender changer)?
Thanks
Nathan
works on my u1000...but as you mentioned it uses the 4-in-1 cable to adapt the standard usb plug to my unit's mini usb. i recall a similar question like this in the forum...and i remember rudegar's response that only a few wm devices accept usb thumb drives. not sure which ones though...so for your unit you may need to do some additional research and / or ask the manufacturer if this is possible.
but fyi, when i plug in a usb thumb drive, it comes up as "hard disk" when i use file explorer. this is separate from the sd card and the microdrive.
cheers
Thanks (did try searching first but did not find the post) - I've posted the Q at the IMate forum but I guess I'll find a gender changer and just try it

[Q] Confine USB port for charging only

I'd like to be able to charge my phone via USB on either the laptop or desktop computers at work, but everytime I plug it in and only say to charge, the comp still tries to download drivers...which also means Boeing could be accessing my phones SD card data. I could have sworn there was an option after entering the MSL that allowed me to make it charging only. Any advice?
Make sure "USB Debugging" is disabled on your phone. It's not the best to leave this enabled when plugging a phone into an untrustworhty computer.
Otherwise, when plugging the phone in it should prompt you to "Select a USB mode", and just press "Charging". The computer might see it as a Mass Storage device, but it can't actually mount/read the SD card unless you select "Mass Storage" at the above prompt.
I have USB Debugging enabled, and I do click Charging Only but I still worry as to what the sneaky IT guys at Boeing still might be able to do since the computer is still seeing it as a device and trying to mount it vs just charging and ignoring the fact that its a phone, SD card reader, etc.
With "USB Debugging" disabled, the phone presents itself just as a mass storage controller. But the SD card can't be mounted on the computer unless you explicitly allow it to on the phone, which has to unmount it from Android first before it can allow the host computer to see (and potentially alter) the SD card's contents.
With "USB Debugging" enabled, the phone presents itself as a composite device: the adb interface, a mass storage controller, and a UART (which isn't connected phone side). The behavior of the mass storage controller is as above, but the adb interface is trouble.
The issue is that the host computer can execute arbitrary commands as the shell user over the adb interface, including reading system logs (which may potentially contain sensitive information) and silently reading/altering SD card contents. Furthermore, if you're running a custom kernel, it's quite possible that the host computer can get a root adb shell without prompting, at which point it can do all sorts of nefarious things with your phone.
Again, "USB Debugging" disabled and "Charging" mode should be alright. There's no conventional way to access your phone content that way. But it does come down to how confidential your phone content is, and how much risk you're willing to tolerate. USB is a rather complicated protocol and I suppose it's conceivable that a USB host could exploit a client and run arbitrary code. Usually it's the other way around (a nasty client exploits the host).
If you really want, you could hack up a USB cable so that the computer side data pins are unconnected, and the phone side data pins are shorted. By doing so, the phone will charge (and only charge) from the computer. However, depending on how spec compliant the host port is, the phone might be limited to 100 mA, which is 1/5 the current the phone would normally draw.
Honestly, it's probably just best to bring your AC charger with you, or pick up a cheap spare for use at work.
I have standard wall chargers which pump around 600mAh into the phone (per Current Widget w/ settings at * and 2.18) while USB charging is only around 300mAh. Technically I'm not even supposed to have my phone on me, nor a I supposed to be charging the phone via extension cord or via USB on the laptop, but since I'm buried in here so much while using a laptop, USB will suffice to at least keep the phone charged vs the 26% I'm at now w/ almost 2hrs left in my shift while using a 3500mAh battery.

Second USB device

I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Dropshots said:
I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Click to expand...
Click to collapse
You'll need to buy a USB HUB (Get a powered one to future proof all your USB needs, you can get a USB 2.0 Hub pretty cheap). This will allow you to hook up at least 3 USB's to the OUYA. The Micro USB won't work for things such as hard drives or HID devices.
In the future, please use the search function before posting as this has been talked about in many other posts.
Dropshots said:
I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Click to expand...
Click to collapse
I have a 4-port hub and it works fine connecting 1 storage and 3 other usb devices
I had this issue where only one harddrive could be used and If you have a harddrive with 2 partitions ouya wont mount it. Luckily I found an app called usbotghelper which does all the above I mentioned plus read and write and ext3 support. I wish it would get submitted to the ouya store so I could use the paid version that will mount on startup.

OTG cable not connecting with USB drive

I have a Chinese phone and a Chinese OTG cable. On insertion of OTG cable the phone volume status bar appears, reducing volume to minimun and leaving to rest for a period removes the status bar. OTG Troubleshooter reports positive USB host support but negative on all three subsequent tests. I am now concerned that the cable is faulty. I am unaware of the technical limitations and because of this I need advice whether an OTG cable should provide the same connectivity with a PC as a standard USB cable. This one connects with my PC with no problem!!
Any help greatly appreciated.
justfreedo said:
I have a Chinese phone and a Chinese OTG cable. On insertion of OTG cable the phone volume status bar appears, reducing volume to minimun and leaving to rest for a period removes the status bar. OTG Troubleshooter reports positive USB host support but negative on all three subsequent tests. I am now concerned that the cable is faulty. I am unaware of the technical limitations and because of this I need advice whether an OTG cable should provide the same connectivity with a PC as a standard USB cable. This one connects with my PC with no problem!!
Any help greatly appreciated.
Click to expand...
Click to collapse
Are you sure your phone support OTG usb? Not all of them do. Regarding using OTG cable with PC, I'm not sure it will work. OTG cable has a few pins shorted together to initiate "host" mode on your phone so you can connect peripheral devices (like mouse, keyboard, usb stick, drive, etc.). By default, PC is already setup as "host" to act in that mode.
some Chinese phone does not support OTG, what brand of phone do you use?
vectron said:
Are you sure your phone support OTG usb? Not all of them do. Regarding using OTG cable with PC, I'm not sure it will work. OTG cable has a few pins shorted together to initiate "host" mode on your phone so you can connect peripheral devices (like mouse, keyboard, usb stick, drive, etc.). By default, PC is already setup as "host" to act in that mode.
Click to expand...
Click to collapse
My original post stated that the OSG Host had been confirmed as present and my query was whether an OSG cable would permit connection with a PC because mine will connect. This makes me think that the cable is incorrectly configured (or in other words NOT an OSG cable). Your reply stated that you were not sure, or in other words my query was not answered. I guess I'll just return it as faulty.

Where is the USB ADB/Fastbook port of the connected car system?

Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
NiQ1 said:
Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
Click to expand...
Click to collapse
Can you change the USB type setting to "PTP"?
NiQ1 said:
Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
Click to expand...
Click to collapse
Did you ever have any luck with this?

Categories

Resources