yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] zaclimon:
Simple, Powerful, Stable. Here's Quanta for the Nexus 4 (Mako)

Disclaimer: Your warranty is now void, use at your own risk. Don't blame me for anything because YOU decided to make these changes.

Note: This kernel is made for Android 5.1 (Lollipop) up to Android 7.1. (Nougat) For earlier versions, please refer to Sabermod franco.Kernel on post 3.

Features:

- Based upon the official franco.Kernel source

- Compiled with the latest Cortex-A15 optimized UberTC 5.x with some kernel based optimizations + Graphite

- Linux 3.4.110 (Linux 3.4.0 for V9 onwards)

- AOSP/CM compatible

- F2FS compatible

- DT2W support (From Stratosk)

- Faux Sound support

- Exponential brightness driver from Statosk

- Optimized Ondemand governor from Stratosk (V15+)

- USB-OTG Support

- MultiRom Support

- Tweaked performances profiles from franco.Kernel

- Support for android-keyboard-gadget (You can use your device as a keyboard/mouse for your PC)

- Support for Xpad
​

Download:

AOSP: AOSP Download Folder

CM: CM Download Folder

Mirror​

Installation:

1. Install using CWM/TWRP

2. Enjoy​

Sources:

Kernel Source (quanta-7.x)

Anykernel Source (mako-7.x)​

​
[Nexus 4 Android Development] zaclimon:
Quanta Tweaks

All your tweaks are now regrouped into the app I've developped. No more hassle in tweaking 10 files/5 different apps togheter. It also has a franco.Kernel shortcut so your tweaking experience won't be stopped when trying to reach it.

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

It includes various tools and a beautiful user interface to enhance your experience even further!

Request for new features

Listen, I want to keep this kernel as minimalistic as possible. For this reason, I won't add any GPU OC, CPU OC, S2W,S2S, etc...

DON'T EVEN BOTHER TO ASK!!

Thank you. :)

Sabermod franco.Kernel information (For 4.4 up to 5.0, Deprecated)

-

Note: r211 to r213.2 are Kitkat (4.4) builds, r215 to r216.2 are Lollipop (5.0) builds.

- Compiled with SaberMod GCC 4.9.3 with Ofast optmisations + Graphite + other optimisations

- Linux 3.4.106

- AOSP/CM compatible

- F2FS compatible

- DT2W support (From Mckael)

- Faux sound support

- Linux mainline random driver (4.4 Builds)

- Exponential brightness driver from Statosk

- USB-OTG Support

- MultiRom Support

- 192 Mhz CPU step available

Download:

AOSP: AOSP Download Folder

CM: CM Download Folder

Installation:

1. Install using CWM/TWRP

2. Profit

Sources:

Kernel Source (sm-5.0 and sm-5.0-cm)

Anykernel Source (mako-5.0)

Changelog:

r216.2 (22/02/15)
- Restore deep sleep frequency to 384 MHZ (Should fix DT2W not responding)

r216 (18/02/15)
- Synced from Franco (Conservative as default, msm_hsic_host, etc...)
- Linux 3.4.106
- Updated F2FS drivers from up to Jan. 11th 2015
- Ramdisk Tweaks
- Compiled with updated SM 4.9.3 toolchain

r215.2 (31/12/14)
- Linux 3.4.105
- USB-OTG fixed
- Otgcontrol script is now in /system/etc/otgcontrol.sh
- Minor ramdisk tweaks

r215 (14/12/14)
- Completely rebased off Franco's sources (With Android 5.0.1 sources)
- Compiled with the latest 4.9.3 SM toolchain

