yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] kkh5:
I am rooted, I did check the drive with both my Nexus 7 and Windows 7 PC, When I opened Stickmount it did download some files to "improve file system support", was not sure if that included NTFS so I downloaded the driver anyway and I disabled charging on my nexus 4 so that all USB power went to the drive (I am using a 2A adapter). I guess I will try exFAT and see if that might help.

Thanks for the quick reply,

kkh5
[Nexus 4 Original Android Development] kkh5:
Okay I have tried reformatting the drive in FAT, FAT32, NTFS and exFAT and NOTHING is working! I simply do not understand since I was able to get this to work on my other ROM! Is there anything else I can do?

-kkh5
[Nexus 4 Original Android Development] nigelhealy:
Sounds like you got a bum ROM. Mine plain worked using stock ROM 4.4.2 with this patch on Franco kernel.

Scaping bottom of barrel of suggestions:

Try all the cable connections in sequence

Y to battery, then Y to hdd then Y to phone

Y to battery, then Y to phone then Y to hdd

Y to hdd, then Y to phone then Y to battery

Y to hdd, then Y to battery phone then Y to phone

Y to phone, then Y to battery phone then Y to phone

Y to phone, then Y to phone then Y to battery

On mine I found battery, hdd, count to 5 then to phone, worked.
[Nexus 4 Original Android Development] arvindgr:
Perfect solution. Great job man!

To reduce your work, can u provide a flashable .zip to enable OTG, so that we can quickly update to new version when respective kernel dev releases.

If that's possible then, everyone will

1. Flash latest kernel

2. Make it OTG compatible by another flash.

It is possible or?

Artistic Viable Ndugu on Mako
[Nexus 4 Original Android Development] Sillik:
So is this only working in the MultiROM version of TWRP 2.7? Or has anyone managed to get it working on a regular TWRP?

Is it possible to use the MultiROM TWRP without actually using multirom?

Thank you.
[Nexus 4 Original Android Development] UnitedOceanic:
There is a otg recovery kernel for TWRP somewhere attached in this therad, i can't find it at the Moment. Haven't used it in ages but i guess it should still work. If i rember correctly the filename was recoverymod.zip
[Nexus 4 Original Android Development] yochananmarqos:
It works with the normal TWRP 2.7 with recovery.zip linked below.

It's on ziddey's devhost: http://d-h.st/XAG
[Nexus 4 Original Android Development] Sillik:
Just for testing, I first tried to use the patch from this post:

http://xdaforums.com/nexus-4/development/recovery-mod-twrp-2-6-3-0-externally-t2412689

It is packing it's own kernel, instead of using the rom current kernel like the one you linked to.

But it didn't work. I guess the kernel in that mod needs to be updated.

So I then used the one you linked, which replaces TWRP's kernel with the one from my rom (Hell'score moded by justvarshney).

And it works just fine...
[Nexus 4 Original Android Development] atulclassic:
which version to download for stock 4.4.3 with franco r209?
[Nexus 4 Original Android Development] yochananmarqos:
http://xdaforums.com/showthread.php?p=53314791
[Nexus 4 Original Android Development] justvarshney:
Franco r209 commits are not yet published. Seems like its still in test stage.

I will add USB OTG as soon as the source code is published.
[Nexus 4 Original Android Development] sakis_the_fraud:
I am with stock ROM, android 4.4.4, rooted, which file should i download?

If I use this patch then I won't be able to use OTAs updates?

thanks in advance!
[Nexus 4 Original Android Development] justvarshney:
Dear Friends,

Please find the Franco's test kernel with USB-OTG.
[Nexus 4 Original Android Development] ramjet73:
Updates for 4.4.4

Does anyone know if [MENTION=584916]ziddey[/MENTION] is still around on the Nexus 4 forums. I appreciate the work that [MENTION=1175139]justvarshney[/MENTION] is doing for the kernels but it would also be nice to have the updated settings from the earlier versions of this mod.

I may PM him to ask if he's willing to do the rest of the updates for 4.4.4 since it will probably be a while before the Nexus 4 gets another update but wanted to check first if anyone knows his current status.

ramjet73
[Nexus 4 Original Android Development] rohit297:
A little bit off topic

I want to know that can we connect a printer through usb otg on nexus 4, i want to buy a new printer so i am thinking that if i can connect to my phone via usb or think of buying a wireless printer, hope someone has tried this before
[Nexus 4 Original Android Development] ramjet73:
Please don't cross-post the same question in multiple threads unless you don't get a response for at least one day after posting in one. I'll answer your question here but not in the [MENTION=1175139]justvarshney[/MENTION] OTG kernel thread.

