yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] sudokamikaze:
Update!

Changelog:

Disabled High brightness mode by default. You still can enable it in Kernel Adiutor(Screen tab)

LineageOS sync

Reverted to FauxSound. Now you can tune it in Kernel adiutor

Check links in OP post
[Nexus 4 Android Development] sudokamikaze:
Did it work on stock Nitrogen kernel?
[Nexus 4 Android Development] jon10110:
EDIT: I reflashed the stock OS and OTG did not work, I then reflashed your latest kernel with the same results.

That's a good question, I immediately flashed your kernel when I started using Nitrogen. I thought through reading that your kernel was the only one that had working OTG. I will reflash and give it a shot. Thanks for the input!
[Nexus 4 Android Development] sudokamikaze:
Probably OTG isn't working on Nitrogen

Some users reported about it above
[Nexus 4 Android Development] gc2712:
OTG doesn't work for me on Nitrogen. That's why I was hoping this kernel may support it.
[Nexus 4 Android Development] nickimsonikimsi:
OTG doesn't work for me on latest pixel dust
[Nexus 4 Android Development] sudokamikaze:
Probably OTG is broken, but i'm not sure and even I can't test
[Nexus 4 Android Development] Milan P.:
Does this work on the 8.1 nitrogen build?
[Nexus 4 Android Development] bujok:
I have a problem with four my Nexus 4 phones. I'm on LOS and when I flash Sinai Kernel it has to bootloop 4 to 7 times to show LOS logo. Does anybody has the same problem?

Wysłane z mojego LEX720 przy użyciu Tapatalka
[Nexus 4 Android Development] Applesan:
Me too.
[Nexus 4 Android Development] Islam Looca:
Is there any upcoming release that supports 8.1
[Nexus 4 Android Development] mrk2815:
wondering the same thing as i already have 8.1 nitrogen rom from nitin on my nexus 4.its running really well. now wondering if i can tweek it further either with a custom kernal or even more kernal adiutor tweeks.
[Nexus 4 Android Development] sudokamikaze:
Nougat, right?

Can you flash this build? It's previous build
[Nexus 4 Android Development] bujok:
Yes, nougat.

Wysłane z mojego LEX720 przy użyciu Tapatalka
[Nexus 4 Android Development] sudokamikaze:
At this moment there is support for AOSP based roms only.
[Nexus 4 Android Development] bujok:
Same result.

Wysłane z mojego LEX720 przy użyciu Tapatalka
[Nexus 4 Android Development] sudokamikaze:
Strange... Probably LOS problem, can you capture logs?(dmesg/logcat)
[Nexus 4 Android Development] jfsobreira:
Yes!:good:

I've been using it with Nitrogen 8.1 r1 without problems. Remember to install the Kernel Adiutor to adjust the brightness of the screen.
[Nexus 4 Android Development] Islam Looca:
That's exactly what happend with me on nitrogen 8.1, brightness was very very low, thanks for the info.
[Nexus 4 Android Development] bujok:
Flashed latest LOS build 20-12-2017 and the problem disappeared.

1. Flashed update via OTA

2. Wipe dalvik and cache

3. Flashed kernel

4. Flashed Magisk v14.

Wysłane z mojego LEX720 przy użyciu Tapatalka
[Nexus 4 Android Development] sudokamikaze:
Ah, you about that.. I've disabled High Brightness mode because of battery drain. Just re-enable it in Kernel Adiutor -> Screen Tab -> Scroll down -> LCD Backlight -> Toggle "Use exponetial backlight mode instead of linear mode"
[Nexus 4 Android Development] Milan P.:
Why would I need to install Kernel Auditor for brightness. Does the brightness toggle break after installing SINAI kernel?
[Nexus 4 Android Development] jfsobreira:
As [MENTION=7970097]sudokamikaze[/MENTION] said, he has disabled the High Brightness mode and when you install SINAI the screen become very dark, even in maximum bright. To have things back to normal just re-enable it using Kernel Adiutor and toggle "Use exponetial backlight mode instead of linear mode". Or use Xposed modules like Screen Filter or other kernel manager.
[Nexus 4 Android Development] sudokamikaze:
Kernel adiutor REQUIRED to tweak kernel. After some moment you will start facing battery drains/etc.

