yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] ritchea:
I think the reader must be the issue here. I follow the exact procedure with a Targus 4 slot+mini usb power connection card reader that I used on my previous computer. The blue power light does show when attached to the phone, but the sdcard does not show. I've wondered if a "flash drive" style of reader might work so I, too, am interested in which reader you have.
[Nexus 4 Original Android Development] Sillik:
Actually it is a kind of "flash drive" similar to the one in your link, but slightly bigger.

I'll have more info after my workday...
[Nexus 4 Original Android Development] punitthereddevil:
Yes please...few pics too...

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] :
I second! My fake Kingston card reader worked together with a brandless China-made Micro SD Card.

Nexus 4|PA 3.99|Franco Kernel
[Nexus 4 Original Android Development] sumyt:
sorry , may I ask a question , do I still need a External power source , even if I just run a 16gb USB stick ?

can I just do what I did to my s2 , plug the OTG cable with the USB stick only ?
[Nexus 4 Original Android Development] adidas007:
You'll need a power source even for running a 128MB Pendrive.

S2 and N4 are two different devices.

N4 doesn't support native OTG without power unlike S2 which does.
[Nexus 4 Original Android Development] geokilla:
What source of power do you use?
[Nexus 4 Original Android Development] TheQuarterMile:
Has anyone tried a External Hard drive? Like 500GB+? It should work Right since there will be enough power... Would be great to use this mod as a CWM patch with any kernel of one's choice but anyways I have called for a Y-OTG cable and cant wait for mine to arrive and try out this mod. :D thanks alot.
[Nexus 4 Original Android Development] Sillik:
It is a cable plugged into an external powered USB hub on my computer.

But I suppose a wall charger would work too...
[Nexus 4 Original Android Development] szucsgf:
I tried a 500GB HDD but it didn't work. Small USB keys work just fine for me.
[Nexus 4 Original Android Development] punitthereddevil:
Look for a guy named marhensa on this thread...he's managed to get his 1tb hard drive to work using a powered USB hub...

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] blsrbl:
Hey Guys. The mod is not working for me. I made the OTG Y-Cable (I can't find such cables in my country). The N4 is charging well and the USB light turns on after connecting but nothing appears on my phone.

I'm on PA 3.99, Franco r178 and of couse flashed the JWR66* mod.
[Nexus 4 Original Android Development] punitthereddevil:
Sometimes it works only when u follow an order while connecting...what I follow is, connect everything in any order u like...but switch on the power source from the wall charger last...works for me every time...dunno why it matters but that's what I had read in one of the first ten posts of the thread...

If that doesn't work, then I advice u do a double check on the connections...also get them soldered for more definite circuitry...and most of all, make sure there are no short circuits between wires...someone here fried his motherboard coz of this...

I think its a 99% chance of an issue with the cable...so check on that...:)

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] blsrbl:
Thanks. I'll try and check. Hope it woks. If not i'm going to call my cousin in US to buy me a one and send it.
[Nexus 4 Original Android Development] blsrbl:
It worked! Just the wires weren't connected well. Thanks everyone. Thanks ziddey.

EDIT: USB memories working great except after disconnecting, media files still appear in gallery don't know if the OTG thing in general like this. But game controllers and mouse. The mouse lights up but no cursor on the screen.
[Nexus 4 Original Android Development] ziddey:
Just found out /system/etc/permissions/handheld_core_hardware.xml needs to have "<feature name="android.hardware.usb.host" />" added to it. Will be included in the next update. Don't think it'd change anything though since it seems having /system/etc/permissions/android.hardware.usb.host by itself is already enough to enable the Android API.

Anyway, you can modify it manually for now or use USB Host Check to do it.
[Nexus 4 Original Android Development] Sillik:
Hello guys,

More info about card readers:

I have two at home, one that works and one that didn't work. But after using the app above to fix the android.hardware.usb.host, the second one worked too.

So I guess that was the reason why some card readers didn't work.
[Nexus 4 Original Android Development] punitthereddevil:
Verified mine too...!!! Works with the reader which never did before...

But it doesn't get mounted...as in if I go to settings>storage, I don't see "unmount device" as it usually does when a drive is connected...and there's also a notification...I'm unable to attach the screenshot...