Current printer drivers are too complex and memory intensive to implement completely in Android but printing to a wired or wireless printer works quite well with the required software installed. HP and other printer vendors have their own solutions and Westtek Jetcet is a printing app that has been around for quite a while and is often pre-installed on Android devices.

Google has an app called Cloud Print and there are other printing utilities such as PrinterShare, which advertises USB support but I've never tried it via OTG and that may be for USB printers attached to PC's. I don't know why OTG would be preferred over a WiFi connection unless you are looking at a portable solution and there are wireless printer options for that as well.

My preference is to stay with HP printers and software via a wireless connection since I've had good luck with that combination and the Android support is pretty seamless, but you should be able to get other printers to work after doing a little research and testing.

ramjet73
[Nexus 4 Original Android Development] rohit297:
Thanks for your response, but what kind of wireless connectivity u are talking about if i don't buy a wireless printer, although i have read everything about google cloud printing but don't want to spend much on a printer and just want a printer to be connected with my phone directly so thought of usb otg concept
[Nexus 4 Original Android Development] ramjet73:
Since you didn't describe your application (receipts, photos, documents, etc.) it's hard to recommend a specific solution but you should look for a printer that supports WiFi direct so you don't need to connect through an access point and has software support for printing from Android.

ramjet73
[Nexus 4 Original Android Development] abhi8569:
Will this cable work ?

http://www.ebay.in/itm/MICRO-USB-OTG-CABLE-WITH-POWER-HDD-CABLE-FOR-GALAXY-NOTE-2-S2-S3-S4-SONY-Note-3-/271435846900?pt=IN_Mobile_Accessories&hash=item3f32d654f4
[Nexus 4 Original Android Development] atulclassic:
only this will work
[Nexus 4 Original Android Development] Teo128:
Does the Matr1x Kernel v14 have really this OTG patch? I installed on my Nexus 4 but Doesn't work. It works flawlessy on my patched custom recovery tough.
[Nexus 4 Original Android Development] smartymcfly:
Does anyone know how to make a flashable zip or init.d script to automatically enable this on a kernel that has the patch. I have an old phone with cracked screen and it would make things a lot easier if I had an init.d script that keeps this enabled, I have AK kernel running if that matters.

I will ask in AK's kernel or synapse U.K.M. thread if nobody knows how to. Thanks

Also an addon.d script to keep the init.d script on through ROM updates.
[Nexus 4 Original Android Development] justvarshney:
I can help you with that. Please meet me online on hangout / skype. my ID is justvarshney
[Nexus 4 Original Android Development] rocker86:
Can anyone head me up to the link where I can get this in india?
[Nexus 4 Original Android Development] imdanix007:
I am in stock rom 4.4.4, but I am not sure which one to flash get otg support. Can some one help me to flash the right patch?
[Nexus 4 Original Android Development] MickymX:
I'm not new here, but I've tried to install Cyanogen Mod and to put OTG... crash and failed. So now I'm back to the stock Rom 4.4.4 from Google.

Answer to this question can really save me.

Hope you'll (we) have an answer to help us. I don't want to crash my phone again.

Thanks all
[Nexus 4 Original Android Development] atulclassic:
http://www.ebay.in/itm/MICRO-USB-OT...?pt=IN_Mobile_Accessories&hash=item3f32d654f4
[Nexus 4 Original Android Development] rocker86:
The listing showing ended on ebay.in / However I have purchased it from ebay.com
[Nexus 4 Original Android Development] alexander555:
Link

Here is the thread with the Patch for Franco Kernel 209 and Hellscore b47

http://xdaforums.com/nexus-4/development/kernel-patch-multiple-kernels-usb-t2586524
[Nexus 4 Original Android Development] Cigaras:
OTG and TV simultaneously?

A simple question, is it possible to connect to Nexus 4 external storage, like flash drive, and connect Nexus 4 to a TV over HDMI?

There was same question asked back in 21st March 2013, the idea was to use SlimPort adapter and then connect externally powered OTG cable into micro USB slot on said adapter, ziddey answered that he does not have the SlimPort adapter to test that, and looks like conversation ended here, because I am unable to find more information about that.

