yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] bruce7373:
That's OK guys. I already had my eye on that cable and I found a battery pack on eBay that should do the trick. Thx.
[Nexus 4 Original Android Development] thunder2k:
Random Reboots

Hi all,

is anyone experiencing random reboots with this modified kernel?

I'm using latest version r200-cm compatible, and I'm always on last CM11 Nightly.

Here is a link to a folder on my gdrive, where you can find a new kmsg file automatically uploaded at every reboot. In this way you can compare various kmsg files and try to help me.

This is bothering me so much, so please if you wanna solve this puzzle, give a shoot here:

KMSG FILES

As additional information, I can say that:

It happens on fk and cm kernel as well

I have both fku app and trickster mod app

I tried uninstalling these two apps one per time, but with no luck

Please help me before I throw my N4 out of the window :D
[Nexus 4 Original Android Development] boeder9:
Any MAJOR instabilities with CM apart from CPU governer issue? Random reboots? bootloops?

I'm assuming the -cm.zip will work on 10.2 running android 4.3.1?
[Nexus 4 Original Android Development] keyra74:
no because it's 4.4...
[Nexus 4 Original Android Development] thunder2k:
Posting this question immediatly after my post titled "Random reboots" is pretty funny :)

By the way, anyone had a little time to give a look at my logs? The drive folder is becoming bigger and bigger :(
[Nexus 4 Original Android Development] anandbibek:
I'm having a look. Not a pro though. Hold on a second

Went through a few. Most of the time kernel panics. Surprisingly I'm on CM11 nightly too and never any random reboot.

Try franco gombak by mnajem modified kernel?
[Nexus 4 Original Android Development] thunder2k:
Thanks for your time man!

What is this gombak modified kernel?

Besides, I have a thought that is hammering my mind: could it be an hw problem? All of those hw_reset are scaring me so much, considering that they are happening also with cm kernel :(

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] boeder9:
I know r200 is 4.4 but are you positively sure it wont work on 4.3.1? So its all the way back to r193? damn

I read your post, was hoping it's an isolated incident rather than a general occurence, hope you get it sorted ;)
[Nexus 4 Original Android Development] thunder2k:
I got the meaning, it was just a joke ;) Besides, we're working on it, so don't be shy, the kmsg folder is open to everyone :)
[Nexus 4 Original Android Development] Gene Poole:
Thanks to the OP. I'm on a nexus 5, but your instructions about patching the framework-res, fstab, and init.hammerhead.rc were invaluable. I've got OTG on my N5 now without having to use third-party apps (like stick mount).

I also recompiled SystemUI.apk and modified the file:

frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java

setMediaStorageNotification(
com.android.internal.R.string.ext_media_nomedia_notification_title,
com.android.internal.R.string.ext_media_nomedia_notification_message,
com.android.internal.R.drawable.stat_notify_sdcard_usb,
true, true, null);

This allows you to swipe away the annoying message in the status dropdown about removing the USB device. As stock, it is a permanent staus notification and you have to reboot to make it go away.
[Nexus 4 Original Android Development] Hyflex:
I can't work it out in my head if this is possible...

I have a Meenova Mini MicroSD Card Reader (http://www.meenova.com/) and I also have a TechNet 15000mAh USB External Battery Pack (http://www.amazon.co.uk/gp/product/B00FAU7ZB2)

Is it possible to use them in conjunction with a cable (not sure what one) to get it working?

I could use this right:
[Nexus 4 Original Android Development] giebeka:
Right.
[Nexus 4 Original Android Development] boeder9:
So say I install this ziddey patch based on r193, it'll install the Franco Kernel r193 PLUS the ziddey patch, correct??
[Nexus 4 Original Android Development] Black Forest:
Yes :D
[Nexus 4 Original Android Development] thunder2k:
So guys, no hints for me? This stuff is really driving me mad!

I think that [MENTION=584916]ziddey[/MENTION] is my only hope!

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] keyra74:
[MENTION=584916]ziddey[/MENTION] are you still following this project or should we wait for someone else to take over? or is it simple to add the otg module and make it ourself?
[Nexus 4 Original Android Development] LLegoLLaS:
I cound not read all the 141 pages but isn't a solution to have voltage to data pins?like making a bridge between ground and data 1 and 5v to data 2
[Nexus 4 Original Android Development] Hyflex:
Why are you joining/linking GND with D+... wouldn't this just stop it working all together?
[Nexus 4 Original Android Development] m11kkaa:
The SoC should be able to power OTG devices itself.