This kernel isn't out-of-the-box setuped and for advanced users who knows what they doing

If you wanted to flash and forgot - please use Quanta-Reborn
[Nexus 4 Android Development] sudokamikaze:
On Nougat roms it isn't very dark, probably on Oreo roms only
[Nexus 4 Android Development] moriel5:
Actually, for me it is, on CRDroid, however since I am used to darker screens, it is perfectly fine for me (as long as I am not directly under the sun).

I had no idea that exponential mode uses up so much battery on SINAI-N4, thanks for the information.

However, i am curious as to why this is so.

Is it related to the kernel, the ROM, the Android version, the Nexus 4's hardware, or could this be a general trait of exponential mode?
[Nexus 4 Android Development] sudokamikaze:
Same for me :)

About battery. High screen brightness costs more battery, lower brightness = lower battery drain.

Also, this feature(exponential mode) isn't in official kernels(like lineage's)
[Nexus 4 Android Development] moriel5:
I realize that this is uncalled-for, however for anyone interested, I have just concluded my research into network congestion algorithms (I have been doing this in my free time for the past few months, with practical information (for my use-case) trickling at a very slow pace).

While rather old, I can safely proclaim that this https://androidmodguide.blogspot.co.il/p/tcp-algorithms.html is still accurate, and also matches my own personal experimentation with the SINAI-N4 and the old HellsCore kernels on the Nexus 4.

I personally highly recommend setting "westwood" as the network congestion algorithm, since from my tests (and coroborrated by above page) I got roughly the same speeds (whether downloading, uploading, or streaming (though I do not do the last one very often from my phone) as my laptop and desktop only with "westwood" (though "cubic" did come relatively close).

At home we pay for 40Mbts, however our area only supports up to ~36Mbts, and utilizing "westwood" generally nets me ~28-32 Mbts, sometimes reaching ~35-36 Mbts, while on "cubic" I generally get ~12-20 Mbts, sometimes reaching ~22-24Mbts.

The fluctuations are based upon the different files I had downloaded from various servers.

Unfortunately, I had not tested latency, although I can definitely say that streaming was noticeably faster, even if not miraculously (I forget the results, however it was more than a few seconds on ~5-8 minute-long LinusTechTips clips on YouTube).
[Nexus 4 Android Development] xonedl:
Hi, I'm trying to install this kernel on my Nexus4 running latest Nitrogen 8.1 ROM.

But I keep getting "status 6" error when trying to install this kernel zip. Why is that?
[Nexus 4 Android Development] sudokamikaze:
Which version of recovery you running?

And post recovery_log after installing kernel please
[Nexus 4 Android Development] vedantdude:
Had this kernel wakelock 'suspend_backoff' last night which kept the phone from going to deep sleep. Can you give us the option to disable it from the KA app?
[Nexus 4 Android Development] sudokamikaze:
Can you use any program to record wakelogs time and show the report?
[Nexus 4 Android Development] KitsuneFoxy:
Hi there.

Does this work for Chroma Marshmellow? 6.1

Does it have Mpdecisions and Qualcomms hotplugging services?
[Nexus 4 Android Development] sudokamikaze:
Probably it doesn't

Kernel has AutoSMP/Dyn/Mako/Alucard
[Nexus 4 Android Development] vedantdude:
How? Logcat? Or will BetterBatteryStats screenshots work?
[Nexus 4 Android Development] sudokamikaze:
Try with "GSam Battery Monitor" app
[Nexus 4 Android Development] KitsuneFoxy:
I'm not the best when it comes to power modes.

Is there a version for Marshmellow?

I'd be really greatful
[Nexus 4 Android Development] sudokamikaze:
Hmm, I haven't tried to flash Nougat version over marshmallow...

Can you backup your /system and /boot

And try to flash latest AOSP or LOS version?
[Nexus 4 Android Development] KitsuneFoxy:
Sure, I just did a fresh format. I will try it.

Update

It installs okay and seems to run, but it has root issues Titanium backup says it cant acquire root, but some apps do work, but a root checker says its not rooted. and some other root needing apps dont work. It breaks busy box too, lots of other strange issues.
[Nexus 4 Android Development] sudokamikaze:
Thanks a lot for testing!

Which root method do you used?

I have one theory why root isn't working properly... But i'm not sure
[Nexus 4 Android Development] vedantdude:
Didn't have wakelock problem last night, I'll report if it happens again. Thanks.
[Nexus 4 Android Development] anawim:
is anyone using this kernel with Nitrogen 8.1?
[Nexus 4 Android Development] vedantdude:
I'm using with unlegacy 8.1
[Nexus 4 Android Development] anawim:
Thanks, can you confirm dt2w works? How did you tweak it?
[Nexus 4 Android Development] vedantdude:
Yes, just tried tweaking it with ka-mod reborn app, and it worked. I don't use it though, so I can't tell you about long term use, but it worked.
[Nexus 4 Android Development] anawim:
I also tried it later yesterday and was able to successfully activate dt2w, but since reboot the display brightness appeared so low compared to previous kernel.
[Nexus 4 Android Development] sudokamikaze:
Use "Apply on boot" option
[Nexus 4 Android Development] anawim:
I guess you're referency the kernel adiutor, but "Apply on boot" what exactly?
[Nexus 4 Android Development] MixLeNain:
In Kernel Adiutor go to screen tab > scroll to "LCD backlight" > enable "Use exponential backlight mode instead of linear mode"

And you will have a normal brightness :)
[Nexus 4 Android Development] KitsuneFoxy:
Hi yeah. I rooted using Nexus Root tools by wugfresh many years back. So the phone physically never lost root itself. Just that once the kernel was flashed, the programs i know that work when its is installed dont work. Like 90% of the programs lose root and say it cant acquire it.

