• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [KERNEL][Linaro][Hybrid] ZER0 Kernel for Samsung Galaxy Avant

Dm47021

Android Expert

ZER0 Kernel
61a5da1ee7de68cd14536ca801ac6efa_zpser3y0fra.jpg

By: DM47021

/* *** Disclaimer
* I am not responsible for bricked devices, dead SD cards, thermonuclear war,
* or you getting fired because the alarm app failed. Please do some research
* if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

THIS IS FOR STOCK ROMS ONLY AT THE MOMENT
CM, AOKP VERSIONS COMMING SOON!

THIS IS BY NO MEANS COMPLETELY MY WORK,
Many commits, tweaks used in this kernel came from many various developers.
I have put many many hours into making this kernel possible (well over 200hrs), it is a labor of love.

FEATURES:

Overclocking
CPU Overclocked to 1.6Ghz
GPU Overclocked to 578Mhz
System Bus and Memory Overclocked to 600Mhz
Slim Bus Overclocked (highest audio quality possible)

CPU
CPU underclocked to 192Mhz
MSM_LIMTER
(Complete control over your CPU)
(Per core control over min/max)
(You can set governors for each core)
(CPUCPU IS 1590MHz)


CPU BOOST / INPUT BOOST
New Cpu boost driver With Hotplug support
New Cpu Input boost driver


HOW TO USE CPU INPUT BOOSTING
I included a script under system/etc/init.d/60Inputboost
You can use your own parameters aswell

ENABLES INPUT BOOST
echo 1 > /sys/kernel/cpu_input_boost/enabled;

SETS BOOST FREQUENCIES
echo "1404600 1497600 1593600" > /sys/kernel/cpu_input_boost/boost_freqs;


CPU GOVERNORS

-ADAPTIVE
-BARRY_ALLEN
-BIOSHOCK
-BLU_ACTIVE
-CONSERVATIVE
-ELEMENTALX
-HYPER
-INTERACTIVE
-ONDEMAND
-PERFORMANCE

-POWERSAVE
-REAPER (WRITTEN BY ME)
-XPERIENCE
-ZEROLAG (WRITTEN BY ME)

CPU HOTPLUG DRIVERS

-AUTOSMP
-BRICKED_HOTPLUG
-INTELLI-PLUG_3.81
-QUALCOMM MPDECISION

-ZEN_DECISION

GPU GOVERNORS
-MSM-ADRENO-TZ
-USERSPACE
-POWERSAVE
-PERFORMANCE
-SIMPLE_ONDEMAND
-MSM_CPUFREQ


GPU GOVERNOR TUNEABLES
-ADRENO_IDLER TUNABLES
-SIMPLE_ONDEMAND TUNABLES


I/O SCHEDULERS
-CFQ
-DEADLINE
-FIOPS
-NOOP
-ROW
-SIOPLUS
-TRIPNDROID
-VR
-ZEN


OTHER FEATURES

-Scheduler teaks
-Improved Power Efficiancy
-Built with Linaro 4.9.4 and O3 Optimizations
-Network Speed Tweaked
-Wifi Drivers Built from source



Source Code: https://github.com/Dm47021/android_kernel_afyonlte

For more information on the various governors, hotplug drivers used in this kernel
READ HERE: ->
http://androidmodguide.blogspot.com/p/blog-page.html


KNOWN BUGS:
Not really a bug with the kernel itself, but a samsung security app
If you have to enter your wifi password after every boot
then you just need to change a line in build.prop

Set ro.securestorage.support=true
To ro.securestorage.support=false


reboot


CONFIGURE MY KERNEL
This kernel is meant to be used with the kernel auditor app
it will allow you full control over every aspect of the kernel

GET KERNEL AUDITOR HERE:

https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor&hl=en

GET THE ZERO KERNEL HERE
Download: https://www.mediafire.com/?3xgtm3gfiqcfdiu


Though its not required to donate to use this.
if you would like to buy me a beer, or burger or just donate to my monkey fund.
you can donate here:
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=crimsonwinterofapocalypse@hotmail.com&lc=US&item_name=Android donations&currency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted
 
Last edited:
About to test... Gotta restore stock first, though... Thank you so much for this...

Edit: Looking great so far. Can't wait for a CM release! Really can't stay on stock... Not with a functional (enough for me, at least) CM12 ROM available... But really liking all of the governors and other tweaks available... I'll do some benchmarks soon though, and post some screens...
 
Last edited:
Stock 3DMark (Performance Governor):
Score was 2732
Zero 3DMark (default governor):
Score was 2715

Stock outperformed the kernel... Gonna test again with different governors and see what happens...
For some reason, my CPU maxed at about 1.1Ghz with the Zero Kernel...
 
Last edited:
Stock 3DMark (Performance Governor):
2n90012.png

Zero 3DMark (default governor):
110b036.png

Stock outperformed the kernel... Gonna test again with different governors and see what happens...
For some reason, my CPU maxed at about 1.1Ghz with the Zero Kernel...

that cant be right
 
that cant be right
It's possible that I may have had some crap running when I tested with your kernel that wasn't running for the stock test... Gonna retest again soon and make sure every unnecessary app is force closed and disabled...

Btw, I went from just over a 16k score on Antutu up to 17,400 with your kernel, but apparently didn't screenshot...
 
my config is generally

intelliplug for hotplug -> performance profile -> set the thresholds for max performance
Bioshock for cpu gov
fiops io sched with 256kb read ahead
 
Retested on stock with every unnecessary app disabled:
Score was 2786

Zero kernel (same apps disabled)... still default governor and other settings... Actually went above 1.2Ghz this time, though... Still outperformed by stock:
Test with your recommended settings:
Score was 2724

Then I disabled "Multi-core Power Saving" and the "Schedule Workloads" options in Kernel Adiuter and ended up with this:
Score was 2753

Gonna mess with some more settings and see what happens... I'm removing some of my screenshots, too, so my posts aren't so long...
 
Last edited:
Firstly, I updated my last reply with new screenshots, but more importantly, the Geekbench score has improved greatly:
6fwbb7.png

2zny89v.png

Seems like either 3DMark is flawed or the extra clocks are helping more with math and such rather than 3D processing. If I were to use this (which I will when it's available for CM), I would actually set it up more to save battery than for performance, considering the CPU minimum would help loads in that regard. But thank you again for working so hard on this.
 
Broke 1000 on the multi-core test (with a lower max CPU) :

Score was 337/1001

*CPU Settings:
Max CPU - 1401Mhz
Governor - interactive
Multi-core Power Saving - On
Schedule Workloads - On
*Hotplug Settings:
Hotplug - Intelliboost
Profile - Balanced
*I/O Scheduler Settings:
Scheduler - fiops
Read Ahead - 256kb

All other settings left at default.

Edit:
After raising CPU to 1.5Ghz, the single core test result was 340, and multi-core was 1007. While this is an improvement, it's very slight and the battery would drain quite a bit faster. Still wanna see how good it can get... Could I break 1050, I wonder?

Update:
Got up to 344/1015

Update 2:
Up to 334/1090 with pretty much the same settings, but switched gov to Reaper.
 
Last edited:
Okay. Last test of the night was with my favorite superhero as the gov, and of course, got the best results yet:
2irm3xu.png

Beating the Moto G now, which was my real goal. Also, battery life doesn't seem horrible with these settings. I'm gonna run it like this for a day or so to test overall stability and gaming performance.
 
Last edited:
Well, This kernel is not going to work for AOSP. so ill have to take the AOSP kernel, fix it up and make a second version of zero of those roms, working on CM right now
 
Used for 5 hours so far today (including about 25-30 minutes of playing gta:sa) and the battery life, with my current settings, seems pretty good. At 69% now. Also, I was able to increase the draw distance to max in gta and it runs even better than it used to (draw distance was set barely above half).

Btw, with my current settings Geekbench scores are 344/994, both well above stock but not the highest I've achieved... Very stable. Did crash once when changing settings, but didn't have it set to restore on boot, so all was well...
 
Flashed the kernel and wiped dalvik cache + cache. Every time I turn off my phone screen it turns black and wont turn back on. Navigation keys light up but nothing else until I pull the battery. Any suggestions?? :(
 
Flashed the kernel and wiped dalvik cache + cache. Every time I turn off my phone screen it turns black and wont turn back on. Navigation keys light up but nothing else until I pull the battery. Any suggestions?? :(

I did'nt wiped dalvik and cache perhap's just reflash it....????
 
Thank you for the reply. I tried flashing without wiping dalvik cache and cache first but it gave me the same issue. I read that wiping them could potentially solve the issue so I tried that afterwards and still have the same problem :(:(
 
Back
Top Bottom