yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] anandbibek:
It actually seems to be new ramdisk problem. 195's zip has old ramdisk that works. Ziddey pointed out this in the other thread

OTG should not be responsible in any way. I misinterpreted it earlier
[Nexus 4 Original Android Development] elgar:
Same here. What's the way out?
[Nexus 4 Original Android Development] shalom06:
http://m.timesofindia.com/tech/pers...book&utm_medium=referral&utm_campaign=TOITech you guys think this will work?
[Nexus 4 Original Android Development] alivelee6:
Support 4.4.2?
[Nexus 4 Original Android Development] keyra74:
yup
[Nexus 4 Original Android Development] SpasilliumNexus:
It won't be as convenient as intended on a Nexus 4. You're still going to need to power it externally.
[Nexus 4 Original Android Development] kngkl:
Unable to mount my flash drive....USB storage is damaged.try formatting it.
[Nexus 4 Original Android Development] punitthereddevil:
There's no 4.4.2 version in the op...where did u get it then...?

______________________________

Can't keep up updating my signature with the pace at which I'm flashing ROMs and kernels...!!!:P
[Nexus 4 Original Android Development] keyra74:
r199 works
[Nexus 4 Original Android Development] elgar:
r199 isn't working for me. Still freezes and reboots on trying to change the governer from Performance to Interactive.
[Nexus 4 Original Android Development] keyra74:
Oh right same behaviour ... Doesn t mean it doesn t work thou

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Original Android Development] pdthekd:
Mount your USB storage on comp... Check if the file system is in NTFS problem might be due to that. Format to fat32 using PC then mount your USB on to the phone
[Nexus 4 Original Android Development] nigelhealy:
Correct, by default, ntfsfix isn't included in any instructions/packages so you must fix NTFS on another machine. You could copy the other packages over if you wanted to fix without a PC.

If your usb storage is large, a typical Windows desktop will try to format it NTFS. Yes you can force it to format FAT32 and yes then its readable by both Windows and Android. That would be actually the best recommendation, its easiest.

However, the alternative if you want NTFS (read-only, and optionally read-write) to work, such as with large harddrive support and large file support, in Android is:

- must be root

- install Stickmount app

- (optional if you want NTFS write support) install "SELinux Mode Changer"

- follow Stickmount's instructions for NTFS, copy the ntfs-3g file to /sdcard

- (optional if you want NTFS write support), run SELinux Mod changer and make it "permissive mode".

- plug in NTFS device

- ignore all what is Android is telling you about formatting, and yes, that message will be there til you next reboot.

- Stickmount, give it root permissions (one time)

- Stickmount will tell you were it is mounted /sdcard/usbstorage/sda1 is typical.

To umount if NTFS which was read-only you can simply pull drive, but if you went for NTFS read-write you risk corruption so:

- Stickmount umount

- (optional to put it all back as it was) SELinux Mode change make it "enforced mode".

I got NTFS read-write support across all my devices now, this kernel gives me on N4.
[Nexus 4 Original Android Development] kngkl:
It get mount using stick mount bt unable to find files even in sda1 n from where to copy ntfs-3g file?
[Nexus 4 Original Android Development] Step-han:
For people who have problems with Ziddey's franco.Kernel with switching between governors look here: franco.Kernel init.d configuration
[Nexus 4 Original Android Development] nigelhealy:
RTFM

https://play.google.com/store/apps/details?id=eu.chainfire.stickmount&hl=en

".....StickMount can utilize the "ntfs-3g" to add support for ntfs ... "ntfs-3g" in the root of your internal storage ( /sdcard ), StickMount will automatically use them."

Obviously the link they supply is a zip, unzip and extract the file and copy it to /sdcard.
[Nexus 4 Original Android Development] Ashwa:
Lost root on 4.4.2 ( calkulin 1.3.1 ) after flashing r196. Any help.

sent from n4 powered with calkulin's work. ( calkulin's ROM 1.3.1 )
[Nexus 4 Original Android Development] v12xke:
Flash Chainfire's SuperSU 1.85 in recovery?
[Nexus 4 Original Android Development] nigelhealy:
I just keep it in my /sdcard all the time now, too many things break root.