Restore the original kernel and everything is fine again
[Nexus 4 Android Development] anawim:
Thanks, for confirmation I had already applied that together with other settings, and in general I'm still experiencing but without any scientific method and without investing time. Anyway I've noticed that rebooting to system from Recovery the settings are gone. Am I missing something, do I have to do something to make them "permanent"?
[Nexus 4 Android Development] kanishkad:
You need to flash SuperSu after flashing the kernel for root.
[Nexus 4 Android Development] Perlado:
Hello friends, I'm trying to activate otg recognition, but I can not find it, in the adiutor kernel options I do not see it either, the rom is line 14.1 .... I can give someone the route, thanks.
[Nexus 4 Android Development] KitsuneFoxy:
Super su is built into Chroma.
[Nexus 4 Android Development] kanishkad:
If I remember correctly, SuperSU zip patches the boot image, so even if it's included in Chroma, you need to flash SuperSU after flashing the kernel.
[Nexus 4 Android Development] KitsuneFoxy:
Hi there.

I actually tried that. It still had no effect.

The creator wondered if a nougat kernel would work on marshmallow. It installed, but gave a lot of SU issues, and made a few other things not work. This was on a brand new fresh wiped nexus 4.

I know marshmellow isnt all that supported anymore, but i wondered if he'd be able to compile it for marshmellow.
[Nexus 4 Android Development] vedantdude:
Had this wakelock, again. Hope that these screenshots are useful.
[Nexus 4 Android Development] natzy85:
can we have lineage OS run a full day with this kernel? Can someone please hint me to some good settings since I don't know what could break the phone.