r213.2 (19/10/14)
- Linux 3.4.104
- Updated Faux Sound to 3.6
- Added an init.d script to enable/disable USB-OTG. (named 91otgcontrols)
- Updated F2FS with patches up to 10/10/14 (f2fs.fsck shouldn't have any issues up to this point + there should be some performance improvements)

r213 (11/09/14)
- Upstream patches from Franco (Hotplug fixes, Interactive governor improvements)

r212 (01/09/14)
- Upstream updates from Franco (Hotplug driver enhancements, fixes from r211)
- Added the 192 MHZ Freq
- Updated fauxsound version to 3.5
- Misc TRIM improvements

r211 (25/08/14)
- Upstream updates from franco
- Linux 3.4.103
[Nexus 4 Android Development] Rohit02:
A new thread for good kernel.. Thanks will try today.
[Nexus 4 Android Development] anshumandash:
Good to see this new thread. I hope you have merged updates from the new test 212 which fixes idle battery drain for many.
[Nexus 4 Android Development] philosophics:
Nice!
[Nexus 4 Android Development] marcof93:
Tested on latest BETA3 of ParanoidAndroid and is working good.

Is there a possiblity to see mods concerning brightness? Minimum stock brightness is too high for me, but I love Franco kernel and I don't want to change to (for example) AK Kernel that support lower brightness levels.
[Nexus 4 Android Development] BassBlaster:
Is this SaberMod Franco kernel better than stock Franco kernel? Sorry if its a noob q lol
[Nexus 4 Android Development] zaclimon:
I ported the experimental brightness driver from stratosk which supports even lower minimum brightness. You can use the stratosk app to enable/disable it.
[Nexus 4 Android Development] Maibol:
hey buddy nice that you has your own thread now ;) i got a question this one is based on the official 211 or the new 211 test build franco posted i think yesterday ? ty for the builds an as always great job mate
[Nexus 4 Android Development] marcof93:
Ok, I did it with Semaphore Manager, I think you should add this to the first post, it's a good feature :) thanks, you're great ;)
[Nexus 4 Android Development] zaclimon:
It is based on the official r211 but I just saw that he made some changes which is, I suppose, the test version Franco released tomorrow.

I'll try to make an update today in order to reflect those change.
[Nexus 4 Android Development] snacs:
No UCI Support in Synapse :crying:
[Nexus 4 Android Development] jmtjr278:
Flash ukm, flash kernel. Reboot. Install synapse. Should work
[Nexus 4 Android Development] snacs:
Thanks for reply. I try a clean install later. :)
[Nexus 4 Android Development] migueldbr:
Could you please include 192mhz frequency?And also latest fix from franco if you wouldnt mind!=p
[Nexus 4 Android Development] blusydays:
Thanks for this kernel, I flashed it and everything works fine ;)

Just one question, which hotplug this kernel use ? On Synapse, MPdecision is unchecked and no other hotplug is showing.
[Nexus 4 Android Development] snacs:
Didn't work for me. Clean install step by step :(
[Nexus 4 Android Development] Rohit02:
you can do this

flash rom(dirty if you lazy:p)

flash kernel and then ukm latest reboot.VOILAA!!! ;)
[Nexus 4 Android Development] sd3993:
franco no longer has the kexec patch from lollipop builds(r214 up). Could this be added to this kernel?
[Nexus 4 Android Development] :
I have a stock ROM 5.0.1 (LRX22C) which I use kernal AOSP or CM ?
[Nexus 4 Android Development] xWolf13:
AOSP
[Nexus 4 Android Development] yochananmarqos:
Franco said on G+ he would add it in r216.
[Nexus 4 Android Development] TheDarkDefender:
This kernel includes kexec. Read the changelog please.

Cheers,

D
[Nexus 4 Android Development] sd3993:
actually this kernel is totally based off franco and franco removed kexec in 214 onwards so i thought it was removed from here as well. sorry :(
[Nexus 4 Android Development] AndyYan:
Is it just me or is DT2W not working? I set up an init.d script which worked back in r213.x, and even tried TricksterMod, both can't do the job. When I go to /sys/module/lge_touch_core/parameters and manually edit the file to turn it on, it seems it always lock itself at "N" despite that I've already set its permissions to r--r--r--.

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Nexus 4 Android Development] zaclimon:
Mine is working no problem. Also its normal that you can't change the values if it is r--r--r--. Try to let it alone on rw-rw-r. Also try to modify it using either adb or dt2w.conf to see if it is working.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] AndyYan:
Well it's rw-rw-r-- by default, and even at that state I couldn't manually modify the value. Tried typing the command via Terminal Emulator and yes it worked. Still init.d is a no-go. I often reboot so don't want to go to Term every time I boot it up...

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Nexus 4 Android Development] zaclimon:
The kernel doesn't support init.d which is why your script doesn't work. Which is why it is preferable if you could use the dt2w.conf method to control your parameters.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] sercankd:
is there any way to enable otg with this kernel?
[Nexus 4 Android Development] zaclimon:
Otg is broken at the moment. I'll try to fix it on a newer release.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] zaclimon:
Hi everyone, here's a little gift before the end of the year, hope you'll like it. :)

r215.2:

Linux 3.4.105

USB-OTG "should be" fixed (Needs to be confirmed as I don't have the equipment myself)

Replaced the 91otgcontrols with the /system/etc/otgcontrol.sh

Minor ramdisk tweaks (Nothing major but to be sure, please flash stock back, then flash this release on top of it)

The build is now available on Basketbuild.

Enjoy an happy new year with your families while using this kernel!! :)
[Nexus 4 Android Development] aviz1911:
"Enjoy a happy new year with your families while using this kernel!! :)" -> this line is kinda tempting :p
[Nexus 4 Android Development] zaclimon:
Maybe something like this could be better? :eek:

