yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] slippers67:
H8rift has said in the CM10 thread that they're currently working on a new kernel with full OTG support, including power from the phone. This would negate the need for the Y-adapter and an external power source. This would, of course, be for CM10/AOKP based roms, however.

Obviously if you're on unrooted 2.20 you're SOL.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
True, it's a bit inconvenient. But really the only complication is the external power source and stickmount if you want to mount automatically, exact same situation as on the Nexus 7. You shouldn't need to type any arcane commands into the terminal, I just posted that stuff for people who are interested in doing things manually.

It could be that the kernel you're using doesn't support otg. We still haven't confirmed whether the stock kernel works or not (if anyone has tried it, let us know)

And yes, it is /sys/kernel/debug, not debugfs, sorry.

My thought was that you could force it to host mode and use a regular micro usb connector, perhaps you do need the otg cable. I'm not sure why, as an otg cable simply connects pin4 to ground which "tells" the usb port to go into host mode. The other connections are the same (e.g. 5v, d+ d-, ground). But maybe it needs that fourth pin grounded to work, since the usb port on our device also serves as HDMI with an MHL adapter.

Also, make sure you are root!
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
That would be nice. If it is possible (and I'm a bit skeptical because it depends on the actual hardware), the changes could be added to other kernels for use on any ROM.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
Last night I flashed the stock kernel and tested, it works fine.

So, for those interested, this works with the stock kernel.

I will update the first post with this info.
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
which rom are you using right now(for the stock kernel)?.and also can you please confirm if its working without otg cable.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
^^I'm using cleanrom again, but I tested the stock kernel with the viper rom.

I can't test your setup because I don't have the right cables. Your cable setup just might not work. I can definitely put the phone into host mode manually though.

what is the output of:

cat /sys/kernel/debug/msm_otg/mode

it should say none when nothing is connected to the USB port and peripheral when a regular microusb cable is connected. If you manually set host mode, or if you connect an otg cable, it will say host.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
Now that I've had a look at the kernel source code, and have more familiarity with the hardware, I think there is a good possibility of enabling the 5V bus in host mode.

If anyone wants to mess around with this, download the kernel source and have a look at drivers/usb/otg/msm_otg.c
[AT&T, Rogers HTC One X, Telstra One XL] aznrice2k4:
Oh man, you must tell me howwww. :)
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
^^It would take some work and lots of testing and I don't have much time right now. But, a few posts back, someone said one of the devs here is working on it, so maybe we'll have something soon.
[AT&T, Rogers HTC One X, Telstra One XL] h8rift:
Yep. Using HDMI out via MHL, it uses some form of power from the bus (code specifically says USB_5v). Using that with otg should accomplish this. Problem is, HTC is *horrible* about mucking up code for things they add. Once we get the kernel (for AOSP, anyways) up to date with CAF, we should be in good shape to work on this feature :).
[AT&T, Rogers HTC One X, Telstra One XL] aznrice2k4:
No offense but I could probably do it in a week. I just need the initial help of where to start. If you tried my Rezound Audio Mod then you'll realize I'm just a genius. Lol sorry for being cocky.

Sent from my HOXL ReZounding everything
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
Then go for it, I pointed out a file to start looking at. You'll probably need to turn on a GPIO somewhere in the code for the mainboard in arch/arm/mach-msm/

You might compare the source to other phones using msm8960 that do supply 5v to usb, like the NA version of the Galaxy SIII or the Atrix HD.
[AT&T, Rogers HTC One X, Telstra One XL] 18th.abn:
From list_vreg on firmware 1.44.......need to check later firmwares but should be the same

VREG 8921_usb_otg : [Enable]NO , [Mode]NULL , [Vol]NULL
[AT&T, Rogers HTC One X, Telstra One XL] melax1:
Strated using the CM10 rom with rohan kernel and it works fine using a AC adapter. Gentlemen dev on the CM10 rom said he got OTG working with out the use of external power. He is testing it now. So that is pretty exciting when he releases it.
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
I hope that's true.

Sent from my HTC One XL
[AT&T, Rogers HTC One X, Telstra One XL] abhipati:
Also, for what its worth, I think we nailed USB OTG without requiring external power!. True USB OTG ￼.

But we need to fix the build issues first so I can test/verify ￼.