Here's what it says...

"Blank USB storage

USB storage is blank or has unsupported file system"

Can it be coz of the fat32 incompatibility or something...? Anyone else having the problem...?

Edit : [MENTION=4248278]ritchea[/MENTION], thought I bring this news of SD card working to your notice too...:D

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] Sillik:
I didn't get that notification, and fat32 should be compatible since it is the default file-system for SD cards on Android...

Have you tried with different cards?
[Nexus 4 Original Android Development] punitthereddevil:
just tried...It works fine with a different SD card...guess I gotta just format this one and then try again...maybe its NTFS...

Thanks bro...:)

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] weasel5i2:
SlimPort takes over the data pins, so USBOTG would not work, unfortunately..

---------- Post added at 08:01 AM ---------- Previous post was at 07:59 AM ----------

I plan to hack this into my ZeroLemon external battery case. The thing is a HUGE beast anyway, so I might as well, right?
[Nexus 4 Original Android Development] CoolApps:
The new Nexus 7 has Slimport and USB Host support, what does it have that the Nexus 4 doesn't.
[Nexus 4 Original Android Development] muzadull:
I think the slimport is fine but there is a problem in the power regulator/management on the board itself.The new nexus 7 uses the same slimport but has a different power regulator/management.Maybe with some dirty kernel hacks the board could provide the voltage but will it be safe?
[Nexus 4 Original Android Development] TheManii:
(I might be taking this out of context, if that's the case I apologise)

My 2013 N7 doesnt have that entry in handheld_core_hardware.xml, it only has android.hardware.usb.host.xml to identify that it supports otg.

This is on the stock rom of course.
[Nexus 4 Original Android Development] ziddey:
Yes, I think it might be protocol to include it, but it might not actually be necessary (I'm not sure how it knows of the existence of android.hardware.usb.host.xml otherwise though.. maybe it just loads everything in the dirtectory?). As far as detecting usb mass storage, I can't see not having that line allow some devices but prevent others. I'm pretty sure it's just a placebo and there's something else going on on the users' side for those who are reporting new compatibility...

That said, the N7 is a tablet, so you'd be wanting to check tablet_core_hardware.xml unless they've now unified it in 4.3 (or the rom for the n7 makes use of handheld still...).
[Nexus 4 Original Android Development] TheManii:
it's handheld_core_hardware.xml at least on the 2013 N7 definitely.

Out the current nexii (and on 4.3), only the N10 has it called tablet_core_hardware.xml
[Nexus 4 Original Android Development] Sillik:
About the placebo effect: I did a before and after test using a device plugged exactly the same way with the same SD card in it.

The only difference between the before (when it didn't work) and the after (when it did work) was that I used the app you mentionned to fix the XML file/entry and rebooted.

So if the XML fix doesnt make a difference, could it be simply the reboot?
[Nexus 4 Original Android Development] blsrbl:
Does this work with the franco's test r180?

EDIT: It worked.
[Nexus 4 Original Android Development] punitthereddevil:
I agree with sillik...I had thoroughly tested various types of card readers...but the card never ran...but after I did the xml mod u mentioned, its running fine...

I've no idea at all about the technical details of whether there's any association...but my basic observation was that the xml thingy did do something that made my card work...

I'm definitely not questioning you in any way...just telling u what I observed...

Anyways I'm really happy that u suggested that mod...or else my old 16gb card would have gone to waste...

So thanks a lot for that...:thumbup::)

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] halloga:
stock odexed

can i use this on stock odexed jvr66
[Nexus 4 Original Android Development] punitthereddevil:
Yes u can...I'm on stock odexed JWR66V and it works great...

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66V | ZIDDEY'S OTG KERNEL | CWM RECOVERY 6.0.3.5
[Nexus 4 Original Android Development] :
Thanks Ziddey for all the work! And yes my 500 GB portable hard drive works perfectly! Using stickmount to mount two partitions
[Nexus 4 Original Android Development] ziddey:
You should probably re-read the first post.
[Nexus 4 Original Android Development] mi3zu:
Is there any way to get something like this?

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

And include some kind of power also ( it's going to be a bit bigger yeah )
[Nexus 4 Original Android Development] sensei22:
hope this does not bother anyone thinking this is off-topic, but I was looking at this other solution instead of OTG:

http://www.amazon.com/SanDisk-Conne...77901447&sr=8-2&keywords=wireless+flash+drive

the main disadvantage is that whenever you connect to the drive, you lose internet access over wifi and of course, it is only to store media, nothing related to apps.
[Nexus 4 Original Android Development] punitthereddevil:
Is anyone facing random unexpected disconnections...?

I keep some files for transfer from phone to drive and stand 2ft away...and suddenly out of nowhere the notification cones up saying "unexpected removed"...!!!:what::what::what:

I definitely know its not a loose connection in the cable system...so any idea what it could be...?

Also when I tried to move a TWRP nandroid from phone to the flash drive, a message comes up saying "failed. There's may be in sufficient space on the target drive"...but I had 5gb free space and the nandroid was just 1.4gb...any idea whats wrong...?:what::what::what:
[Nexus 4 Original Android Development] :
I was moving some files from my phone last night and I experienced the same. It turned out the flash drive I used didn't fit snuggly in the OTG port. Try to check if your your usb-otg connection.

Nexus 4|PA 3.99|Franco Kernel
[Nexus 4 Original Android Development] Sillik:
About the TWRP nandroid, it may be related to some bug in v 2.6.0.0. There is a permission issue on the backup folder. But there is apparently an update that fixes it:

http://xdaforums.com/showthread.php?t=2002326
[Nexus 4 Original Android Development] punitthereddevil:
Is this the fix u are talking about...?

"That is the main issue of TWRP 2.6.

You can solve it. After the backup is done, and before rebooting, select in TWRP Advanced -> Terminal command, then select the backup folder and enter this command:

chmod 777 *

It grants all the possible permissions to backup files and you can save the backup to any other place.

Obviously this procedure should be done after every backup you done, until TeamWin solves it."
[Nexus 4 Original Android Development] Sillik:
Yes, but it probably easier to update your recovery to the last version instead.

Or used the otg-modified version posted earlier in this thread and backup directly to your USB stick...

Edit: link: http://xdaforums.com/showthread.php?t=2412689
[Nexus 4 Original Android Development] punitthereddevil:
I figured out the backing up directly to the drive thing...but I won't have access to a power source all the time...so it would have been better if I knew there's a nand on the PC in case of any rescue...

I have installed the same TWRP that u just posted the link to...but I'm unable to move the backup files...is there something I need to do manually...? Like the terminal thingy in your previous link...?
[Nexus 4 Original Android Development] Sillik:
If you made the backup to the internal memory, yes do the terminal thing and it should allow you to move it.

About your reasoning : if you do the backup to your USB drive, it will also be accessible from your pc if you plug it there. So in the end, it doesn't make a major difference...
[Nexus 4 Original Android Development] punitthereddevil:
Yeah...I realised that...was just about to edit my post...:p:p:p

Anyways the terminal trick did the job...now I can copy them...like u said, its not a necessity since I can make backups directly to the drive too...I just needed to make sure everything worked right...

Thanks a lot...:)
[Nexus 4 Original Android Development] ritchea:
I have this one and it works very well--very practical reading flash drives and sd cards plus being a power source. It works across devices (android/apple) so if you can afford it (it's pricey but not compared to other wifi drives), it could be a great alternative to "OTG." On this device, you can get web access through the device once connected.

Yes, that works; however, fyi, the updated TWRP 2.6.0.1 has fixed that bug. You cannot move 2.6.0.0 back-ups to the pc but you can move 2.6.1.0 back-ups. I'm currently testing the OTG back-up mod mentioned above on 2.6.1.0, so far, it seems to be working. It worked.

EDIT: Oops. the mod appeared to worked because it reflashed back to 2.6.0.0. zman0900 is working on the mod for the 2.6.1.0 version.
[Nexus 4 Original Android Development] punitthereddevil:
Yeah...read your talk on the TWRP thread too...:p
[Nexus 4 Original Android Development] ziddey:
I made a sort of "any-any" recovery mod: recoverymod.zip

It replaces the recovery's kernel with the boot kernel. Flashing this after the main OTG patch will therefore also apply the OTG-enabled kernel to the recovery. From there, it's up to the recovery to "natively" support usb devices. TWRP does. For any that don't, you'll have to manually mount partitions via adb.

Do understand what you're getting into-- if recovery for some reason fails to load, you'll have to be capable of reflashing it, be it via fastboot, goomanager, or however else.

I've tested this with TWRP 2.6.1.0.
[Nexus 4 Original Android Development] ritchea:
Thanks for taking the time to do that, and thanks for the warning.
[Nexus 4 Original Android Development] richardyusan:
Hi please add support for Touch Control because this otg patch makes phone restsrt itself if i integrate to TC
[Nexus 4 Original Android Development] Polv89:
Hello, i have a cable like this and I have flashed this kernel

Why usb otg doesn't work?

Thanks
[Nexus 4 Original Android Development] richardyusan:
That cable doesn't have external power cable
[Nexus 4 Original Android Development] Polv89:
So, it cannot work?

Seller has titled "usb otg cable for nexus 4"...

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] danizwam:
Look at the thread title: [USB OTG] [24AUG13] [PATCH] Externally Powered USB OTG ;)
[Nexus 4 Original Android Development] Polv89:
I've read it.. But on the first post is written for other cables

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] danizwam:
Sorry, i have to wait five minutes between two posts....