So I am re-asking this question, has anyone tried to achieve something similar? Not necessary the SlimPort solution, maybe there are other ways, like using some special hub and connecting SlimPort or MHL adapter over it? Sorry if I am talking nonsense, I am very new to this, however I know that there is a wireless solution using Miracast or Chrome cast to stream from phone to TV, however I red many negative responses about buffering so I would love to find a wired solution.
[Nexus 4 Original Android Development] loran_t:
Can i use it on stock 4.4.4? If yes which file should I download? Regards
[Nexus 4 Original Android Development] imeem:
with 5.0, do you still need this patch?
[Nexus 4 Original Android Development] nick2503:
Yes we need the patch! I just tried connecting Nexus 4 with the OTG that was working till yesterday with KK! But lollipop doesn't support OTG stock kernel! I wonder what Google wants all the NEXUS4 users to go through!

---------- Post added at 02:05 AM ---------- Previous post was at 01:22 AM ----------

I have on pure stock + root! I want to use OTG! please help me out with a way to use it! Should i flash the files that are meant for KK or kernels of KK! I wanna try the pure stock experience though!
[Nexus 4 Original Android Development] islam_ashraf:
after i flash the kernel, my wifi signal has been decreased for somehow, even if my phone is close to the router, the signal of wifi so weak, is there any solution to undo that kernel ?
[Nexus 4 Original Android Development] islam_ashraf:
or should i flash a radio or baseband, any help plz, :(
[Nexus 4 Original Android Development] imeem:
seems like you are right. https://support.google.com/nexus/answer/6127700

No mention of Nexus 4. Guess google figured that since Nexus 4 doesn't have hardware support, might as well not give it official software support. :crying:
[Nexus 4 Original Android Development] Plumeex:
Oh my god this is so awesome.

Finally, I can make TWRP backups without having to worry about music taking a lot of space on the tiny 8GB internal storage... Thank you so much for this, OP!

However it isn't working outside of the recovery. I'm using Paranoid Android 4.6 b6 (KK 4.4.4) with your latest patch.

Also the Settings app crashes when I tap "Storage".

Edit: Wi-Fi doesn't work with the patch, too. PA uses the stock Google Kernel and I applied your AOSP r7 patch.

Is anyone else experiencing this, or did I miss something?

Thanks in advance!
[Nexus 4 Original Android Development] ramjet73:
You need a kernel that supports OTG, a method to enable it (see this post), and the StickMount app to mount/dismount the storage device.

I use the Hells Doctor kernel with Stickmount on my Nexus 4 and USB works great.

ramjet73
[Nexus 4 Original Android Development] BigMatza:
Need advice for CM11 nightlies

I've been taking CM11 nightlies, and I really want this patch. Until now, I've been using the standard CM kernel that comes with each build. I'm looking for something pre-built with this patch that I can flash (and re-flash) over top of CM11. I don't need anything fancy in the kernel. Stability is my utmost concern. I've seen a few pre-built kernels available, but it looks like it's been a while since they were built, and I'm not sure if they'll still play nicely with the latest CM11 builds. Would someone please advise me on my best option?

Thanks!
[Nexus 4 Original Android Development] rishusngh:
i want to connect otg in lollipop roms.

Currently using otg in 4.4 kitkat but unable to find any solution for 5.0 versions.

is there any patch for 5.0 roms?
[Nexus 4 Original Android Development] equiliym:
There are kernels with otg patch for 5.x roms but you have to manually activate it or use an init.d script so it starts with the rom..

Also, there is that NXRom that has otg support thats auto mounting the drives and all which atm im using just because of it.. I suggest you give it a shot if you are using otg alot
[Nexus 4 Original Android Development] sandy7874:
guys, I have a OTG flash drive, can I connect to Nexus4 directly? like plug n play? I m on Euphoria Rom, Lollipop.
[Nexus 4 Original Android Development] shawnbrennan55:
You need a powered y-cable and you may need the "Stickmount" app.

http://www.amazon.com/dp/B00CXAC1ZW/ref=cm_sw_r_udp_awd_bKH0ub11RW0AN
[Nexus 4 Original Android Development] dasbooter:
Hmm I dont know if anybody else chimed in about this issue. Flashing this patch seems to disable wireless has anybody overcome this issue. Im currently trying to use a external wifi adapter with a OTG Y cable but since the patch seems to break wireless this sort of defeats the purpose. If you are wondering why somebody would want to use an external wifi adapter it is because nexus 4 is a platform that the kali linux people have been nice enuf to develop for. https://www.offensive-security.com/kali-linux-nethunter-download/
[Nexus 4 Original Android Development] parthabhatta:
Anybody knows of any USB otg drive with dedicate power supply. What I mean to say is an USB drive fitted with battery, preferably rechargeable so that there is no need for external supply through Y cable.. In that case though the drive may be a bit bulky, it will still be convenient to use that instead of separate power connected thorough Y cable. Anybody should start a kick starter or indiegogo project on this. I think this would be a new idea.
[Nexus 4 Original Android Development] namnoops:
Nexus 4 as media center

I want to use my Nexus 4 as a media center. Is there any way to have all of these simultaneously?

Phone charging

Slimport HDMI connected to TV

2 powered USB ports (keyboard/mouse and external SATA harddrive)

Thanks!
[Nexus 4 Original Android Development] GottZ:
Yes. Since nexus 4 does not have a powered usb you need an Y otg cable anyways.

Nope.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] namnoops:
Thanks for the quick reply!