http://xdaforums.com/showthread.php?p=32797297
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
Wonder if this will eventually be ported to sense based roms.

Sent from my HTC One XL
[AT&T, Rogers HTC One X, Telstra One XL] abhipati:
I think it's more related to the kernel then rom, so hoping someone would chip in and enable it in one of the custom kernel
[AT&T, Rogers HTC One X, Telstra One XL] Salar.m:
Hey my friends,

I have 2 questions now (after reading the first post,):

1. I have an One X not rooted, with no custom kernels, no custom roms... will it be possible for me to connect a usb storage to my One X by just having an OTG cable and a Y cable and (of course my AC adaptor) ?

if no, what software changes is required?

and, 2. first post said that "usb storage" should be mounted manually... what extra things should I do for usb storage to be mounted in my One X? what does "mounting manually" exactly mean...?

Tnx,

Peace,

Salar.m
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
1. As far as I know, otg should work with stock ROM and kernel

2. You probably need root to mount usb storage. You need to be root to do it manually (e.g. run the mount command in the terminal). There are a few apps available that mount usb sticks (I have stickmount) and I think they need root but I'm not sure. Connecting a mouse or keyboard will probably work without root privileges.
[AT&T, Rogers HTC One X, Telstra One XL] Salar.m:
and, is there any video which shows how to connect the cables the way you explained...?

'cause I haven't seen Y cable yet, and I'm gonna buy it in local markets and I want to be sure about what I'm buying and its "guaranteed" performance...

is there any videos connecting the cables like what you explained?

I don't know what keyword to search on YouTube or net...

And does the mouse "point viewer" just appears on screen after connecting mouse to Y cable? No custom apps? No commands in Terminal Emulator?

Tnx,

Peace,

Salar.m
[AT&T, Rogers HTC One X, Telstra One XL] melax1:
The New Trent Portable Battery is very lite. 32gb flash card. The female to female usb adapter I got on Amazon. This Battery well also push the Toshiba Canvio external hardrives as well. I plan on getting the 1T next month. The Canvio Hard drive is th eexact same size as the Portable battery. I valcroed them together and used it with a tablet I had. Nice portable setup.

This protable battery well not push a external 2.5 drive for some reason. But does work with the Canvio fine. Em so sorry this picture is so BIGGG.. Not sure how to make it smaller.
[AT&T, Rogers HTC One X, Telstra One XL] Crappyvate:
h8rift said a while back he had otg with no external power working but still having bild issues so it hasn't been released but it's coming...

see here http://xdaforums.com/showpost.php?p=32797297&postcount=5493

Nice setup btw :good:
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
how much does that trent portable battery cost?
[AT&T, Rogers HTC One X, Telstra One XL] melax1:
amazon.com
[AT&T, Rogers HTC One X, Telstra One XL] Crappyvate:
it's coming: :victory:

http://xdaforums.com/showpost.php?p=33341671&postcount=1430

http://xdaforums.com/showpost.php?p=33344438&postcount=5923
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
@flar 2 can you please post that kernel file here which you have merged otg into(i mean the sense kernel)
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
You can download a sense kernel with full OTG support here

http://goo.gl/1PhYh

This is the custom kernel I use, it has otg support with 5v power, ntfs support, overclock to 1674MHz and slight undervolt. It's based on scrosler's cleankernel source. The OTG support is the work of h8rift. Consider it experimental and temporary until the guys with sense roms add OTG support to their kernels. Of course, I'm not responsible for any problems you may have.

Please note that you will still have to mount usb sticks with stick mount (or something similar). The automounting thing depends on the ROM, not the kernel. But you no longer have to use a Y-cable and power adapter.
[AT&T, Rogers HTC One X, Telstra One XL] number13man:
is this going to support usb audio for an external dac? i just ordered a fiio e7 in hopes of this working.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
^^ I really don't know anything about usb audio devices. All you can do is test it out. If it works on linux it can probably work on android.

There's no video.

The y-cable is like this: http://www.ebay.ca/itm/170626509284

But unless you absolutely don't want to root and run custom kernel, you don't need it anymore because proper OTG support is now available in kernel.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
FYI, USB OTG support is fully enabled in rohan32's new ROM, without the need for an external power source.