in theory u just need to enable this regulator: https://github.com/CyanogenMod/andr...arch/arm/mach-msm/board-8064-regulator.c#L554

But maybe you need some changes to charging/OTG code, too
[Nexus 4 Original Android Development] bruce7373:
Finally got myself the cable and a battery pack and made my first OTG Nandroid. Sweet. I didn't realize, though, that power could be supplied from my PC. What about plugging directly into the power adapter plug that came with the phone? Is that recommended?
[Nexus 4 Original Android Development] prateek80:
Can anyone make it happen..??
[Nexus 4 Original Android Development] m11kkaa:
I don't have a Nexus4 but maybe a N4 dev will try it.
[Nexus 4 Original Android Development] rohit297:
No patch for franco r201???
[Nexus 4 Original Android Development] HighRidas:
wuld u mind sharing the .apks i wuld like to have the mount option in settings on my n5
[Nexus 4 Original Android Development] Gene Poole:
Are you running factory or an AOSP build? I'm not sure (in fact I could almost guarantee it wouldn't) just drop in. Factory apk's are deodexed and signed with google's release keys.
[Nexus 4 Original Android Development] HighRidas:
at the moment im using a de-odexed factory but i have a aosp version building now
[Nexus 4 Original Android Development] Sillik:
I +1 on this! :)

I get audio stuttering in Spotify when the screen is off and I read in the kernel's thread that it is fixed with r201.

Thanks in advance!
[Nexus 4 Original Android Development] rafelkrok:
excuse me, but can i use this patch on the stock kernel with externally powered OTG?

I have not understood well the description in the first post.

Thank you and sorry for my bad english.
[Nexus 4 Original Android Development] rohit297:
I think the developer is not working anymore on the project, someone need to continue his project otherwise people who want otg will have to remain on old versions of the kernel, right now i am on mahdi rom with hells core kernel which has otg support with a patch, but i luv franco kernel, hope the developer come back and listen to our req
[Nexus 4 Original Android Development] justvarshney:
I can help if ziddey permits me. I already have otg patch on other kernels
[Nexus 4 Original Android Development] Sillik:
Nothing in his post history seems to indicate that he retired: his last post is actually the release of modded FC r200.

But it was 3 weeks ago and he hasn't posted in between so maybe he lacks the disponibility for the moment.

Of course if someone is willing to work on it, the link to his github is in the second post... :good:
[Nexus 4 Original Android Development] justvarshney:
Let me share it by tomorrow.
[Nexus 4 Original Android Development] UnitedOceanic:
and they are working fine. thanks again :good: both of you! [MENTION=584916]ziddey[/MENTION]
[Nexus 4 Original Android Development] justvarshney:
Please download the Franco r203 Kernel with USB OTG patch @ http://d-h.st/vgM

Do let me know how it works.

Find the attached Screenshots from My device.
[Nexus 4 Original Android Development] keyra74:
thx but... no cm version?
[Nexus 4 Original Android Development] justvarshney:
It should work fine on CM version. I tried it and works on my device.

though I am facing some random screen flickering but that could be my setup issue.

You may try it and let me know if you also face such issue.
[Nexus 4 Original Android Development] keyra74:
as i thought it doesn't work like it should due to CAF