I'm not sure I understand your answer though. I'm pretty sure only Slimport is possible with the Nexus 4. Did you mean it can't be done simultaneously with the Y-OTG cable?
[Nexus 4 Original Android Development] 4L3xN3t:
Hi all...any chance to see the patch updated to a kernel version compatible with lollipop?

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 4 Original Android Development] yochananmarqos:
Use Quanta Kernel.
[Nexus 4 Original Android Development] czecx:
Taurus Kernel

Hi,

Is it possible to enable the usb otg mode in Lollipop 5.1.1? I have used my Nexus 4 with Quanta v6 and works fine, but I have some lags with Quanta v6. Then I have installed the TaUruS Kernel with usb otg support but doesnt work for me. Any solution?

Nexus 4, AICP10, TaUruS R17
[Nexus 4 Original Android Development] JustinBacle:
Same here, waiting for a Lollipop patch :)

I never managed to get USB OTG to work on my beat-up nexus 4.

A few weeks ago I tried it on a friend's moto G (2nd gen) and was amased that I did not had to flash anything. It just worked... O_o
[Nexus 4 Original Android Development] gravitysandwich:
How am I suppose to get this damn Wired Xbox 360 Controller working.

All the modules I installed, Keyboard Layouts, joystick apps...BLAH BLAH BLAH, this damn thing wont stop blinking.

All 4 LED's keep blinking, and never sync up to 1st player or whatever.

GIVE ME FIX.

Sorry.

Please give me fix.
[Nexus 4 Original Android Development] k500zm:
OK Dude - Keep Calm

Flash quanta kernel http://xdaforums.com/nexus-4/development/kernel-sabermod-franco-kernel-r211-t2858561 and the app from play store

https://play.google.com/store/apps/details?id=com.zaclimon.quantatweaks&hl=en

It has wired xbox360 drivers - you need Y usb cable and power source

select usb otg in quanta tweaks - plug in 360

profit ;)
[Nexus 4 Original Android Development] gravitysandwich:
I have done that already. Maybe I need a custom ROM?

EDIT: Nevermind, I needed to update my kernel. Thank you anyways, works like a charm now.
[Nexus 4 Original Android Development] k500zm:
http://www.drdevs.com/devs/teamliquid/Nightly/Nexus_4/LS-LP-v4.1-layers-2015-09-20-liquid_mako.zip

http://www.drdevs.com/devs/teamliquid/Nightly/Nexus_4/

---------- Post added 6th October 2015 at 12:01 AM ---------- Previous post was 5th October 2015 at 11:46 PM ----------

Hope you got it working ?
[Nexus 4 Original Android Development] gravitysandwich:
Yeah I got it working, sorry but I guess you didn't see my edited post. I realized there's a new update to quanta kernel and I installed and it works flawlessly. Thanks anyways.:cowboy:
[Nexus 4 Original Android Development] paolocorpo:
@ 4L3xN3t have you fixed te issue ?

Did we need some patch or QUANTA kernel is enough ?
[Nexus 4 Original Android Development] dgm_mixtoon:
Cm12 or cm 13 working?
[Nexus 4 Original Android Development] dimaka1256:
nope

your way is to Quanta kernel thread
[Nexus 4 Original Android Development] kryzeK:
Deleted
[Nexus 4 Original Android Development] acr123:
Which file to flash in TWRP

I have an LG Ultimate 2 that is rooted and has a slightly modified ROM so it looks like LG G3. It is version of KitKat 4.4.2. There is a snapdragon based processor I have not been able to get OTG cable to recognize anything plugged into it. I have tried regular and y shaped power cable. There does not appear to be native support for USB host mode. Which of your files should I try to flash to see if I can get this to work or does anybody have any other ideas.. I understand this is primarily for Nexus, but thought I would take a chance and ask