"This new year is brought to you by: SaberMod franco.Kernel r215.2"

/OT
[Nexus 4 Android Development] aviz1911:
Every new year gives you more happiness

Every new SaberMod franco.Kernel gives you more Battery life

Flash it and your life will charge faster than ever but the Discharge rate depends on your usage ;)
[Nexus 4 Android Development] swimma:
Does USB OTG work in r213.2-CM or can you please patch the 213 version too?
[Nexus 4 Android Development] zaclimon:
OTG is supposed to work with r213, though if I had to patch it, I can't right now. It'll come when I can work on it.
[Nexus 4 Android Development] yochananmarqos:
No difference with USB-OTG, unfortunately. I really appreciate you working on it.

EDIT: I got it working :D
[Nexus 4 Android Development] zaclimon:
Did you enable the sysfs command? Also do you use stickmount as well?

I have used the same set-up as [MENTION=4914494]aviz1911[/MENTION] and it works in his case. :confused:
[Nexus 4 Android Development] zaclimon:
It is not really a feature that I support, though I suppose I can add it as it is bundled with DT2W.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] Daandofreak:
Is there no hotplug in this kernel? I flashed it today using ex kernel manager for tweaking. In hotplug settings list there is mako hotplug but can't choose this.
[Nexus 4 Android Development] dragos281993:
Use "Quanta tweaks" or "Kernel adiutor" from the Play Store. "Mako hotplug" is there and it's activated by default.
[Nexus 4 Android Development] Daandofreak:
Awesome kernel, billion thx for this great kernel.
[Nexus 4 Android Development] prashant13791:
how to install these patches?

I have Nexus 4 Lollipop.

I want to use otg on that.

how can i use otg?

explain the procedure

please help me ....:(
[Nexus 4 Android Development] zaclimon:
http://m.androidcentral.com/android-advanced-usb-otg-nexus-4

You can skip the part 1 since Quanta support it. You need the power supply + the USB Otg-Y cable.

Also you do need to enable the OTG inside the device with Kernel Adiutor or Quanta Tweaks for example. When those are completed, you should be able to get OTG working on your device.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] prashant13791:
facing problem as fresher in these stuff.

Dear friend,

I am new to all these.

Can you please explain the process properly..with download links. How to do all that stuff?

Please provide the links and procedure too. I have enclosed screenshot of my Nexus 4. Kindly tell me the suitable kernel and its link.

Thanks
[Nexus 4 Android Development] granazis:
[MENTION=7556765]prashant13791[/MENTION],Hi friend the solution for you if well understood your post(for LMY48T) is only here:

http://xdaforums.com/nexus-4/orig-development/kernel-semaphore-n4-2-2-2-t2232898 or here:

https://plus.google.com/+StratosKarafotis/about

Download Semaphore kernel b y@StratosK version (latest) 3.4.2 wipe dalvik and cache only and flash it via TWRP,then config via Adiutor kernel app.

Good luck.
[Nexus 4 Android Development] zaclimon:
Or you could download V7 which is the last "supported" version for 5.1.1 here:

http://quantaworks.me/kernels/quanta/mako/AOSP/Quanta-V7-Mako.zip

Flash it using TWRP and you should be good to go. You can use Quanta Tweaks to configure it as well.
[Nexus 4 Android Development] platypoid:
RF Analyzer

I am trying to get RF Analyzer app working on Nexus 4. This uses R820T usb SDR software defined radio dongle. The powered Y cable worked today with an Amazon Kindle Fire tablet using same usb dongle so I know it works.

I have CM 13.0 which is Android 6.0.1 and I just installed Quanta 3.4.0 Kernel and Quanta Tweaks app and went to Misc and turned OTG on in that.

But RF Analyzer says it cannot find my device. Am I missing anything that I should have enabled to make this work ?

Thanks for any suggestions .
[Nexus 4 Android Development] zaclimon:
It could be possible that the device isn't recognized or that there aren't drivers for this usb device in the kernel. Could you send a dmesg output when you're connecting the device to see what's happening?

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] platypoid:
There is a driver but I guess it is not working correctly with my Nexus because it has a monitor screen and says the device is not connected.

So that is my problem.

Since it works on my other device I won't mess with it on the Nexus any longer. But I am happy I found the Quanta kernel - thanks !
[Nexus 4 Android Development] zaclimon:
What Kindle Fire do you have? Also, could you get a dmesg of your Kindle Fire when the dongle is connected? It could help finding what kind of driver it needs to work.
[Nexus 4 Android Development] platypoid:
I have the Kindle Fire 5th generation 7 inch with Cyanogenmod on it - Amazon had them for $40 and it works great.