thank you!
[Nexus 4 Android Development] natzy85:
I don't have this issue.
[Nexus 4 Android Development] vedantdude:
I don't have this issue right now,maybe bcoz i rebooted, but it reappears ... don't know what triggers it again
[Nexus 4 Android Development] KitsuneFoxy:
Hi sudo. I wanted to give a little update, ive been trying the links you suggested, but chroma absolutely does not work properly with any other Kernel than its base one, it will get wake locks, wont go into deep sleep, wifi breaks, doesn't save kernel settings etc. So it looks like i am going to moving from chroma to another marshmallow rom, maybe pure nexus or something. But yeah, atleast on my nexus 4, chroma will not work with other kernels. Do you have a suggestion for a very good marshmallow (preferably) and nougat rom? That you know works with your kernels?
[Nexus 4 Android Development] jelson392:
sinai-n4 is based off hellspawn kernel, which has been reported to not work with chroma. I personally use linage os with hellspawn kernal, works well for me.
[Nexus 4 Android Development] KitsuneFoxy:
I tried taurus and hellspawnd, which

Sudo recommend, but yes, neither of these work. I also do not know what lineage is. I tend to try aosp roms
[Nexus 4 Android Development] TundraLK520:
I used to use quanta with chroma, it worked great. But since quanta hasn't been updated, u can try sudo's quanta reborn. Since its based on quanta there shouldn't be any problem.

Btw why chroma its dead, i know it was a great rom but with so many security flaws coming out, it could be a risk using an outdates rom and kernel.
[Nexus 4 Android Development] natzy85:
I so miss Faux123 on KK. That kernel would last a day of battery. Too bad the hosting server is down...I also miss the black look of KitKat.....

OK so I did a test on factory image on latest 5.1.1 and this kernel and it really is good on battery VS what I have witnessed with LOS.
[Nexus 4 Android Development] KitsuneFoxy:
Well with chroma, i get abot 5 or 6 hrs sot, and if i leave my phone it lasts about two days. Chroma is a rom i know thats always worked and never had issues, but you are right in that it's old, but so is the nexus 4, i think some Roms can be much to overbearing for it. Is there perhaps Nougat thats similar to chroma? I may move over, but ive always liked marshmallow, its a shame i dont know how to integrate new security updates to it.
[Nexus 4 Android Development] natzy85:
that sounds amazing. Will have to try that if it's still available.
[Nexus 4 Android Development] TundraLK520:
If its only battery life and stability u r after then u can choose any UA/PureNexus nougat rom just flash quanta(original version). But if its a feature rich rom that u want then nitrogen is probably the best, u can still flash quanta on it. My standby time used to be like more than a day on it. Btw UA is sort of stock android so the basic no frills attached, then PureNexus and then finally Nitrogen.

Ps: Forgot to add quanta hasn't been updated in a while so kernel patch will be outdated and leave a security hole.
[Nexus 4 Android Development] longineco:
Seems like no other custom kernel works on unlegacy 8.1 for Nexus 4. I got boot loop on Quanta-Reborn. Thanks for the hard work.:good: My beloved N4 reborn again.:laugh:

ie: There would be nice if CPU/GPU overclocking features is built in.
[Nexus 4 Android Development] TundraLK520:
Quanta Reborn is not for oreo, it doesn't mention it in op. I posted for info about its future but to no avail. U might have to use sinai kernel.
[Nexus 4 Android Development] trupetiago:
Issue with LineageOS 14.1 (2018-01-25) mako and something else

I've been using SINAI for a "long time" with NitrogenOS, Xposed and Magisk with no issues.

I decided to install LineageOS 14.1 (seems to be very smooth, responsive and quick on mako)(last build) and i'm getting bootloops when installing Xposed... I need it (LineageOS and SINAI) with Magisk and Xposed. It seems to be conflicting with Xposed (correct me) [*LOS14.1 + Magisk + SINAI - no issue].

If i use just Magisk and SINAI it works pretty well, and, with some tweaks i got 5% battery/h with screen on when the mobile is idle, and arround 15%-23%/h during usage. When installing Xposed i got bootloops. LineageOS with stock kernel do not conflict with Magisk or Xposed (correct me).

For now, i'm using LOS14.1, Xposed, Magisk and QuantaReborn (10% battery/h during idle with screen on), SINAI seems to be the best (during usage and idle).