This file kept in /sdcard and if I lose root just get into recovery mode and run this zip

http://download.chainfire.eu/372/SuperSU/UPDATE-SuperSU-v1.86.zip?retrieve_file=1 is the current one as I type

but the generic d/l link is download.chainfire.eu/supersu
[Nexus 4 Original Android Development] vishal007:
Excuse me, where can I find the color fix for this kernel?
[Nexus 4 Original Android Development] haimn:
Every time I unmount the USB from the setting I get the message "USB storage removed. Insert new media" in the notification bar, and I cant swipe it, just reboot remove it, I saw this question before but no one answer it: http://xdaforums.com/showthread.php?p=41209700#post41209700

maybe someone have a solution (xposed modol or fix)?

Thanks!
[Nexus 4 Original Android Development] artola:
Install the CM version
[Nexus 4 Original Android Development] Whhoesj:
Use these values in Trickster:

Gamma

brightness 4

contrast 25

saturation 66

Red, Green and Blue

black 118

greys 32

mids 68

white 64
[Nexus 4 Original Android Development] arken:
when it will be released the version 4.4.2?
[Nexus 4 Original Android Development] nigelhealy:
it is 4.4.2 already

It is. The 4.4.1 on the OP should read 4.4.2. This patch is based on Franco kernel which is r199 which is running on 4.4.2, 4.4.1, 4.4

I'm running it now, screenshot attached.
[Nexus 4 Original Android Development] vishal007:
But that's a temporary fix. I mean that won't fix the weird sky blue color while on boot animation. I will use it for now. Thanks :)
[Nexus 4 Original Android Development] lethang90b:
can connect nexus 4 to USB DAC ( digital to analog converter ) ?? does i need power cable or regular cable ??

thanks
[Nexus 4 Original Android Development] nigelhealy:
RTFM

The N4 cannot power anything from its USB port so only things self-powered separately or capable of being powered by USB via Y-cable. If your DAC is not self-powered you need a Y-cable.
[Nexus 4 Original Android Development] MatyiFKBT:
And what if I have Android 4.4.2 on my Nexus 4?
[Nexus 4 Original Android Development] Step-han:
Install the 4.4.1 version. It works on 4.4.2
[Nexus 4 Original Android Development] howard bamber:
Hi I'm running the latest version of the kernel. I've a USB otg lead, with external power. How do I get it up and running? When I try to set USB otg mount in team win recovery it says unable to mount.. Any help appreciated. Love this kernel and the way it's made my phone live to its potential ;)

Sent by reversed alian technology.

Went to download "file not found" I'm not a coder in any sense. I just want to be able to use USB otg. Is there a working file for odex ed roms in zip form? Id kill for a fully working version of this!

It's numbing my brains picking through this! :P

Sent by reversed alian technology.
[Nexus 4 Original Android Development] nigelhealy:
You want otg support in recovery mode? You aren't running a kernel then for any kernel mod to even work....

Or am I missing something?
[Nexus 4 Original Android Development] saw81:
help .. does anyone know how to help me

[ROM][KitKat 4.4.2][MAKO] Cataclysm -fk199

i have flash this patch(4.4.x: 2013.12.11 fk199)

I formatted to fat32 but the device(usb 8gb) is not recognized

thx
[Nexus 4 Original Android Development] nigelhealy:
What happens when you run stickmount?
[Nexus 4 Original Android Development] saw81:
nothing

active mounts:none
[Nexus 4 Original Android Development] nigelhealy:
Cover the basics. You're running stock ROM and rooted? You are actually using a powered Y OTG cable? My USB drive I had to connect Y to power then connect drive then connect to N4 for it to work. Try difference sequences.

When you say you formatted it FAT32, are you SURE? Its not NTFS or exFAT?

Stickmount points to files you put in /sdcard for ntfs-3gg and exFAT.