[ROM][10/27] King Kang Build 1 - Unleash the Beast! [AOKP + CM10 + ParanoidAndroid]

http://xdaforums.com/showthread.php?t=1959099

I haven't tested it our for myself yet, but there is at least 1 report of success in the ROM's thread
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
^^yes, and if you prefer a Sense based ROM, there is a kernel that enables powered OTG available for download a few posts above.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
I've been using the sense kernel with powered OTG since Saturday, I haven't had any issues. I see a bunch of people have downloaded it already, if anyone experiences problems, please post them here.

I also updated the first post with some links to ROMs/kernels with full OTG support.
[AT&T, Rogers HTC One X, Telstra One XL] Root-Maniac:
Flar, can you please zip that sense kernel up for me. I'm not near a comp. And when I try zipping it with the phone, it won't flash... Thanks
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
I'm at work now, I might have time to make a flashable zip tonight.

For others:

The only way for now is from bootloader: fastboot flash boot boot.img

Or to try without actually flashing: fastboot boot boot.img
[AT&T, Rogers HTC One X, Telstra One XL] Root-Maniac:
Thanks, I'm at work as well...that's my problem, lol
[AT&T, Rogers HTC One X, Telstra One XL] number13man:
I just got my fiio e7 in the mail and ,unfortunately, USB audio out does NOT work :(

unless there is something I'm missing, it showed on the e7 that I was plugged in and receiving power from the phone, but the music played out the back speaker.
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
Did you try plugging in a USB stick to see if OTG is working on your hox? What music player are you using?

Sent from my HTC One XL
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
This should work to flash boot.img without going to recovery or bootloader

http://xdaforums.com/showpost.php?p=32135789&postcount=1

Or maybe try this app:

http://xdaforums.com/showthread.php?p=33463262
[AT&T, Rogers HTC One X, Telstra One XL] number13man:
yes, it recognized my flash drive when I plugged that in. I tried using a few players... rdio, spotify, apollo..

edit: I forgot to mention I'm using cm10 and not a sense rom
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
@flar2 you have posted a kernel in op(for sense roms).will it apply to any sense based rom?
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
It's the stock kernel with otg, ntfs and a slight overclock, so it should work on any sense rom.
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
thanks for the info and i have a doubt that we have to mount the otg manually using command or it mounts in /mnt/usb1?
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
You can mount usb storage manually, or use and app like Stickmount. Stuff like keyboard and mouse will work automatically.

********************************

Also, I've packaged the sense otg kernel in a zip flashable from recovery.

http://goo.gl/z0WWF
[AT&T, Rogers HTC One X, Telstra One XL] h8rift:
The auto-mount functionality has to be put in the framework. In all of rohans AOSP ROMs and of course cm10, this is built in to auto-mount USB drives. Plug and play like a laptop/PC.

Sense ROMs will need to implement it into framework ( which will be zero fun....smali...::shivers:: ) and must run flar2's kernel or implement the patch into their own kernel.
[AT&T, Rogers HTC One X, Telstra One XL] Crappyvate:
so does that mean that an app like stickmount is no longer necessary for cm10/aokp ? Has something like this been implemented http://xdaforums.com/showthread.php?t=1841022 ?:confused:

Edit: still waiting for my otg cable so I've not been able to test
[AT&T, Rogers HTC One X, Telstra One XL] alnashri:
my phone die

please help me

i tried to put a kernel ElementalX v2.0 in my phone

but now it doesn't work it stop in logo screen

please help how could i fix it?

thanks
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
^^flash back to the kernel you had before

Are you using a sense-based ROM? The ElementalX kernel is not for CM or AOSP ROMs.

Did you try the 1.7GHz version or the 2GHz version? Maybe your phone can't handle the overclock?
[AT&T, Rogers HTC One X, Telstra One XL] jlamphere:
in the mail!
[AT&T, Rogers HTC One X, Telstra One XL] Skizzy034:
How much batter does something like a plugged in mouse or usb drive use?
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
I'm not sure. It would be interesting to try to measure.
[AT&T, Rogers HTC One X, Telstra One XL] docfred:
Since two weeks I own a HTC One X+. Today I've got my USB host cable and I'm quite happy.:)

On the HOX+ USB host mode works without any modification and WITHOUT an external power supply! The ASTRO-Dateimanger shows the usb device automatically.