colors are ****ed up and sometimes screen flickers
[Nexus 4 Original Android Development] blsrbl:
Thanks! It worked.

But is it just this version or from beginning externals doesn't work ?
[Nexus 4 Original Android Development] justvarshney:
Would you like to try this ? http://d-h.st/w9J

I have added some commits related to CAF.

Please let me know the results :)

---------- Post added at 11:24 AM ---------- Previous post was at 11:23 AM ----------

I didn't get your question. what external doesn't work ?
[Nexus 4 Original Android Development] blsrbl:
External hard drive (1 TB ) doesn't work. A 8 GB flash worked.

Sent from my Nexus 4
[Nexus 4 Original Android Development] justvarshney:
is your external HDD NTFS formatted ? there were some discussion related to ntfs format. Check out earlier messages on this thread (one is here : http://xdaforums.com/showpost.php?p=46263548&postcount=1111)
[Nexus 4 Original Android Development] blsrbl:
No it's FTA.

Sent from my Nexus 4
[Nexus 4 Original Android Development] keyra74:
thx it works now :)
[Nexus 4 Original Android Development] justvarshney:
Awesome.
[Nexus 4 Original Android Development] Sillik:
I tested and it works just fine on stock rom!

I'll test if my stuttering problem is gone later today...

Thanks!

Edit: it works! No more audio stuttering when the screen is off (if anyone is interested)
[Nexus 4 Original Android Development] :
There's a weird behavior in this version r2013 with OTG. If I reboot my phone, the default governor is set to performance and under governor contol, there are no exposed parameters, but a text that says "no file in such directory". This can only be solved by setting the governor to interactive on boot, then the hotplug parameters come back.
[Nexus 4 Original Android Development] hozjacz:
Hi guys, maybe I miss something, but I have ziddey@franco kernel mod builded on Franco #200. Now Franco have #203 and I can't find new versions of ziddey mod of this kernel, which is ready for CM11?

Is somewhere to download? Please help me. THX
[Nexus 4 Original Android Development] nigelhealy:
If you click on the OP and then go to the site of ziddey

http://d-h.st/users/ziddey

You see 203 is there...so what is happening is Ziddey is not updating the OP to reflect current most recent version.
[Nexus 4 Original Android Development] hozjacz:
Thank you, its perfect answer for me.

But #203 for CM11 is not available? For CM is only #200? Right?
[Nexus 4 Original Android Development] bombadier:
I do not use franco but have noticed that justvarshney is building CM franco based kernels with OTG support

Get it here
[Nexus 4 Original Android Development] ronasimi:
Sorry to dredge up an old post but auto brightness is broken in my kernel if I use CONFIG_INPUT_FF_MEMLESS=y and CONFIG_JOYSTICK_XPAD=y

If I set them as modules auto brightness is fine. Those are the only changes I've made. Just FYI. Also, is there a fix for otg seeing all storage devices as unformatted? Logcat shows nofs repeatedly.
[Nexus 4 Original Android Development] Ssyyddii:
The only ziddey modified kernel that works for me is the faux kernel. Both OTG hellscore and all versions of Franco cause reboot issues.

REQUESTING ADD OTG to the Faux modified kernel for cm 11. PLEASE please
[Nexus 4 Original Android Development] justvarshney:
Have you tried any kernel patch from this OP : http://xdaforums.com/nexus-4/development/kernel-patch-hells-core-kernel-otg-t2586524
[Nexus 4 Original Android Development] Ssyyddii:
Actually I'm running hells-core got from that page. B43 version with otg. Reboots when I'm taking fotos. Drives me nuts.
[Nexus 4 Original Android Development] dEris:
What are some things I should avoid doing or always doing to minimize the risk of hard-bricking my N4? Heard using OTG on the N4 can hard-brick the device. Is this true?
[Nexus 4 Original Android Development] Rohit02:
Rebooting while taking photos is a Google Derp.. Many devs are working on it.