I have been trying to figure out how to get dmesg log - I see how to do it via ADB but can't see the Amazon or Nexus listed on my computer when it connected via OTG cable. And I have not been able to figure out how to get dmesg log and save it from the phone.

Is there an easy way to grab and save dmesg ?
[Nexus 4 Android Development] zaclimon:
Using an app that can fetch them for you or doing the following command in an adb shell

dmesg > /sdcard/dmesg.txt

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] hello_world.c:
Trying to flash this kernel in TWRP and it says it is successful, but when I boot into system the old kernel is still there and Quanta features (USB OTG in particular) don't work. Quanta Tweaks detect the kernel as "other" accordingly and offers to download and program the latest version. I can do that, it downloads it, goes into recovery, the kernel is seemingly successfully programmed but after reboot it is still not there ("other" kernel). I am running Pure Nexus ROM 6/MM. Any ideas?
[Nexus 4 Android Development] Gu$houn*:
In case you was using other kernel before, dirty flash your ROM at first, then flash Quanta.

In case you weren't, try manually wipe system/cache/dalvik, then reflash your ROM, gapps, SuperSU etc and in the end Quanta.

In case nothing helps there is always a clean flash option.

P.

[sntfrmnxs⁴]
[Nexus 4 Android Development] hello_world.c:
Tried that, didn't work.

No change either, still original kernel.

Can you elaborate? Do you mean repair file system in TWRP?
[Nexus 4 Android Development] Gu$houn*:
No, I meant make a fresh install of your phone, backup your apps, make a nandroid backup in TWRP, then manually wipe system/data/cache/dalvik and then flash ROM, gapps, SuperSU ... maybe let the first boot proceed, let the phone settle and then reboot back to recovery and flash Quanta.

In case this won't work, my last advice is to flash a factory image from Google with all those wipes it provides so the sdcard too (so it means you have to backup all of your data from internal memory).

But maybe someone else would suggest some better thing.

P.

[sntfrmnxs⁴]

// I know it's probably not the case but did you try download kernel manually again (do you have the correct version?), maybe check md5 checksum etc?
[Nexus 4 Android Development] hello_world.c:
Problem solved, I had an older version of TWRP installed. Updating it made the kernel install work. Thanks.
[Nexus 4 Android Development] Gu$houn*:
Yeah, that didn't come to my mind. Glad it's OK.

P.

[sntfrmnxs⁴]
[Nexus 4 Android Development] Ganondorf4:
New to flashing kernels

Excuse the basic questions, but I've never flashed a kernel before; I've done ROMs (on older phones) and the LTE radio patch, so I'm familiar with the basics of flashing.

1. Will flashing a new kernel require a data wipe?

2. Does this kernel conflict with the LTE radio patch, i.e. would I need to repeat the patch after updating the kernel?
[Nexus 4 Android Development] quentin2260:
Hello

1. Only wipe cache + dalvik cache

2. I don't know because i have never flashed radio.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] zaclimon:
Flashing the kernel should not interfere with LTE. (using it myself)

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] zaclimon:
July treat

Hey guys, another month, another release. This might be the last release before Nougat or the new Nexus appears. (I hope so I can finally upgrade my phone XD) It is without saying that the Nexus 4 is a really great beast on it's own. Anyways, here it is:

V18 (16/07/16) :

- Merged security updates for July

- Performance improvements (From Franco's release for Flo)

- Faster boot up (From Franco's release for Flo)

Both releases are available on the regular release platforms.

For QT, I know I've been slacking but it has been a bit hard to work on it. I plan to make a maintenance release before I being my work on some overhaul based on some neat stuff seen on Google I/O. :p

Anyways, Enjoy!! :)

EDIT: Rollout paused for the moment. Back online! Sorry for the waiting. :)
[Nexus 4 Android Development] granazis:
[MENTION=4217103]zaclimon[/MENTION],hi friend i ought to give a big TNX for your new project used on latest Broken buid rom on wich substrarum supported.

Fore more details given by me using ss u can see looking here :

https://plus.google.com/communities/116755372097705741593

post 2:0:2 AM today

Best regards,Christos
[Nexus 4 Android Development] Burn02:
Hello

Thank's for the support. :)

Upgraded to the V18 without any problem.