It would work with your cable, if the external USB device has an external power like 3,5" HDDs...
[Nexus 4 Original Android Development] Polv89:
So, pen drive or 2,5 hard disks no?

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] danizwam:
If they do not have an external power supply, you need an Y-cable wo provide the necessary power.
[Nexus 4 Original Android Development] Polv89:
Ok.. Is possible to buy it on eBay?

I search "usb otg y cable" but nothing

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] danizwam:
I think you are from spain. On eBay.es i can't find anything, but on amazon.com and ebay.com

http://www.ebay.com/itm/USA-Seller-...Phone_PDA_Cables_Adapters&hash=item3cd48e14f4

http://www.amazon.com/Micro-Cable-P...id=1378072494&sr=8-3&keywords=usb+y+otg+cable
[Nexus 4 Original Android Development] Polv89:
No, I'm italian...

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] danizwam:
Spiacente ;)

Look at the links i posted and buy a similar cable.

Maybe ebay.com or amazon.com send to italy.

or try amazon.de.

I bought this cable: http://www.amazon.de/gp/product/B00CM8P8FU/ref=oh_details_o00_s00_i00?ie=UTF8&psc=1

I'm going to bed now. Don't expect any answers in the next 8 hours ;)

GN8
[Nexus 4 Original Android Development] Polv89:
Ok... For 3.5 hard disks must i flash this kernel to activate otg?