docfred
[AT&T, Rogers HTC One X, Telstra One XL] gasim1988:
Hello

I want to ask whether it is possible to port the usb otg support in custom roms to stock roms of other android devices that not support usb otg .
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
OTG is a kernel function, not a rom function. Kernels are specific to each device.

But AFAIK, it is possible to add OTG to any Android device if there's a dev willing to do the work.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
The hardware has to support it too. Most devices do support it, but it surprises me how many don't implement it.
[AT&T, Rogers HTC One X, Telstra One XL] gasim1988:
I have galaxy s7562 duos and usb org is not working on it and really will be happy if some could help to implement this function to its kernel
[AT&T, Rogers HTC One X, Telstra One XL] Kingsmith:
Sounds fantastic, now to go buy a OTG cable.
[AT&T, Rogers HTC One X, Telstra One XL] WookieFan:
I'm using an OTG cable with an SD card adapter running stable CM10. I installed stickmount, but none of my music apps recognize the music directory at the root of the card.

I can navigate to the folder and select individual songs to play with Apollo or ES Music Player.

Is this expected? Any way for the directory to be recognized to play albums or random songs?

Thanks.
[AT&T, Rogers HTC One X, Telstra One XL] c5satellite2:
I think stickmount pro has some additional features relating to this issue.
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Has anyone been able to install it on a One X? I've got it on my N7 but I see no way to even sideload it. It's a certificate, not an apk, and I can't figure out where it goes.

I have stickmount and it works fine, I just can't install pro.
[AT&T, Rogers HTC One X, Telstra One XL] WookieFan:
Just installed the certificate/license without issue...
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
How'd you do it?
[AT&T, Rogers HTC One X, Telstra One XL] bobmorane83:
Hi guys,

I've plugged an old Terratec Sound card (Aureon 5.1 MKII) to my HK One XL with Y OTG cable, stock firmware, rooted.

It's reconized by the kernel and UsbAudioTesterRoot play HOXL mic to Terratec card phone output just fine !

But I can't find a player with the ability to change audio device. On SGS3 it seems that the stock player support it.

Does someone know any app that can stream from standard dev

to new device created when the card is plugged in ? Or even a player where you can change audio device port ?

Cable labelled "Micro USB Host OTG Cable W/ Micro USB power for Sam sung i9100 i9300 i9220 9250" on ebay