THe system seems to be less reactive then before, but perhaps it's during the time that it will construct the cache and dalvik has i wipe it too.
[Nexus 4 Android Development] zaclimon:
Well, flashing the kernel doesn't do anything related to that matter. You can try to wipe the cache/dalvik but it's not something that will affect that much the performance.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] knm1574:
Hi Zaclimon thank you for your great Kernel for N4. I build PureNexus ROM for N4. I would like to include Quata Kernel as a default kernel. I request your permission to use your kernel and also your support in integration of Quanta. Hope you will help.

I got a error http://pastebin.com/dL6RXfNT. Kindly help.
[Nexus 4 Android Development] zaclimon:
I don't mind that you use Quanta for your Rom. As for the error itself, I've never seen it before. With which toolchain you try to build the rom?

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] knm1574:
Zaclimon thank you for your reply. I am using stock tool chain. Request you to let me know how to change the tool chain.
[Nexus 4 Android Development] zaclimon:
I don't know if PureNexus can build with custom toolchains, though:

1. I would put the custom toolchain (in this case Uber-TC) inside prebuilts/gcc/linux-x86/arm

2. Modify build/core/tasks/kernel.mk to specify the path to the custom toolchain for example:

KERNEL_TOOLCHAIN := $(ARM_EABI_TOOLCHAIN)

to

KERNEL_TOOLCHAIN := path/to/custom/toolchain

Hope it helps!
[Nexus 4 Android Development] poqi_ako:
Hi. I am using quanta kernel to use otg but when i tried to put my otg cable with external supply, it just charges the phone and the flash drive blinks the led light but the phone does not read the flash drive. What may be the problem?
[Nexus 4 Android Development] hello_world.c:
Yes, you need either a ROM with built-in USB OTG support, or an app that does the mounting such as Stickmount from Play Store (root required).

Gesendet von meinem SM-T320 mit Tapatalk
[Nexus 4 Android Development] poqi_ako:
I'm usinh paranoid android. Does that rom support otg?
[Nexus 4 Android Development] manpildo:
Hello,

Can you recommend a good CPU monitoring app that displays real-time cpu usage for each core? Something like in Kernel Adiutor. I have tried several apps from play store, but so far I haven't had any luck finding any that does this simple thing. I would like to monitor cpu usage with this kernel.
[Nexus 4 Android Development] ulixess:
[MENTION=4394717]manpildo[/MENTION] that's exactly what you're looking for, simple, fast and really handy: PerfMon v1.21
[Nexus 4 Android Development] manpildo:
Thanks, it's perfect. I was looking for it but couldn't remember the name.

Seems that 2 cores are always online and the rest plug in only on high load. Is that the correct behaviour?
[Nexus 4 Android Development] zaclimon:
Yep that's the expected behavior of the hotplug.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] arvindgr:
Hi [MENTION=4217103]zaclimon[/MENTION], Thanks a lot for QUanto, While I was rocking v17 I had some of best performance+battery on Chroma ROM with stability. But with v18, things just got messed up. I flashed v18, and immediately noticed mako getting heated without any background apps. Even battery drain was significant without any apps running. The Phone won't even push charge to battery when Wifi was turned on, and phone remained damn on that time. Hence I clean flashed Chroma ROM with Quanto v18 and again this behaviour is noticed. But when I reflashed Chroma and went back v17, all mysteriously probs disappeared and device is running normal with v18. Is there anyone who experiences similar issue with latest v18 kernel?
[Nexus 4 Android Development] manpildo:
Nope. I am running Pure Nexus with v18 and I am absolutely loving the combination. I have reduced cpu max freq to 1512 and increased gpu max to 400 and undervolted by 50mV. No unexpected heating noticed, experience is very smooth.

[MENTION=4217103]zaclimon[/MENTION], is the kernel selinux permissive by default? At least for me it is after every reboot. Can you make it enforcing by default or add an option in Quanta Tweaks to make selinux state toggleable? So far I have been manually setting it to enforcing via terminal emulator, but having it stick on boot would be nice.
[Nexus 4 Android Development] zaclimon:
The only thing I could think of is the frequency modifications I've made but that alone wouldn't cause the problem I believe. Do you have any wakelocks on your device that could cause this?

The kernel by default is set to enforcing. There must be something that puts it to permissive. That said, I can put an option in QT to toggle SELinux state.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] manpildo:
Thanks, that would be great :)
[Nexus 4 Android Development] ahoyboyhoy:
Has anyone else been experiencing frequent random reboots lately? Might not be kernel related, but it seems to coincide with my update from v13-v18. I tried debugging through logs and the last thing logged in each case is a truncated version of "580 660 E PowerHAL: touch_boost: failed to send: No such file or directory". That message is a log hog appearing for every touch on the phone screen (100s per minute). Any ideas for further debugging? I'm running crDroid laterst nightly