Thanks

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] Wis76:
Hai bisogno di un cavo usb otg a y.

In pratica rispetto a quello che hai ha in più un ingresso per l'alimentazione.

È tutto scritto nel primo post di questo thread.
[Nexus 4 Original Android Development] necrologo:
Hello, just two questions:

1) what does it mean that builds do not allow host mode without charging? What is host mode?

2) if i buy a Y usb cable, can i use the nexus charger to give power to the usb pen?

Thank you!!!

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] Polv89:
Sei italiano?

Consigli dove poterlo acquistare?

E un'altra curiosità, posso alimentare il cavo con il caricabatterie del nexus 4 o simili ?

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] punitthereddevil:
Come on people...English...!!! Forum rules...

We don't wanna be left out of the talk here...:p

***Hit the "Thanks" button and save yourself the effort of typing it***

NEXUS 4 | STOCK 4.3 JWR66Y | ZIDDEY'S OTG KERNEL | OTG ENABLED TWRP 2.6.0.0
[Nexus 4 Original Android Development] norman505:
Seems like everyone is talking about using this mod for external storage, does anyone know if this will work for other usb devices such as keyboard, mouse, or usb modem? do I even need flash this if I only use those devices? TIA
[Nexus 4 Original Android Development] :
Keyboard, mouse.. Yes! USB Modem, no..

Nexus 4|PA 3.99|Franco Kernel
[Nexus 4 Original Android Development] cooku:
Hello,

My phone version is Android Original 4.3 (JWR66V), has flashed kernal r178, and the ziddey-otg patch.

I connect a USB disk with my phone (PC provides power), however, there is no file in usbdisk0, and the usb storage manager indicates that "failure to connect the device".