(As a newbie here I'am not allowed to copy URL)

allow :

- To switch HOXL in OTG mode

- Power USB Audio card

- Power HOXL (even if a warning popup say that it can't)

BTW, USB memory stick can also be mounted.

Thx,

Vincent.
[AT&T, Rogers HTC One X, Telstra One XL] WookieFan:
Through the Play Store. You are on CM10, right? I noticed that stock rooted and CleanROM 5 wouldn't allow me to install stickmount (not even the free app). This is the entire reason I moved to CM10 since I am normally a Sense fan.
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Nope, CleanROM. That does make it sound like Pro is 4.1 and up. I sideloaded stickmount from my N7, but I can't figure out a way to move the pro license over as well. I think there have been changes in authentication that may make it effectively impossible.
[AT&T, Rogers HTC One X, Telstra One XL] c5satellite2:
Google stickmount apk
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
I've got all the files. I just can't figure out how to install the pro key. It's not an apk.
[AT&T, Rogers HTC One X, Telstra One XL] c5satellite2:
What is it?
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
It appears to be a license file, and it's stored in a system folder that doesn't seem to exist on my One X. I've tried moving various stuff over, but nothing works. I think it's because the paid app authentication process changed with 4.1.
[AT&T, Rogers HTC One X, Telstra One XL] c5satellite2:
Find a different link on google. Just did this the other day. It's there. It's an apk.
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Ah, I see some enterprising souls appear to have bundled it together with the app. The pro Play download is just an 8kb license file, not an apk.
[AT&T, Rogers HTC One X, Telstra One XL] gasim1988:
Hello can any body help in adding usb otg support to samsung galaxy s7562 duos , i see some devices like sg i9000 , nexus one , xperia neo, and htc one x , have been succesfully tweaked to support usb otg using some custom roms like CM10 , but CM10 does not support dual sim , so what kernel changes should be made and what modules are missed , please i need yr help
[AT&T, Rogers HTC One X, Telstra One XL] vishal kotadiya:
how to manully mount otg pendrive in samsung s duos

anybodu can help me to mount USB otg pen drive in Samsung s duos.
[AT&T, Rogers HTC One X, Telstra One XL] juntjoo:
You mention this avoids the need for a y cable, which is actually rather just look for. Which are you referring to? Most of these otg y cables route the power input not to your device but the peripheral device.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
This means that the phone battery will provide power to the peripheral device.
[AT&T, Rogers HTC One X, Telstra One XL] juntjoo:
Really? Then what would the female micro usb be for if not to provide power to the peripheral? Also looking at these standard otg y cables, appears by the reviews that they do work to charge the "host" device http://www.amazon.com/gp/aw/cr/B009YPYORM/ref=mw_dp_cr but that there are a lot of factors I'm still learning here about.
[AT&T, Rogers HTC One X, Telstra One XL] flar2:
That's exactly what y cables are for, but the point of this is you wouldn't need a y cable. You could just plug a mouse into the phone and it will work.
[AT&T, Rogers HTC One X, Telstra One XL] juntjoo:
Oh, so this mod is to get power to your peripheral from your host device/phone vs what I'm looking for which is power to the phone?
[AT&T, Rogers HTC One X, Telstra One XL] Pavlex4:
Can someone make custom rom or kernel with full otg support for S3 Neo I9301I???
[AT&T, Rogers HTC One X, Telstra One XL] Adriano-A3:
I'd like too if somebody help me to compile a kernel with full otg support.
[AT&T, Rogers HTC One X, Telstra One XL] Ajith santhosh:
Otg is not working even I changed to lineage os 14.1

Give some tips
[General Questions and Answers] jamfreak:
Are there any (Jellybean) Roms out there for AOSP where the MHL cable works and I can connect it to my HD-TV for streaming media?

____________________________________

HTC Evo 4g LTE

CyanogenMod 10 unofficial TD build

TWRP

Bootloader 1.12 / S-on

Retired phone:

HTC Evo4g OG
[General Questions and Answers] lohyitchun:
I'm just switch from Samsung rom to blackcna. Aosp rom, now I can use my mhl cable anymore. So looking ahead for a solution.
[Xoom Q&A, Help & Troubleshooting] beluco:
I have edited the BUILD.PROP of my XOOM 2 MZ608 and it's bricked now. No NANDROID. No BACKUP. Can somebdy help me solving it ?
[Xoom Q&A, Help & Troubleshooting] uze:
If you like to lose all data on the tab, just try to do a wipe in stock recovery, or flash one of official sbf via RSD Lite. SBF can be found on droidevelopers site.
[T-Mobile, Samsung Galaxy SIII] SkylerC:
So I dropped my S3 in water a few nights ago (doh!). I left it in rice for a day as advised, and it had since been operating as usual. Would this water episode disrupt or negatively affect flashing roms in the future?

Thanks in advance.

Btw I'm fairly new. Been rooted for under a month.
[T-Mobile, Samsung Galaxy SIII] g2uzer:
Oops I accidently replied, please delete
[T-Mobile, Samsung Galaxy SIII] Xanatos57:
Not to be a ****, but we're supposed to use our magical powers to detect if the subtle circuitry inside of your phone is short circuited... how?

Yes, it's possible that when your phone took a dive something shorted which could cause an issue with flashing ROMs. It's also possible that nothing at all is wrong with your phone since it appears to work fine.

Or, I'm just a random person on the internet like everyone else who would potentially respond with no more or no less accurate of an answer for you because none of us are omnipotent.
[T-Mobile, Samsung Galaxy SIII] Android_Monsters:
If the phone works. You can flash
[T-Mobile, Samsung Galaxy SIII] SkylerC:
Thanks. I figured as much. Obviously not expecting anyone on here to be some sort of god, but it couldn't hurt to ask some more seasoned guys? Maybe this happened to someone and they tried it? Again, thanks.
[T-Mobile, Samsung Galaxy SIII] benefit14snake:
This. If it works you can flash.

Sent from my T999 GS3 @ 2GHZ
[T-Mobile, Samsung Galaxy SIII] jlczl:
And if it does you might as well since your warranty is already void anyway.