I tried many combinations, research a lot and flashed it tons of time with no luck... How can i do in order to get LOS14.1 with Xposed, Magisk and SINAI workng on the mako? Thanks in advanced.
[Nexus 4 Android Development] sudokamikaze:
What? Quanta-reborn hasn't support for Oreo and isn't planned to work on it.
[Nexus 4 Android Development] sudokamikaze:
Strange... Please, capture logcat when it's bootlooping
[Nexus 4 Android Development] trupetiago:
For the first time i captured the logcat the device started imediately... then, since i had wiped davilk/cache it would take its time to reach the system... so i canceled logcat because i was curious to read its content (hoping that it would boot normally again). Everything worked perfectly (SINAI, Magisk and Xposed).

Try other times (3x) i tried to capture logcat during bootloop the file's content was 0 (zero). I leave it bootlooping for around 7 times... x 3 attempts.

At least i have a partial catlog after it passed throught the stuck-point. (see attached).
[Nexus 4 Android Development] longineco:
I got GPU overclock, but not on CPU. Any idea folks? Thanks in advance.
[Nexus 4 Android Development] trupetiago:
I erased all the device (recovery also)... Firsly i Installed the Last LineageOS with last SINAI and got the bootloop again... thats intermittent... the success ratio booting is 1/15, usually it reboot once when success (2 Google logo on 1 Power push)... when not success it keeps bootlooping all day long...

then... installed a fresh TWRP 3.2.1, LineageOS 14.1 2018-01-25, Magisk 15.3, Xposed (Magisk) [checking MD5 sha256 and stuffs]... Working 100% without bootloops.

I also tried SuperSU instead, but keep bootlooping... i think is some incompatibility behind LineageOS and SINAI. (Nitrogen0 + SINAI + Magisk + Xposed worked pretty well).

Do you guys suggest me a quick-fix for now...? Maybe using another build of LOS or SINAI...

Question: How do i capture logcat during bootloop? adb logcat > file.txt only fills after passing bootscreen.

And thanks for your effort sudokamikaze... (the size of SINAI N4 on github blew my mind).
[Nexus 4 Android Development] sudokamikaze:
New update! Check links in OP post!

Changelog:

Sync with LineageOS

Firmware stack updates

Builded with fresh build of QUVNTNM-TC

Maple I/O Speedup
[Nexus 4 Android Development] sudokamikaze:
Probably something broken with LOS and SINAI, can you try new build?
[Nexus 4 Android Development] xenyz:
In my experience, overclocking the N4 is an especially bad idea: the extra heat makes thermal throttling kick in very quickly and the minimal performance gains when you can get them cause extremely poor battery life. IMHO it's not worth it, and it may even be worth considering underclocking instead depending on what you use it for.

Ironically you may see better (more consistent) performance with underclocking because of less thermal throttling.
[Nexus 4 Android Development] sudokamikaze:
No overclocking for cpu available here. And it not planned to be here
[Nexus 4 Android Development] __init__:
Hi, I'm running the latest Nitrogen OS 8.1. I've noticed that for the first few minutes after every boot, the phone is extremely slow, then returns to normal speed. It's a bit minor, but how can I fix this?
[Nexus 4 Android Development] sudokamikaze:
UPDATED!

Changelog:

GCC 7

SDCARDFS updates. Syncthing users will notice fixed problem with errored folders

CVE Fixes from LOS

And now, I'll provide separate builds for Unlegacy roms. Stock versions will bootloop on it
[Nexus 4 Android Development] sudokamikaze:
I have same issue on all my devices, I think it's normal
[Nexus 4 Android Development] sudokamikaze:
deleted
[Nexus 4 Android Development] anawim:
The new separate version is strictly for Unlegacy or does it work on Nitrogen too?
[Nexus 4 Android Development] sudokamikaze:
Check OP post

If you running non-unlegacy rom, just flash usual AOSP build
[Nexus 4 Android Development] anawim:
Could I ask you to suggest me settings to fix a problem sometimes occurr (especially during recharge just after bootup) when the N4 gets really hot and display blanks out?
[Nexus 4 Android Development] sudokamikaze:
Can you attach your phone to your workstation and capture logs?