Does any one know how to resolve this problem? Thanks in advanced.

---------- Post added at 08:04 AM ---------- Previous post was at 07:17 AM ----------

it seems that the problem is from my USB disk...XD

Thanks all your help...
[Nexus 4 Original Android Development] ziddey:
What "usb storage manager"?

I believe stock Android ROMs only support FAT partitions. You'll need a better ROM or third party tools to use other partitions.
[Nexus 4 Original Android Development] prateek80:
Yes! It does works with usb modem too... I've tested and it works great i've used an app called PPP widget for the drivers its available on play store for free...:good:
[Nexus 4 Original Android Development] Sillik:
You can also buy it here:

http://dx.com/p/cy-u2-166-usb-femal...icro-usb-male-adapter-cable-black-15cm-205901

They deliver in Europe at cheap prices...
[Nexus 4 Original Android Development] ritchea:
This is very interesting as it is on the "to-do" list in the thread--rather the "to-accomplish" list. I installed PPP and changed my wireless router RT_N56U (which runs padavan firmware) to PPPoE and the "modem" is detected, but reports no driver found. Reading the PPP Widget creator's website, he reports: "Attention: Android 4.3 has changed the kernel so that loading driver modules is disabled."

You have it working. Are you running 4.3?

I didn't try my original N7 to verify that the ethernet connection no longer works.

If you are successful with 4.3, could you share any settings you had to make (the "configure" part of the widget)?

Thanks
[Nexus 4 Original Android Development] ziddey:
I might be misinterpreting but I think there's some confusion here? Prateek is talking about connecting a usb modem to the phone, not using the phone as one.

If you're wanting to connect the phone to your router, you're looking for RNDIS-- USB tethering. I don't know if stock supports it, but CM has long included native usb tethering. I don't have a usb capable router, but a brief search shows padavan has code for rndis: http://code.google.com/p/rt-n56u/so...a5&r=213754f792b4924869ccc87704e52e4cf4655da5

Perhaps some apps implement usb tethering using rndis as well.
[Nexus 4 Original Android Development] ritchea:
Thanks. I thought I was misunderstanding, but since connecting with the Bob gear ethernet adapter had been discussed earlier in the thread, it was worth questioning.

Basically, looking for a way to access ethernet connection where wifi is not available.
[Nexus 4 Original Android Development] necrologo:
Sorry for quoting myself... Someone can answer please?

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] ziddey:
Yes
[Nexus 4 Original Android Development] prateek80:
Okey, Let me clear the confusion.. There are two things which i've tested and are working for me..

1. I've a CDMA/EVDO USB modem which works perfectly with the help of PPP widget on 4.2.2 (soon i'll be testing on 4.3).

2.I'm using paranoid android v3.95 and i can assure that USB tethering works perfectly (i.e, i can use my nexus 4 as a modem on my PC without any issues..).

and i've not tested any ethernet connection on my nexus 4 so i can not tell if that works or not..:good:
[Nexus 4 Original Android Development] ritchea:
Thanks to both you and ziddey for making that clear.
[Nexus 4 Original Android Development] ziddey:
JWR66* 4.3.0 2013.09.03 2019ET: ziddey-otg-r182-09032019.zip Patch handheld_core_hardware.xml -- rebase to Franco r182.

JSS15* 4.3.0 2013.09.03 1800ET: ziddey-otg-r182-JSS-09031800.zip Patch handheld_core_hardware.xml -- rebase to Franco r182.

Note that the JWR build has the two major msm kgsl commits reverted. The msm mdp commits are still present. Do keep a backup kernel on hand in case it doesn't work (I don't use JWR so it's untested).
[Nexus 4 Original Android Development] sensei22:
When you say you can get web access do you mean using 2G/3G or Wifi? I would assume Wifi is blocked because there would be a collision.
[Nexus 4 Original Android Development] ziddey:
Wifi.

Read the description: "WiFi Hotspot: Can connect to your existing WiFi network so you can share files and access internet at the same time"
[Nexus 4 Original Android Development] :
Thanks.. But the JWR version gives me tearing screen. It's similar to using JSS on a JWR ROM. Please check that out. Thanks

Nexus 4|PA 3.99|Franco Kernel