Also the filesystem must be mountable meaning not containing filesystem errors, and on another device (e.g. windows) do a chkdsk. I run Linux and for ntfs I used ntfsfix to fix my NTFS USB storage before Stickmount would mount it.
[Nexus 4 Original Android Development] MC MILK:
i don't know why when i flash the fk r199 with Franko kernel but the phone doesn't start before the Google Logo then never pass it.
[Nexus 4 Original Android Development] giebeka:
Hi I am using zidney's r193 otg kernel and PACman 4.3.1 ROM. GTA SA cant detect my XBOX 360 Controller via USBa.

I try to this:

But it didn't help.

Thats what CatLog says when I plug in controller:

12-23 17:12:23.001 I/System.out( 4794): BroadcastReceiver WarMedia Base android.hardware.usb.action.USB_DEVICE_ATTACHED
12-23 17:12:23.001 E/WarBase ( 4794): BroadcastReceiver -> ACTION_USB_DEVICE_ATTACHED UsbDevice[mName=/dev/bus/usb/002/002,mVendorId=1118,mProductId=654,mClass=255,mSubclass=255,mProtocol=255,mInterfaces=[Landroid.os.Parcelable;@422a16f8]
12-23 17:12:23.001 E/WarGamepad( 4794): Device Attached : UsbDevice[mName=/dev/bus/usb/002/002,mVendorId=1118,mProductId=654,mClass=255,mSubclass=255,mProtocol=255,mInterfaces=[Landroid.os.Parcelable;@422a16f8]
12-23 17:12:23.001 E/WarGamepad( 4794): could not find interface
12-23 17:12:23.001 W/ContextImpl( 768): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1114 com.android.server.usb.UsbSettingsManager.deviceAttached:621 com.android.server.usb.UsbHostManager.usbDeviceAdded:156 com.android.server.usb.UsbHostManager.monitorUsbHostBus:-2 com.android.server.usb.UsbHostManager.access$000:38

Sorry for my english
[Nexus 4 Original Android Development] Sacob:
199-Cm version sets the cpu governor to performance and i can't change it. every time i try to change it i get a hard reboot (with cm performance settings and franko kernel app). did this happened to any of you?
[Nexus 4 Original Android Development] SpasilliumNexus:
Read a page or two back for a temp fix.
[Nexus 4 Original Android Development] kingparthi:
cant read usb drives above 4gb

otg works well but it doesnt read the pendrives that was above 4gb is there any solution for this...
[Nexus 4 Original Android Development] nigelhealy:
Are you sure it isn't just a NTFS format and so need Stickmount app with ntfs-3g?
[Nexus 4 Original Android Development] eris23:
4GB is the limit for fat16 (http://technet.microsoft.com/en-us/library/cc938432.aspx). What format is you pendrive?
[Nexus 4 Original Android Development] justibasa:
Franco had released r200. Hopefully we see it here soon.
[Nexus 4 Original Android Development] kingparthi:
fat 32 my partition

fat 32 is my pendrive partition
[Nexus 4 Original Android Development] ziddey:
4.4.x: 2013.12.30 0348ET: [fk r200] [fk r200-CM]
[Nexus 4 Original Android Development] dppow:
That was fast, thanks!
[Nexus 4 Original Android Development] Sacob:
does the 200 version have the problem with the cpu governor?
[Nexus 4 Original Android Development] Tennic:
Yes, when I set CPU Governor to Interactive, reboot (with FKU or trickster, is the same) :(
[Nexus 4 Original Android Development] Sacob:
which versions does this problem affect? fk r200 or fk r200-CM? normal version or the version from this thread with otg?
[Nexus 4 Original Android Development] SpasilliumNexus:
Why bother with CM on a Nexus device, on top of their changes that almost no dev here wants to deal with?

Anyway, someone has posted an init.d script a few pages back for the CM version which sets the governor to what you choose inside of it.

EDIT: http://xdaforums.com/showpost.php?p=48603688&postcount=1342
[Nexus 4 Original Android Development] Sacob:
I'm not using CM.. i'm using a cm based rom.

so it's just a CM problem?
[Nexus 4 Original Android Development] SpasilliumNexus:
Yeah just CM. No problems at all on the non-CM one.
[Nexus 4 Original Android Development] anandbibek:
1. Take zImage out from latest zip

2. Replace zImage inside r195 zip

3. Flash this modified r195

4. Profit
[Nexus 4 Original Android Development] anandbibek:
Hello Ziddey, I was going through the changes in zip file between r197 and latest, trying to figure out the cause behind governor bug.

I think the modrd.sh file has 4 lines missing in modifying init.mako.rc related to setting each cpu's scaling governor.

I couldn't get enough time to test drive myself. Maybe someone could check?
[Nexus 4 Original Android Development] vyis:
well, i have success using a power bank to supply the 5V and current. Isn't this amazing that our phone also charge at 5V:D
[Nexus 4 Original Android Development] ichbinich:
Well done, ziddey! :)

Now it just has to work without external power (somehow :eek:) and it would be just perfect.
[Nexus 4 Original Android Development] osi13:
Sounds good, I'm glad it worked out for you. If you want your Nexus 7 to charge, and utilize OTG, you need Faux kernel or Timur's kernel (it's over at Rootzwiki). I've used both kernels with the cable you own, and both of them charge my Nexus 7 while using OTG. It's a total bummer that the Nexus 7 doesn't have any form of video out, because the device could truly replace an HTPC.
[Nexus 4 Original Android Development] sga999:
ritchea, great that your cable with micro male and female (and male USB A) worked, just as it did for me. Interesting that your other cable from ebay did NOT work, just like mine from the same place...that could mean all of those from that site are bad. Or we are just two unlucky ones!
[Nexus 4 Original Android Development] ritchea:
No, I think that the cables are bad--or misrepresented.

@osi13, thanks for info on N7. Hadn't even thought about that. It's mostly used for reading and vid viewing when I don't want to carry my 10" Toshiba Thrive so charging while using could be beneficial. ATM, I don't know what kernel I'm running on that.
[Nexus 4 Original Android Development] kennyry:
I wonder if you could use a jumper wire from the battery connection on the actual phone circuit board to the +5v power micro USB connected on the phone... Or would is jack up the phone or make some sort of battery/phone charging paradox? :eek:
[Nexus 4 Original Android Development] Roastmeat:
Lets say you didnt want to charge the phone while reading from a USB stick,

Wouldn't it just work if you snip the power cables going to/from the phone, and hook up 5V directly to the USB stick?

Or does the phone require some sort of current sensing loop to determine if a USB is plugged in?
[Nexus 4 Original Android Development] ziddey:
Please reread the first post:
[Nexus 4 Original Android Development] ziddey:
2013.03.27.2338ET: ziddey-otg-03272334.zip Allow host mode when slimport connected (must manually enable for now. not sure if it actually works, so please report results.) Prevent forced host mode from entering suspended state so it won't get stuck (perhaps worth reinvestigating if we ever get internal power working). Allow forcing mode via /sys/kernel/debug/msm_otg/mode regardless of current state (original code had conditions that were unreasonable. it is designed to be used for debugging after all..). Merged a missing commit for Franco's M1 release (I have no idea how to use git).

Kind of a maintenance build and not worth upgrading to unless you need any of the changes. Mainly came about because it made it easier for me to play around with Slimport power. Unfortunately, it looks like it isn't able to supply enough current/voltage. I believe the spec is something like 4-50mA @ 3.3V. I measured 3.1V when forcing it to power up. Couldn't get any devices to detect, even when providing external power, which is a little concerning. Either OTG passthrough is not working, or I'm not getting it initialized to the point where it does. I hacked up a few cables together so I could power a usb device with the phone, but have the data connected to a computer. I tried a flash drive and sd adapter, but they don't seem to be getting enough power. I tried a usb hub, but I'm imagining it tripped the overcurrent protection (no more power until I rebooted). I didn't see anything in the logs though, so I'll have to see if I can find anything in the code.

If anything, it still might be possible to run a microsd off slimport power.. SD cards take 3.3V, requiring components to step down usb's 5V. I still have to do more research, but have seen some conflicting data about power consumption. If it can be kept under 50mA (or I suppose we could get more elaborate with capacitors..), we should be good to go here. However, we also have to worry about the sd-usb controller. If any of these run on 3.3V, it could also be powered directly. I need to get some adapters to take apart.
[Nexus 4 Original Android Development] superfloup:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

Hello.

Just received this cable http://pages.ebay.com/link/?nav=item.view&id=111033161615 and all is working great ! Great job !

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Original Android Development] jamesc760:
LMAO ROFL!!! It's like asking if you can have the cake and eat it too!
[Nexus 4 Original Android Development] fastdan:
hi there...

I'm having an issue.I connected an USB drive, and it mounts and can see it in root explorer but nothing shows in settings>storage nor any media scanning takes place. I'm using stock android 4.2.2 and the latest patch.

EDIT: I'm on CWM 6.0.2.3

EDIT 2: Looks like it does work fully in CM10.1, but not stock.
[Nexus 4 Original Android Development] ziddey:
What recovery are you using? The update script doesn't seem to play well with some recoveries for some reason. It should work with CWM / CWM touch 6.0.2.3, and possibly TWRP. There have been reported issues with some of the later unofficial CWM recoveries.
[Nexus 4 Original Android Development] baltac:
Just for report... Now I'm on latest CM10.1 nightly and latest TWRP touch. Your recovery package is working flawless. :)
[Nexus 4 Original Android Development] EDV11:
[OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

Im waiting for some cables to arrive. I want to test it with a Motorola Atrix Lapdock. It would be cool if I can use the phone as a laptop...
[Nexus 4 Original Android Development] ziddey:
I just got a PM from fisch88:

This is some unfortunate news. I had tried forcing slimport on to try and use the 3.3v, but wasn't able to get any devices to connect either. I figured it was either because slimport wasn't being fully initialized to enable passing through otg data, or that there was an issue with the code or hardware. I did some more research and came across http://xdaforums.com/showthread.php?t=2016867

I read that thread before but missed that paragraph. This is unfortunate news, as it most likely means there's no possible way to use slimport and usb host at the same time. With regards to still being able to use the 3.3v somehow, more research needs to be done, though I believe that it's the slimport chip itself that's responsible for delivering the 3.3v. That means most likely it's not a viable option then. Back to the drawing board... :(
[Nexus 4 Original Android Development] sga999:
ziddey, I'm having a problem using a power bank to charge the phone while running your kernel.

I'm not doing anything with an OTG or Y-cable right now, i.e. I'm merely using the existing charging cable for the N4. If I plug the cable into the laptop or adapter, it charges fine. If I plug it into 2 different power banks that I have, it will not charge.

I thought this had worked with older versions, so I went back and started with your first kernel, testing this with each. The last one that worked was:

2013.03.11 2244ET: otg_boot_r3.img

So this is the one where it stopped working (and I assume all versions after that have the problem; I know your current version does not work):

2013.03.14 1648ET: otg-franco-boot-03141621.img

I've tested with several of the latest Franco versions, and it charges fine with these power banks.
[Nexus 4 Original Android Development] ziddey:
You're going to need to provide pertinent info from dmesg in order to figure out what's going on. Builds before 3.14 were extremely dirty with this and that's all over the place to get host mode "working."

I just tested with a powerskin and it works fine (although since it's being detected as a dcp charger, D+ and D- are probably shorted):

<7>[39014.871255] PMIC: BSV set
<7>[39014.871713] msm_otg msm_otg: OTG runtime resume
<7>[39014.875955] reg (HPM)
<7>[39014.876443] msm_hsusb_config_vddcx: min_vol:1045000 max_vol:1320000
<6>[39014.876474] msm_otg msm_otg: USB exited from low power mode
<7>[39014.876748] b_idle work
<7>[39014.876748] b_sess_vld
<7>[39014.876779] msm_otg msm_otg: chg detection work
<7>[39014.967852] msm_otg msm_otg: chg detection work
<6>[39015.039910] chg_gone_irq_handler: chg_gone=1, usb_valid = 1
<6>[39015.040063] chg_gone_irq_handler: Chg gone fsm_state=3
<6>[39015.040124] chg_gone_irq_handler: schedule to check again here
<7>[39015.067806] msm_otg msm_otg: chg detection work
<7>[39015.167791] msm_otg msm_otg: chg detection work
<7>[39015.267836] msm_otg msm_otg: chg detection work
<7>[39015.368004] msm_otg msm_otg: chg detection work
<7>[39015.468020] msm_otg msm_otg: chg detection work
<7>[39015.519355] msm_otg msm_otg: chg detection work
<7>[39015.599196] msm_otg msm_otg: chg detection work
<7>[39015.599379] msm_otg msm_otg: chg_type = USB_DCP_CHARGER
<7>[39015.599410] b_idle work
<7>[39015.599440] b_sess_vld
<6>[39015.599471] USB fast charging is OFF.
<6>[39015.599715] msm_otg msm_otg: Avail curr from USB = 1500
<6>[39015.600173] msm_otg msm_otg: current: 0 -> 1500 (mA)
<6>[39015.600417] pm_power_set_property_usb: usb_target_ma 1500
<7>[39015.600631] msm_otg msm_otg: OTG runtime suspend
<6>[39015.602523] msm_otg msm_otg: USB in low power mode
<6>[39015.608047] chg_gone_irq_handler: chg_gone=0, usb_valid = 1
<6>[39015.608322] chg_gone_irq_handler: Chg gone fsm_state=3
<6>[39015.688132] unplug_check_worker: usb_now=700, usb_target = 1500
<6>[39015.689781] unplug_usbcheck_work: usb_vin : 5000000, max_voltage_mv=4360
<6>[39015.887980] unplug_check_worker: usb_now=850, usb_target = 1500
<6>[39016.692009] unplug_check_worker: usb_now=900, usb_target = 1500
<6>[39016.888071] unplug_check_worker: usb_now=1100, usb_target = 1500
<6>[39017.688285] unplug_check_worker: usb_now=1300, usb_target = 1500
<6>[39017.888071] unplug_check_worker: usb_now=1500, usb_target = 1500
[Nexus 4 Original Android Development] sga999:
ziddey, let me know if this has the information you need. I deleted lots from the beginning that was before I plugged the cable in. And there's probably more at the end that is uninteresting...maybe you just need the first few seconds.

EDIT: Just saw that you edited your post...nothing in mine about "PMIC: BSV set".
[Nexus 4 Original Android Development] ziddey:
No useful information there. Look at the example in my post. It starts with "PMIC: BSV set"

You can issue "cat /proc/kmsg" to follow dmesg live.
[Nexus 4 Original Android Development] nokiagye:
Hi I try a normal otg and the phone was on wireless charger but no luck why?
[Nexus 4 Original Android Development] Sillik:
Because it is the drive that needs to be powered (throught the Y cable), not the phone...
[Nexus 4 Original Android Development] bruce7373:
Hey, guys, I just want to confirm before buying that this power source will be adequate:

http://www.amazon.com/gp/product/B00DTSMIBO/ref=ox_sc_act_title_3?ie=UTF8&psc=1&smid=A255K1BW5J7OZ7

Or, if anyone has a better (or cheaper) solution, please let me know. Thx.
[Nexus 4 Original Android Development] baku2313:
I just made a "Y type " otg cable and it's working with ur patch.
[Nexus 4 Original Android Development] justibasa:
Franco has released r201.
[Nexus 4 Original Android Development] tarroyo:
This is the one I purchased, it's cheaper then your listing.

http://www.amazon.com/Micro-Cable-P...id=1389065575&sr=8-2&keywords=usb+otg+y+cable
[Nexus 4 Original Android Development] nigelhealy:
Error in your post. You quoted a Y-cable in response to a UPS battery pack question.