Thanks,

Al
[Nexus 4 Original Android Development] kushank_sriraj:
I am using lava iris 360 music.

Please tell me how can i enable usb otg.

There are no resources available about my mobile on the internet.

Please help me.
[Nexus 4 Original Android Development] avlis88:
I Need help. I flashed quanta kernel, installed quanta tweaks. Active Option otg hack. Reboot my nexus. Plug pendrive with usb y cable. I use es Explorer, but dont see pendrive. I using pure nexus.

Enviado de meu Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] shawnbrennan55:
You also need Chainfire's Stickmount app from the Playstore.
[Nexus 4 Original Android Development] Trickster22:
Would it be working with this cable? And yes am on beanstalk 6.0.1 with hells core kernel

http://www.amazon.com/Micro-Cable-P..._UL160_SR160,160_&refRID=09X9JYJFW98TSVE7B0H2
[Nexus 4 Original Android Development] shawnbrennan55:
That cable should work, but I don't believe Hellscore supports USB-OTG.
[Nexus 4 Original Android Development] Trickster22:
Sorry was in a hurry I meant Hellspawn. I was about order that cable from Amazon.com but I checked it's shipping gonna cost me around $ 30.

So, what about this one. I am in a hope that it would do the job as it has charge/otg trigger with it for external power port. And loved it for it's extra two ports enable me to use my usb drive and gamepad all once

http://ru.aliexpress.com/item/4-Por..._6&btsid=05c67086-505a-4ebf-9628-7cad2a464ea5
[Nexus 4 Original Android Development] shawnbrennan55:
OTG works fine with Hellspawn and Quanta. I'm pretty sure I paid less than $10 for a cable from Amazon.
[Nexus 4 Original Android Development] Pavlex4:
Can I build 3.8v to 5v boost converter and put it inside phone???
[Nexus 4 Original Android Development] Goldian:
I tested the Quanta Kernel in my Beanstalk 6.16 and it works after activating otg-hack in QT, but I cannot bring it to work in Beanstalk 6.16 with Hellspawn 9.5. Do I have to make some steps, like activate it somewhere like the otg-hack in QT, or maybe do I have to install some other stuff?
[Nexus 4 Original Android Development] shawnbrennan55:
You still need to activate the hack and use the Stickmount app with Hellspawn.
[Nexus 4 Original Android Development] Goldian:
Thanks. With Quanta i found where to activate it (with QT App) but i didn't found where or how to make it in Beanstalk 6.16 with Hellspawn 9.5. Can you give me a help? :confused:

I even installed the Stickmount but it didn't worked maybe because I have to activate the hack, but i really have no idea where and how to do it.
[Nexus 4 Original Android Development] Trickster22:
Try kernel adiutor in Beanstalk setting app
[Nexus 4 Original Android Development] Goldian:
Thanks. I didn't found the right place in it to activate the hack.
[Nexus 4 Original Android Development] shawnbrennan55:
You can activate the hack in QT with Hellspawn or you can create a file with the text below and put it in /system/etc/init.d and give it the same permissions that all of the other files in that folder have.

#!/system/bin/sh

#

echo "1" > /sys/module/msm_otg/parameters/otg_hack_enable
[Nexus 4 Original Android Development] Trickster22:
http://xdaforums.com/showpost.php?p=66845893&postcount=513

Download attachment. Enable MSM_USB OTG under misc controls and use stickmount app
[Nexus 4 Original Android Development] Goldian:
I saw the post and indeed it is running, but i have problems with stickmount.
[Nexus 4 Original Android Development] kirkap:
Hi,

I have Nexus 4 with latest stock 5.1.1 ROM.

Interested to use USB DAC\AMP with his own integrated powerbank (Oppo HA-2SE).

From reading the posts I understood that Quanta kernel should be flashed and Quanta app should be installed to support OTG.

I have several questions:

1. Do I need to flash custom ROM before\after flashing Quanta kernel?

2. What is the exact order of steps to be taken from stock 5.1.1 ROM until OTG (sound in) will work?

3. If I understood correctly from Quanta release notes, charging the phone from powerbank will not be supported. Is it right?

Thanks in advance.

----------------------------------------

Update:

I have managed to flash CyanogenMod 13 stable release, then I have installed TWRP recovery (as cyanogen recovery failed to flash Quanta kernel V20).
[Nexus 4 Original Android Development] AhmedPlayer:
The links are dead. please reupload the files. especially recoverymod.zip as i sorely need it.