No, Not at all. I have never read any one with that complaint of bricking device while using otg.

There are RARE chances so just relax. :good:
[Nexus 4 Original Android Development] dEris:
I just ordered a OTG Y cable from Amazon and I have a couple questions.

1) Will I be able to create a nandroid backup directly to the thumb drive while in TWRP?

2) What about restoring from a nandroid that is on the usb thumb drive?
[Nexus 4 Original Android Development] farmerbb:
Yes, you will be able to do all of that but you need to inject the kernel into your TWRP image. You can either follow the instructions in the OP to do it (under "Recovery"), or you can use MultiROM's version of TWRP that has ziddey's kernel already built-in.
[Nexus 4 Original Android Development] tnp9008:
Xbox 360 Controller Issues

[MENTION=584916]ziddey[/MENTION]

I'm trying to get my Xbox controller to work in my N4. I'm on OmniROM 4.4.2 and using [MENTION=1175139]justvarshney[/MENTION] 's USB OTG patched Hellscore kernel. From what I can tell the phone isn't recognizing the gamepad; I've tried it with SuperN64 N64 Emulator which has gamepad support and it dosn't work. When I try to run the insmod commands to setup the drivers I get error messages(see screenshots below); the drivers were already in system/lib/modules and I didn't try to replace them with any other ones.

Any help is appreciated; let me know if you need more information.
[Nexus 4 Original Android Development] giebeka:
My gamepad works in for example USB Joystick Center.

Android has not recognize my xbox controller, so its not work with San Andreas or other games with gamepad support.
[Nexus 4 Original Android Development] Sick1:
Thank you ziddey for providing the guide too!! Im on hammerhead, and got this working on that too with your instruction + few other people whom i thank already :)

Thank you very much!

peace
[Nexus 4 Original Android Development] SpasilliumNexus:
If anyone wants to be able to swipe away "USB Device Removed" from the notification dropdown on factory 4.4.2:

-Decompile SystemUI.apk with APKTool or similar

-Go into \smali\com\android\systemui\usb

-Open StorageNotification.smali

-With Notepad++ or such, search for ".line 232" and then go up a little until you see "const/4 v5, 0x0" (it may be on line 458)

-Change "const/4 v5, 0x0" to "const/4 v5, 0x1"

-Save, recompile, push back to priv-app, and reboot

Now when you remove your OTG storage, you are able to swipe away the notification dropdown instead of rebooting to get rid of it.

Thanks to [MENTION=2748238]Gene Poole[/MENTION] for showing how to do it in Android's source code.
[Nexus 4 Original Android Development] danielcbit:
No USB mouse, but Flashdrive OK

Hi Everybody!

I have a Nexus 4 with Kitkat 4.4.2 and a shattered screen.

Installed 4.4.x: 2013.12.06 1445ET: [aosp r7] and loaded the modules ff-memless.ko , hid-dr.ko and hid-logitech.ko but still no go.

Tried a logitech wireless mouse and a cable mouse.

Did I miss something?

The kernel is 3.4.0-perf-g7c6ac0c ziddey@ijib #7

Build Number K0T94H

Thanks!
[Nexus 4 Original Android Development] danielcbit:
Anybody?
[Nexus 4 Original Android Development] justvarshney:
Are you using a Y shape cable with external power ?

try a different kernel patch.
[Nexus 4 Original Android Development] danielcbit:
Yes. I'm using the recommended cable with a external battery.

USB Flash drives do work but I can't get the mouse to work. Even after loading the modules I listed.

I have tried the ziddey-otg.fk-r199.zip patch also, but it also didn't work.

Thanks!
[Nexus 4 Original Android Development] danielcbit:
Got it!

I managed to get it working with Hells-Core Kernel from http://xdaforums.com/nexus-4/development/kernel-patch-hells-core-kernel-otg-t2586524