Logcat and dmesg
[Nexus 4 Android Development] anawim:
No need to, it's a HW problem due to LCD connector faulting because of high temperature, just trying to mitigate with CPU tuning
[Nexus 4 Android Development] faabricjs:
Plz help, i used fake nexus rom 7.1.1 and when flash this recovery, the display goes black :(

Now im using quantav21 and work fine fine but i want sinai kernel. Somebody can help me?
[Nexus 4 Android Development] Dv2y:
I'm also having this issue. Phone boot-loops a lot when using SINAI with LOS and Xposed (both normal and system-less versions). :(
[Nexus 4 Android Development] trupetiago:
I decided to use Unlegacy AOSP 7.1.2 along with SINAI. Despite of that issue... LOS is not compatible with certain modds and they also do not support Xposed (as I know). So... LOS privacy guard was replaced by XPrivacyLua... I find LOS lighter and more battery saver than AOSP, but, AOSP is a best solution for my needs... To finish: Mako cannot "live" without a custom kernel.
[Nexus 4 Android Development] vedantdude:
Works well for me with LOS + root
[Nexus 4 Android Development] trupetiago:
For me also... But... If you add Xposed to the "recipe" it boot loops... (Doesn't matter the order of installation).

That's interesting because you can skip bootloop in a ratio of 1/100 manual resets pushing power button for a while and get into LOS with SINAI and Xposed working. So... It works someway...
[Nexus 4 Android Development] moriel5:
I am using CRDroid, which is based upon LOS, with root and Xposed, and I do not have any bootloops as a result.
[Nexus 4 Android Development] Dv2y:
Which are the mods you use with Xposed?

Edit: Huh, nevermind. Tried it without any mods installed, problem still occurs.
[Nexus 4 Android Development] trupetiago:
Now I'm using tons of "high invasive" modules such as Deepbuffer, Gravitybox and so on (since I'm on AOSP). But for LOS, it bootloops even without modules.

Edit: Deepbuffer is a Magisk module... Xposed: I'm using GravityBox, BootManager, Greenify, Xposed Edge and XPrivacyLua.
[Nexus 4 Android Development] sudokamikaze:
Hi guys, here's new update!

Changelog:

Kernel compiled with latest GCC 7.3!

SDCARDFS updates

F2FS from Unlegacy-Android hammerhead's kernel

Overall fixes

UPD:

Re-download and re-flash kernel on your mobile phone! Kernel will be updated properly
[Nexus 4 Android Development] trupetiago:
Hi sudokamikaze. I'm struggling for hours trying to get SINAI working with LineageOS again. Seems that the last update (SINAI-N4-mako-02-04-2018_LOS.zip) was done minutes ago... and im the first to test.

During tests with SINAI-N4_mako-LOS_01-04-2018.zip i got the follow results:

Last Lineage + SINAI = no problem

Last Lineage + Last Magisk = no problem

Last Lineage + SINAI + Magisk = bootloop

Last Lineage + LOS Su addon = no problem

Last Lineage + LOS Su addon + SINAI = bootloop

BUT, for the last SINAI (SINAI-N4-mako-02-04-2018_LOS.zip) e got the follow result:

Last Lineage + SINAI + Last Magisk = Success, but the so-called "color problems" (doesn't happen on lock screen).

I suspect that you uploaded the AOSP and labeled _LOS. Is that true?

* The test with 01-04 was done also with Magisk 12, 14, 15.3 and 16.

Thanks for keeping developing.
[Nexus 4 Android Development] sudokamikaze:
Oh, probably happened because of my Jenkins

Sorry for the inconvenience. Still need to improve my Jenkins scripts

I'll rebuild it in few minutes and re-upload links

About Lineage, what's last lineage? You mean 15.x ?

UPD:

Link is has already updated in OP post

https://www.androidfilehost.com/?fid=890129502657595765

Also, could you install by this way: LineageOS > Magisk > Kernel and attach /tmp/recovery.log here? Thanks

And If you have time to capture logs during boot process - please capture them, I will be grateful

Just connect your phone into your PC and in boot process execute this command on your PC:

If your PC running windows:

and copy output of command