Now, mouse and everything else is working! I'm using 4.4.2 official image.
[Nexus 4 Original Android Development] klvnhng:
Just bought an otg y cable and external battery pack from aliexpress. Can't wait to try this out!
[Nexus 4 Original Android Development] feeq13:
Guys do ur phone get hot with this?
[Nexus 4 Original Android Development] DebianUser:
Which version do I flash for this rom?

http://xdaforums.com/nexus-4/development/rom-nexus-5-experience-factory-image-t2537932
[Nexus 4 Original Android Development] dEris:
Aosp

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

[DEVICE : N⁴] [ROM : OmniROM] [KERNEL : HELLSCORE-OTG]

[LAUNCHER : NOVA] [CARRIER : T-MOBILE]

[SCREENSHOT : MAR.07.2014]

​
[Nexus 4 Original Android Development] justvarshney:
Non CM version. Try hells core b43.
[Nexus 4 Original Android Development] DebianUser:
Thanks.
[Nexus 4 Original Android Development] farmerbb:
franco.Kernel r204 was just released, hoping we'll see a USB OTG version of it soon.
[Nexus 4 Original Android Development] klvnhng:
Finally got my y cable, and OTG in system is working very well. I can connect usb drives and peripherals directly using my external battery pack as a power source.

However, OTG support in TWRP 2.7.0.0 doesn't seem to be working. I flashed recoverymod.zip, rebooted, but TWRP tells me my device is not supported for OTG
[Nexus 4 Original Android Development] SpasilliumNexus:
Something in 2.7 made the recoverymod addon no longer work. For now, use TWRP 2.6.3.X if you want OTG support in it.
[Nexus 4 Original Android Development] dEris:
OTG in 2.7 TWRP (MultiROM) works fine for me.

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

[DEVICE : N⁴] [ROM : crDROID] [KERNEL : STOCK-OTG]

[LAUNCHER : NOVA] [CARRIER : T-MOBILE]

[SCREENSHOT : MAR.25.2014]

​
[Nexus 4 Original Android Development] nigelhealy:
Not yet.

http://d-h.st/users/ziddey
[Nexus 4 Original Android Development] justvarshney:
Test version of Franco r204 is available @ http://d-h.st/rW1

Please let me know if you face any issue.
[Nexus 4 Original Android Development] keyra74:
any chance for the same with CM :)
[Nexus 4 Original Android Development] justvarshney:
Seems like franco doesn't support cm rom. I will still try.

I don't have cm rom to test. Will you test it for me?
[Nexus 4 Original Android Development] keyra74:
yup, i can test

there's a franco cm kernel already but without otg : http://xdaforums.com/nexus-4/development/kernel-franco-gombak-francos-kernel-t2593144
[Nexus 4 Original Android Development] justvarshney:
I have sent you a personal message.
[Nexus 4 Original Android Development] keyra74:
dunno if my pm reply works but i can confirm your cm version is ok

32 gb usb key working right now
[Nexus 4 Original Android Development] dwg_priest:
I have stock rooted rom.

Which file do I flash?
[Nexus 4 Original Android Development] arktay:
Stock android 4.4.2 with franco kernel r204. What i have to do?
[Nexus 4 Original Android Development] basily:
Quick question to confirm my suspicions... if I'm on stock everything, but with this mod, will updates from Google fail? There are new versions of several stock apps, but they won't update and the play store reports the to be incompatible with my phone...
[Nexus 4 Original Android Development] dEris:
App updates from Play Store will not fail.

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

[DEVICE : N⁴] [ROM : crDROID] [KERNEL : STOCK-OTG]

[LAUNCHER : NOVA] [CARRIER : T-MOBILE]

[SCREENSHOT : MAR.25.2014]

​
[Nexus 4 Original Android Development] Masrepus:
When i am on stock 4.4.2 do i use the aosp version or which one?

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

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

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

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Nexus 4 Original Android Development] Rohit02:
YES. AOSP..
[Nexus 4 Original Android Development] Masrepus:
Thanks

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

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

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

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Nexus 4 Original Android Development] arktay:
My nexus 4 is with stock android 4.4.2 and 3.4.88-franco.Kernel-nightly #206

What zip i have to flash?
[Nexus 4 Original Android Development] justvarshney:
Non CM version : download from here : http://d-h.st/H44
[Nexus 4 Original Android Development] arktay:
Thanks it works! When the kernel will be updated where i have to flash another zip? If yes where will i can find it?
[Nexus 4 Original Android Development] justvarshney:
Pls follow the thread :- http://xdaforums.com/showthread.php?t=2586524
[Nexus 4 Original Android Development] IndDoc:
I was able to get my 2 TB NTFS HDD to mount on my N4 with liquid smooth and hellscore patched kernel, and stick mount app with necessary files. Now, 2 days later, whenever I attach my HDD, it immediately disconnects and says 'media removed. Please insert media' in the notification. Can anyone tell me what's happening? I'm going nuts.

As I see it, the problem possible lies with the HDD, somehow. In the process of mounting, it probably corrupted some files. It plays and attaches fine on a laptop though. So, I don't know what's wrong.

Please help!
[Nexus 4 Original Android Development] justvarshney:
Did you unmount it properly before removing the HDD? Have you tried after restarting the phone?
[Nexus 4 Original Android Development] IndDoc:
Yep, I did both. I even clean flashed the rom, kernel, and stick mount with necessary files to make sure. Same problem. :(
[Nexus 4 Original Android Development] kkh5:
Can't Get NTFS Working

A couple of months ago, I was using this mod with AOSB (CM based) on my nexus 4. It was working fine and everything but then when re flashed my phone and switched to AOSPA a few days ago, I could not get this app to work with my 2 partition NTFS 320 GB Hard Drive. I have tried disabling charging like mentioned in the first post, I have installed stickmount and downloaded and extracted the NTFS zip driver to /sdcard/ and even switched SELinux to permissive but nothing is working. What ends up happening is that stickmount will mount what it thinks is one partition with no files in it.

This hard drive works perfectly on my nexus 7 (2012) using stickmount, recognizing both partitions with r/rw capability. I cannot reformat the drive since I also use it for Windows 8 To Go.

Any suggestions on how I could resolve this problem?

Thanks,

kkh5
[Nexus 4 Original Android Development] nigelhealy:
I'm not optimistic I can help but here's a few ideas:

You are rooted right?

A corrupted NTFS partition won't mount so reliably, plug into a Windoze machine and then do a full chkdsk.

Why are you copyin ntfs-3g file to /sdcard/ I thought Stickmount was doing itself now? What is actually happening is that ntfs-3g file is being copied to the $PATH, you can do it manually yourself, as root do command mount -o remount,rw /system , then echo $PATH confirm it has something like /system/xbin there and copy ntfs-3g to /system/xbin, use a root terminal app. It has to be executable so chmod 755 /system/xbin/ntfs-3g. Stickmount is meant to do all this for you... but it might be blocked by your ROM?

NTFS is buggy on "Linux" due to it needing to be really perfect error-free, suggest exFAT.

Try a more powerful USB charge to feed the Y-cable, this could just be your phone is taking more power now by coincidence with the new ROM so the drive isn't correctly spinning up and flagging as NTFS error, I get that on my Linux Raspberry Pi if I plug into 2 self-powered USB drives, NTFS becomes really tempermental..

Note that Stickmount even with its ntfs-3g still needs NTFS support in the Kernel.
[Nexus 4 Original Android Development] dEris:
You just made my night.

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

[ DEVICE : N⁴ ]

[ ROM : CrDROID ]

[ KERNEL : FK207CM-OTG ]

[ LAUNCHER : NOVA PRIME ]

[ CARRIER : T-MOBILE ]

[ CASE : NAKED/NONE ]

[ SCREENSHOT : MAY.18.2014 ]