[AKT] Advanced Kernel Tweaks v1.6 FINAL | Insane Battery & Performance(SD820/1|OP3/T)

Which tweak do you use or prefer?

  • GhostPepper

    Votes: 314 21.7%
  • HawkTail

    Votes: 50 3.5%
  • HawkPepper

    Votes: 142 9.8%
  • Kestrel

    Votes: 21 1.5%
  • FairPark

    Votes: 130 9.0%
  • Fusion_B_Delta

    Votes: 53 3.7%
  • Fusion_Speed

    Votes: 56 3.9%
  • Cold_Fusion

    Votes: 25 1.7%
  • Shotgun

    Votes: 83 5.7%
  • Project Zhana

    Votes: 688 47.5%

  • Total voters
    1,447
Search This thread

meetlicious

Senior Member
Feb 16, 2018
89
13
lkt is made to be universal with universal modifications, akt was made specifically for the 820/821, I think a mod made specifically for your SOC will do better than a universal one, but the best way is to use and test each one.
 
Last edited:
  • Like
Reactions: ezzony

Nixeus

Senior Member
Sep 14, 2007
1,724
43
Sorry but...what is LKT ?

So no one know about PIE...? Better to use AKT or stay on stock ?
 

Mattia46old

Senior Member
Feb 8, 2018
195
76
Milano
Sorry but...what is LKT ?

So no one know about PIE...? Better to use AKT or stay on stock ?


For PIE/Oreo roms is better stay on stock instead of use AKT, because the tool has been developed for nougat's ROMs


I can suggest you two alternatives:

-Helix engine app
Or
-LKT (magisk module)
-FEDE.AI (Magisk module)
 

Arstoien

Senior Member
Oct 31, 2012
1,438
1,508
lkt is made to be universal with universal modifications, akt was made specifically for the 820/821, I think a mod made specifically for your SOC will do better than a universal one, but the best way is to use and test each one.
No, it has per-soc-settings. When flashed, applies the settings for your soc. And they are based on machine learning training.

Sorry for the off-topic. I mentioned LKT because AKT is incompatible with P. And here just wanted to prevent misinformation.
 

baldybill

Senior Member
Aug 8, 2010
524
88
Verizon LG G3
LG V20
AKT seems to be doing well for me (LG V20, Oreo, Custom Rom, Rooted)

The one issue I see is that Google Play Services uses sensors alot more with this tweak than with other tweaks I've used. I even have the Magisk modules to allow us to limit Google Play Services background usage.

Any thoughts on how to fix this?

---------- Post added at 10:51 AM ---------- Previous post was at 10:51 AM ----------

AKT seems to be doing well for me (LG V20, Oreo, Custom Rom, Rooted)

The one issue I see is that Google Play Services uses sensors alot more with this tweak than with other tweaks I've used. I even have the Magisk modules to allow us to limit Google Play Services background usage.

Any thoughts on how to fix this?
 

ezzony

Senior Member
Jul 4, 2012
723
212
Dublin
LG V20
I have been using GhostPepper today and it is quite noticeable that my battery is lasting longer. LG V20 oreo. Just one question, Some of the settings are missing in EX Kernel Manager. There is no T.Boost to turn off and no CPU Boost Options. I guess this is simply down to my Kernel right? It's mk2000 for the v20.
 
Last edited:

cnjax

Senior Member
Aug 4, 2011
4,281
10,897
Jacksonville, FL
I have been using GhostPepper today and it is quite noticeable that my battery is lasting longer. LG V20 oreo. Just one question, Some of the settings are missing in EX Kernel Manager. There is no T.Boost to turn off and no CPU Boost Options. I guess this is simply down to my Kernel right? It's mk2000 for the v20.
Settings in EX are only available if supported by your kernel

Sent from my LG-H910 using XDA Labs
 
  • Like
Reactions: ezzony

anavarro8794

Senior Member
Jul 13, 2016
128
6
How well does AKT work on pie currently? I tried using XANA Extreme Battery in OOS pie and expected a bit of lag since it favors battery over performance but I'm not seeing any lag or much of a battery difference. When I go into terminal it says that the profile I named above was the current profile. Is this outdated?
 

mnsiw

Senior Member
Oct 2, 2009
1,200
384
Redmi Note 10 Pro
I'm using AKT on pie through ex and it's taken idle drain from 2% to 1%.

OOS 9.0.6?

---------- Post added at 09:21 AM ---------- Previous post was at 08:41 AM ----------

Tried it on OOS 9.0.6 + arter97 kernel, but this kernel does not support disabling touch boost, so flashed ElementalX, seems working now. I think it should work fine as all system paths are same, check the script in editor to verify. I'm not expert on this, just my opinion.
 

jamorOO7

Senior Member
Feb 22, 2014
111
12
Good day!
Anyone who happens to try this with Oneplus5?
Or anyone can direct me to something like this for OP5 please?
Would really appreciate it.
 

ezzony

Senior Member
Jul 4, 2012
723
212
Dublin
LG V20
The app won't open for me on my oreo phone. Meaning I've installed the app but when I tap the icon absolutely noting happens. Any idea why this might be? Worked well on nougat.
 
Aug 26, 2021
32
6
Samsung Galaxy Core
LG V20
How does this kernel (compatible with Lighthouse?) do in term of keeping the phone cooler? My LG V20 is quite overheaty under any loads (browsing reddit/youtube/internet) in it's current state and hopes to help it stay cooler.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 240
    [AKT] Advanced Kernel Tweaks v1.6 FINAL | Insane Battery & Performance(SD820/1|OP3/T)

    IMPORTANT ANNOUNCEMENT #2​
    REALLY IMPORTANT ANNOUNCEMENT:
    Please read it!


    We ( @patalao and me) have decided to create a new thread since the @op from the thread we were using seems to be inactive, so doing this will give us more freedom for editing the main post and providing you guys with more information.
    I also need to thanks all the awesome people that have made this possible, therefore thanks to @soniCron and @Alcolawl for being the creators of the original guide and all the fantastic tweaks that you have made.
    Thanks to @flar2 for his great app (EXKM) and his kernel and to @patalao for his superb tweaks and all the help he has provided me.
    http%3A%2F%2Fs25.postimg.org%2Fkr248eg8v%2Fintroduction.png

    All that you are about to read is based on THIS THREAD so go there and thanks @soniCron for it.
    I'll go ahead and copy and paste some of the firsts paragraphs so those who don't know what this all is about can understand a bit.

    I'm about to tell you how to get buttery smooth, lag-free performance with insanely good battery life, using an old school governor featured in practically every kernel... This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.
    Yeah, yeah... everyone promises good battery with great performance, but who actually delivers? Maybe it isn't as smooth as you want, or maybe it requires something your kernel or ROM don't support. Or maybe the battery life promises just aren't what you expected. There's always some awful compromise. Not here!
    This isn't a guide to get 36 hour battery life... provided you never use your phone. That's deep sleep optimization, which is lovely and all, but what good is the phone if you can never use it?! And with the new Marshmallow Doze feature, this strategy is becoming a thing of the past. What I'm talking about is 7-14 hour screen on, actual hands-on usage times! Without compromising anything, you can get 7-8 hour screen on usage with regular, no-compromise usage habits: daytime visible screen brightness, both radios on, sync on, network location on, all the regular usage features, the whole kit and kaboodle... all smooth as a baby's butt and snappy as a Slim Jim! (Up to 14+ hours if you can stand minimum brightness and WiFi-only with a custom ROM and other stuff turned off! And this is with stock voltages and full frequency range--you'll likely get even more if you choose to optimize those as well!)

    However, it should be noted that this does not apply to gaming, heavy camera use, etc. Anything that is an automatic battery killer in and of itself. There's nothing that can be done about anything that forces the phone to utilize its maximum resources all the time. But you should know that by now. Further, this guide is about optimizing the CPU as much as possible. It does not cover things like eliminating wakelocks so your phone sleeps well, removing unnecessary and battery draining stock apps, keeping your screen brightness down*, and all that stuff that's been covered in other posts ad infinitum. Those optimizations are up to you.

    If you really want to know the principles of this tweaks, please go to this thread since there everything is really well explained and I know you guys just want to apply the tweak and forget about everything behind it, so just keep scrolling!
    • Voltages and Frequencies:
    So recently I have been investigating about the Voltages of our device (since that is a really useful information to know) before that we only have the Nominal frequencies (If you don't know what I am talking about go ahead and read @soniCron thread because I won't explain it) we could develop some tweaks with that, but we were pretty much making blind shots, guessing and hoping that all will be right. Well, now that we have all this information we can optimize our tweaks even more so expect new updates and rework for the current tweaks and of course new ones.

    I have made a little spreadsheet with the Nominal and Efficient frequencies for you guys, so you can take a look and maybe modify our tweaks to your needs, since, all of them have been tested by @patalao, our tester and me, which involves that are tested without usage and not yours.

    2cxtc02.png


    No much to say about frequencies so we move right away to the voltages

    2chand.png
    1zez5eq.png


    We have more to talk about this, as you can see OverClocking have NO down points since it will consume the same voltage as the maximum stock clock speed and it will give use more performance. UPDATE: It's true that the voltage it's the same, but there is some downpoint which are explained in this posts. Here and here Thanks to @bedalus for pointing itn out!
    Notice that the voltages on CM ROMs are higher that on OOS and that the values were shown there are from OOS. We are already working on a flashable zip or script for modifying those values since cannot be modified anyway else.

    On the Snapdragon 820 (Our chipset) things have changed a lot from the previous chipsets like the 808 (Nexus 5X) and 810 (Nexus 6P). Now we are back to the Quad-Core, which is good, more cores= more battery consumption but we continue with the Little.BIG set up, where we have a Little Cluster (really efficient and fast) and a Big Cluster (slow but good for heavy loads). On previous chipsets, the Little kernel was really good on low-mid clock speeds and the Big cluster was really good on high frequencies and bad on low. Well, this is still true, but not we don't have such difference than before. Our Little cluster is going to be "the main thing" as it was before, but now the Big cluster has a really low consumption on lower frequencies so can be really good for sustained loads which only demand low~mid clock speeds as well it will be used as a quick burst for help the Little cluster to not reach High freq here it's not that efficient anymore.
    • How this affect your device (ROM/KERNEL)
    You might NOT get the same results as me or other, it will depend mainly on your usage, secondly on the kernel and finally on the ROM that you currently using.
    Not all the tweaks work the same way for certain kernel, what I mean with this is that the battery life/performance might be better running X kernel with X tweak, but the same tweak applied to another kernel might not be that good at all
    Wait what? What you want to tell me is that some kernel is better than other, right?
    Yes and No, Some kernel is better than other but also, some kernel perform better with certain tweaks as can be seen in the following screenshots (This test have been performed using AnTuTu tester with a clean install of last RR + the Kernel, nothing else. I know is a benchmark and the perfect thing whole be a real life test but that takes days, so If somebody wants to do it, I'll post the results)
    Disclaimer:: This is just a profile (tweaks) for the interactive governor. If you experience any unexpected fc, reboots, massive stuttering/lagging, etc, this profile isn't most likely not responsible for that.
    23kvyq1.jpg
    2nvs7md.jpg

    • What About Touchboost?
    Since I've noticed that a lot of people was asking about Thouchboost, I decided to add this little explanation from @soniCron

    " Touchboost is a nifty feature in a lot of kernels (including stock on Nexus 5X) that jumps up the frequency so that you experience minimal lag. However, with all the above settings, touchboost is usually detrimental to the efficiency of the device!
    We generally want to keep the CPU on the lowest possible frequency as much as possible, and touchboost interferes with that. Further, because we've set up the maximal and minimal efficient clock rates, as well as burst processing from the 2nd CPU core, we don't need touchboost!
    If your kernel allows you to shut it off, try to do so and see if the responsiveness of your device is acceptable. On the OP3 (and pretty much all the devices), touchboost adds no perceptual performance gain and only hurts efficiency and battery life. If your kernel doesn't allow you to turn off touchboost, try another one.
    Your battery life will thank you! "


    With all that been said, you shouldn't confuse Touchboost with CPU Boost and more specifically Input boost. Both are used to boost the clock speed of our device whenever we touch the touchscreen, so we don't suffer any lags.
    The difference is that Input boost can be configured and Touchboost cannot, making it a really inefficient.
    • MY DEVICE LAGS!!! WHY?!?!
    First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
    And yes, this can be fixed. We have a couple of ways of fixing it:
    • First of all, Check If the tweaks have been applied correctly
    • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
    • Our second tool for fixing lags is min_sample_time , my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
    • Try another tweak, for example;
      If you are using Project X.A.N.A Battery, try using Balanced option...
    Still having lag?
    • Get rid of unnecessary (background-)apps
    • Try a different IO-Scheduler
    • Try another profile

    My phone still uses too much battery
    • First of all, Check If the tweaks have been applied correctly
    • Make sure that you have disabled touchboost.
    • Set brightness to a lower level.
    • Use a dark / black theme
    • Don't play games all day
    • Try other tweak, for example;
      If you are using Project Zhana Balanced, try using Battery option...

    JOIN OUR SLACK CHANNEL FOR TESTING BETA TWEAKS

    VOTE FOR YOUR FAVORITE PROFILE

    I'll keep this post updated with new information, so make sure to subscribe to it.:D:good:
    222
    I'd like to release my AKT Profiles App [v1.6.0] [ROOT]

    Thankyou to all involved in AKT and all the slack channel for helping me test and improve the app.
    What started as just some experimentation with tasker, evolved into a complete app.

    APP is compatible with the OP3 & OP3T only. May work on other devices but no support is given.

    Features
    - Complete standalone app (No need to flash AKT, or run any commands in terminal)
    - All profiles included in the AKT script are included in this.
    - The app will auto apply your chosen profile on each reboot and notify you that its been reapplied (If Selected on Sidemenu, ON by default)
    - No need to delete profiles if you want to switch, just apply new profile and it will overwrite the previous.
    - Option to revert back to stock settings (On Sidemenu)
    - Shows you the current applied profile (On Sidemenu)
    - Added Dark Theme option (On Sidemenu)

    Download AKT Profiles APP 1.6.0
    https://www.androidfilehost.com/?fid=745425885120764798

    Instructions
    1. Download and Install the app
    2. Pick which catagory of profile you want
    3. Select a profile. A popup telling you the profile is being applied will popup.
    4. Wait patiently for the Profile applied Popup (Shows output)
    5. Pick if you want to apply on boot, or show notification.
    6. Your good to go :)

    Changelog v1.6.0
    • Magisk finally fully supported, no need for a work around anymore
    • Updates on all Zhana and X.A.N.A Profile (4.3)
    • Updates on Burnout and Fusion Reborn
    • Now the zip and app shares directories. Which means if both zip and app installed, the app will apply the profile chosen in either on boot.
    • Some minor fixes and corrections

    Changelog v1.4
    • Now Supported OP3T / SD821
    • Updates on all Profiles for 3T / SD821 (Except for Nameless)
    • Updates on X.A.N.A *beta* and Burnout
    • Dark Theme option added (On Sidemenu)

    Changelog v1.3
    • Complete redesign
    • Added Sidemenu with selectable options (Button top left or swipe from the left)
    • Options to turn on and off 'Apply on boot' and 'Boot up notification' (ON by defualt)
    • Profiles updated to match AKT Profiles 1.3 Zip
    • New profile added (Fusion Conservative)

    Changelog v1.2.2
    • Added current applied profile on homescreen
    • Under the hood changes to improve how things are done

    Changelog v1.2.1
    • Removed the 'sleep' commands from the script (Significantly faster at applying the profiles)
    • Added an option to revert to stock settings (3 Dot menu, top right of homescreen, requires reboot)
    • Increased the time the Applied popup stays open (More time to check the output)

    Thanks again to @Asiier @patalao @Senthil360 @Mostafa Wael for there fantasic work on AKT and all the profiles.
    163
    ==================================================================================​
    Advanced Kernel Tweaks
    ~ [A·K·T] ~
    All-in-one Project
    ==================================================================================​

    Guys... it's finally done after several months, thousands of line of code and a bunch of beta tests. A·K·T is done and ready to use!!!

    But before any further talking, I have to thanks all the people that have made this possible.
    Starting with @Senthil360 for working with me on all the coding stuff as well as creating his Nameless Profiles
    @Mostafa Wael and @patalao for their fantastic tweaks and helpfulness all along this process
    And to all the testers on the official Slack Channel, they are the absolute best and I wish I could name them all as they also deserve their recognition
    Without of them, this project couldn't have been possible.

    And now, let's get right into the news!!!​

    What is AKT and this All-in-One Project?
    I'll leave the mic to my buddy @Mostafa Wael and let him explain it:

    Mostafa Wael said:
    Bearing in mind the noticeable expansion in everyone's profiles, be it to aim for different targets or to improve upon the former profile, the number of profiles done by each of us has extraordinarily increased, resulting in multiple profiles in each category with all of them reaching what they aim for in their own ways.
    Since we are all not the same, meaning people can get different results even if they are using the same profile for the same purpose, not to mention that we have moved far away from just tweaking governor settings to almost tweaking every other aspect of the kernel settings, be it HMP scheduling, LMK min free values, I/O scheduler settings and advanced options or other global settings, depending on the Android version installed and the kernel's max frequencies, we decided to make it easier for you (and us) and compile all the scripts in an all-in-one seamless script, making use of the fairly simple command line interface found in Terminal Emulator app, categorizing all the profiles respectively, with a very neat interface layout to make it much easier and more simple to select your profile. This has been worked on for an awful lot of time, and we faced an even more awful lot of issues while debugging and creating this tool.
    This has been one of the biggest achievements for all of us, if not the biggest. Introducing Advanced Kernel Tweaks, or rather for short... AKT


    How to install:
    A flashable zip to be flashed via recovery, which installs scripts of the latest iterations of most profiles (some legacy profiles had to be eliminated for more convenience) and a master script that takes control of all the installed scripts and applies your desired profile at will as soon as you recall it via Terminal Emulator app and get guided by the on-screen instructions.
    So to wrap it up:
    1- Download the latest AKT_Profile_vX.x.zip file
    2- Reboot into TWRP recovery and flash the .zip file
    3- After you boot up the phone, leave it to settle for a minute
    4- Open up your favorite Terminal Emulator app
    5- Grant it superuser permissions by typing in "su" without the quotes
    6- After superuser permissions are granted, type in "AKT" without the quotes (yes capitalized)
    7- Follow the on-screen instructions and information, don't worry they are very intuitive and easily understandable
    8- Profit!​
    P.S. AKT displays the already applied profile name if there are any, furthermore, AKT has an option to revert back to stock kernel settings.
    And as a gift for the New Year, we are coupling AKT with 3 new iterations of Burnout_PR, X.A.N.A & Zhana and Fusion! Make sure to check out the main post for Xana and Fusion and Burnout for the updated description/changelog for the new profiles.
    Happy times everyone!



    We will update (ASAP) those posts with the all the needed explanation, changelogs for the profiles and the further updates, not this post!

    This means the rest of the profiles and the old updates will be EOL. This doesn't mean you cannot longer use them, only that we won't be giving further updates to as them as we though this new set of profiles are better than the past ones and therefore, we should be centering our attention on them


    Changelog:

    ** Initial Release ** v1.0 Stable

    This will be used for the changes done to the script itself, not the profiles.
    If you want to check the changes on the profiles visit their post that can be found right above.

    ** Update to v1.2 **

    #Now supporting su.d
    #Bug correction
    #Updates on FusionB/P and Project Zhana & X.A.N.A
    *for more details on them visit their posts*

    ** Update to v1.3 **

    #Bug correction
    *Target_loads won't apply If you were UnderClock or OverClock more than 1728 Mhz*
    #Modifications on how Input Boost applies, so fewer errors are shown
    #Updates on FusionB/P
    *for more details on them visit their posts*
    #Add FusionC (Battery Oriented)
    #Some visual Improvements

    ** Update to v1.4 BETA **

    #Now supporting OP3T / SD821
    #Updates on all Profiles for 3T / SD821 (Except for Nameless)
    #Updates on X.A.N.A *beta* and Burnout
    #Bug Corrections and Fixes

    ** Update to v1.6 FINAL**
    #Changes on how the script works
    #Now the zip and app shares directories
    #The script will auto remove sleeps after the first installation
    #Reapply option, Reapplies the current profile (instantly)
    #Updates on all Zhana and X.A.N.A Profile (4.3)
    #Updates on Burnout and Fusion Reborn
    #Some minor corrections

    FAQs

    • Do I have to reapply the tweaks ever time I reboot my device?
      - Yes and No. A·K·T supports both init.d and su.d, so as long as your kernel supports init.d or su.d (go ask on its thread not here) or you use init.d emulation via KA or similar, you should not need to reapply them on boot.
      Although I recommend manually reapplying it because, sometimes, they might nor get applied correctly because how both init.d and su.d works.
      Also, you can use Tasker by following this
    • I'm getting X error in X line
      - Okay, I'll need a screenshot of the error shown on the terminal app as well as your current ROM and Kernel
    • I'm getting errors in the whole script
      - Make sure you have given root permissions by typing "su" in the terminal
    • I have further questions
      - Check the FAQs on the OP
      - Read this whole post
    github_logo.png


    === DOWNLOADS ===


    ~ [A·K·T] Profiles ~
    ~ v1.6 FINAL ~


    # [A·K·T] Profiles APK #

    Old Downloads:

    ~ [A·K·T] Profiles v1.4 Beta 5 ~
    ~ [A·K·T] Profiles v1.3 Stable ~
    ~ [A·K·T] Profiles v1.2 Stable ~
    ~ [A·K·T] Profiles v1.0 Stable ~


    ====================================================================

    VOTE FOR YOUR FAVORITE PROFILE HERE


    Make sure to check our Slack Channel for all the BETA updates and staying tune with the latest news!!
    And make sure to give a BIG Thanks to this post
    113

    The Profiles:

    =================================================================================================

    Introducing Advanced Kernel Tweaks [A·K·T] | All-in-one Project
    All the profiles will be featured there, some make sure to check it out!


    Over here

    =================================================================================================

    Project Zhana & X.A.N.A v4.2: (Everybody should try it!!)

    Go to this post for the full lenght explanation.
    This tweak has all the new discovery voltages and some other new techniques, giving us great battery life without losing performance

    The battery could be even better than FairPark *14 h SOT*


    GhostPepper:

    Uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life
    Really well-defined clock speed escalation for a good battery and performance.

    FairPark:

    There have been a lot of controversy about this tweak lately. So after you complain, this will NOT work for all of you guys.
    For me, it works perfectly and it accomplished all that I'm going to state, but maybe you guys will experiment lags.
    This tweak is not for everyone.
    Probably the most battery efficient tweak ever created, fantastic battery with extremely smooth performance even playing games as Clash Royale or Pok?mon GO.
    You can easily get 10 hours SOT or even more (If you don't play any games) just texting, browsing and so on could give you even 12 hours SOT.

    HawkPepper:

    As you might notice by the name is the union of the 2 tweaks above, GhostPepper for the Big cluster and HawkTail for the Little cluster, as GhoostPepper is highly optimized for the Big cluster and HawkTail for the Little.
    Performance wise should be as good as GhostPepper but in terms of battery should be considerably better.

    EOL Profiles:
    You can still use them, but I won't give further support for them

    HawkTail:

    An advanced, modern profile that is both battery efficient and highly performant
    It should be as battery efficient as GhostPepper but giving that extra performance for "high-end" games, as that was the only complaint on GhostPepper

    Ketrel:

    Really battery efficient tweak but only for light usage, when comes to playing games and some heavy multitasking the battery drain will increase exponentially



    DOWNLOADS:



    ~ [AKT] Profiles ~

    Old profiles:


    Changelog:
    Code:
    27/10/16: Updated all the profiles. Applying the new discoveries about voltages and so on.
    02/11/16: Adding Project Zhana v3.0  
    15/11/16: Adding Project X.A.N.A v3.1 | Updating to Project Zhana to version 3.1 
    10/12/16: Project Zhana & X.A.N.A v3.3
    02/01/17: [A·K·T] + Project Zhana & X.A.N.A v4.0 + EOL Profiles
    22/01/17: [A·K·T]  v1.2 + Project Zhana & X.A.N.A v4.2
    96
    Project Zhana & X.A.N.A v4.3


    Well guys, finally, after tons of test and tweaking I come out with Project Zhana in his version 3.0
    I hope you guys find it smooth and battery efficient as it's the main goal. Keep in mind that I might release some hotfixes
    and other little optimizations since it has only been tested among few people over the Official Slack Channel
    With all this been said, let's get into the tweak!!

    Update!! So after some weeks months of testing and coding scripts I'm glad to present Project X.A.N.A!!
    (and Project Zhana v3.1 v4.2)
    Errr what? Project X.A.N.A is the twin sister of Project Zhana but more optimized in terms of battery.
    Therefore:
    · Project Zhana = Balanced
    · Project X.A.N.A = Battery *yes, even more than FairPark*

    Strategy:
    Project Zhana & X.A.N.A was made for trying to be as efficient as possible without compromising the performance.
    Thanks to the discovery on Voltages used by our SD820 I could make a profile that utilizes more the BIG cluster.
    My first attempt was to move ALL the load to the BIG cluster, it was against anything that I have learned
    about little.BIG CPU but I tried, it turned really good at first, low usage was just amazing...
    But on more usage things didn't go that good.
    So what I did it was to give a twist to things, but not such twist.
    It kind of works like Nameless and Shotgun, @Mostafa Wael and I worked the same idea.
    #LITTLE cluster will be running on low-mid frequencies but delivers full performance when is needed.
    # BIG Cluster will help LITTLE ease Load, but in a great way than before.
    Things can be done faster and more efficient giving us profit in form of battery.
    It should run smooth on all scenarios, but you guys tell me.
    In addition the script will detect whether you're overclocked and your ROM for applying the right values
    You can easily get around 7~9 hours SOT for 24 hours even more If you don't play game
    This will, of course, may vary, but it will definitely be better.

    Update!! The strategy behind Project X.A.N.A is the same as Project Zhana, so all said above gets applied too.
    The main feature of Project X.A.N.A is the HMP Tweaks, this time we not only take advantage of them
    but also we modify them for "correcting" the BIG cluster utilization and therefore making the whole tweak much more efficient.
    Expect even more SOT


    ==================================================================================================================​



    Disclaimer: This was build on RR (CM based ROM) using EX Kernel and test on a variety on different ROMs and Kernels.
    None of my testers complaint about stutters or lags, but there is always a first time

    Changelogs:
    Old changes:
    **Release of version 3.0**
    #Too many changes for them to be said.
    #But for the following version I'll give you guys the changelog

    **Update to version 3.1 | Zhana **
    #Updating target_loads values for a better escalation. This will also help to avoid certain inefficient freq ( I'm talking about you 1036MHz )
    #Updating above_hispeed_delay so the CPU thinks twice are bumping into high-freq when is not needed
    #Some corrections on typos
    #Removing Sleepers

    **Release of Project X.A.N.A**
    #HMP Usage

    **Update to Project Zhana & X.A.N.A v3.1.1**
    #Minor bug fixed (Noop not getting applied)
    #Adding init.d support, so you guys just have to apply the profile and forget about everything

    **Update to Project Zhana & X.A.N.A v3.2**
    #BUG Fixing
    #Android Nougat support


    **Update to Project Zhana & X.A.N.A v3.3**
    # Few changes over target_loads
    # Modifications over HMP values. Providing more performance and possibly more battery
    # Improved performance and battery.
    # BUG Fixes:
    · I/O Settings
    · Typos
    # Disable Adaptive LMK
    # 2 new options:
    · Disable Tweaks
    · Delete Tweaks
    **Update to Project Zhana & X.A.N.A v4.0**

    HUGE UPDATE!!!

    #Now Project Zhana used custom HMP values for giving more performance and battery
    #Slightly reworked target_loads
    #Ditching on go_hispeed_onload for BIG cluster too
    #Rework on HMP values
    #Adjust the profiles for the increment of load found on Nougat
    Changes over almost every tuneable​
    #Some changes for the I/O settings, LMK
    #Now using msm-adreno-tz as GPU governor for better performance and battery life

    #Fixed all BUGs from the previous version
    #Rework on how I/O settings get applied, so no matter you are encrypted or decrypted, using OBs or CM build, they will get applied
    Huge thanks to @Senthil360 for that​


    **Update to Project Zhana & X.A.N.A v4.2**

    #Touches on target_loads @ high frequencies
    #Rework on HMP values on X.A.N.A (I ****ed up and BIG cluster was getting too much load for no reason)
    #Keep adjusting for the load increase on N
    Changes over almost every tuneable
    #Some changes for the I/O settings, LMK
    Now back at 512Kb read-ahead

    #Fixed all BUGs from the previous version
    #Now supporting su.d
    #Changing the ROM detection from CM to Lineage OS

    **Update to Project Zhana & X.A.N.A v4.4**

    #Now the X.A.N.A. and Zhana are less similar
    #Zhana will be more balanced and X.A.N.A. more battery efficient
    #Changes over target_loads and pretty much all tuneables
    #Some corrections for OP3T
    #Skiping 1036 Mhz as is not efficient
    #Adjusted loads distribution

    It won't be a HUGE change from the last version to this one, but I think you guys will find it better :D

    This update aims to Nougat, after all, we all going to end using Nougat
    If you are still on MM and you feel like version 3.3 works better, let me know. But all my testers say that 4.0 4.2 works much better ( battery and performance wise)

    And on Nougat there is no way 3.3 works better than 4.0-4.2 as I have personally tried a ****ing lot!


    What this tweak does??.

    Code:
    # Interactive governor tweaking, as usual. You shouldn't modify this values unless you know what you are doing
    # Input boost tweaking. The script detects If you are not using a CM-Based ROM an applied higher values, but you may modify this following the instructions from the OP.
    # Disable Touchboost and BCL
    # Enable Core Control and Disable MSM Thermal Throttling allowing for longer sustained performance
    # Tweaks for other various Settings. You may change all of them, but they are really optimized.
       · I/O Values
       · TCP Values
       · Memory
       [STRIKE]· Disable Sleepers[/STRIKE]
    # GPU Tweaking. You might change this If you suffer lag in games
    
    #HMP Values This will "correct" the BIG Cluster utilization and take full advantage of it


    INSTRUCTIONS!!
    This tweak DOES NOT EXKM profile as it's impossible for some tweaks to work using them.
    It used init.d script or BASH script It now uses a flashable zip file with init.d support
    Therefore it's install and execute like any other init.d or BASH script, If you don't know how to do it Google it
    Since I care about you I have made 2 videos on how to do it, you what people say "If a Picture is worth a thousand words, then a Video worth a Million"

    Update!! I have unified both profiles into a simple flashable .zip file, so everything is easier and cleaner!
    Also, it provides you with more options which are bound to satisfy your usage.

    · HOW TO INSTALL!!

    1. Download the tweak
    2. Enter into Recovery and flash the tweak
    3. Boot to system
    4. Open your terminal app and introduce:
      Code:
      su
      AKT
    5. Select Balanced or Battery section as Project Zhana & X.A.N.A will be found there
    6. Select the profile you prefer
    7. Done!

    Update!! Now the profile has init.d support. UPDATE! Now it also have su.d emulation
    This means that the profile WILL be applied after every boot (As long as you use a init.d emulator like KA) So you don't have to do anything extra, just apply and enjoy


    In case you want to use the previous version.
    This might come handy as well for know to apply the init.d profiles that come with the file The profiles will automatically apply to the init.d folder.


    • You may use only 1 of the method explained ahead, there is no need for using both of them.
    • Init.d can be applied on every boot by using apps as KA or Init.d enabler
      there is no way to applied the BASH on boot, but it only takes 10 seconds to execute it.

    Therefore, use the method you like the most.


    INIT.D SCRIPT:


    BASH SCRIPT:


    In case you cannot see the videos:
    INIT.D | BASH


    Keep in mind that I recorded this some time ago, so what is shown won't be exactly the same, but it's just so you guys get the concept.


    Explanation for each variant:
    • Project Zhana Balanced (Default): The Project Zhana that you know and love.
    • Project Zhana Battery: Same as above, but with lower Input boost values and some tweak on target_loads, above_hispeed_delay and GPU
    • Project X.A.N.A Battery (Default): This is default version of X.A.N.A
    • Project X.A.N.A Balanced: The same as above but with higher Input boost and some tweaks for I/O and GPU, for a better performance.
    • Project X.A.N.A Extrem Battery: If you are using this profile and you suffer lag don't even think on complaining since I won't listen. This is made for really light usage. No Input Boost, Battery saving I/O and GPU ...

    BEFORE YOU POST ANY COMPLAINS!!

    Make sure that all the settings have been properly applied, there is no longer a problem with resetting target_loads, but make sure that all have been applied.
    And then check this:
    MY DEVICE LAGS!!! WHY?!?!
    First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
    And yes, this can be fixed. We have a couple of ways of fixing it:
    • Try another tweak, for example;
      If you are using Project X.A.N.A Battery, try using Balanced option...
    • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
    • Our second tool for fixing lags is min_sample_time, my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
    Still having lag?
    • Get rid of unnecessary (background-)apps
    • Try a different IO-Scheduler
    • Try another profile

    My phone still uses too much battery
    • Make sure that you have disabled touchboost.
    • Set brightness to a lower level.
    • Use a dark / black theme
    • Don't play games all day
    • Try other tweak, for example;
      If you are using Project Zhana Balanced, try using Battery option...

    Here are some results that me and other tester have gotten:

    ivio34.png
    4h5x6f.png
    2ilbq81.png
    bfgdaa.png
    2cxg3o7.png
    zxpi89.png
    suzr6h.png


    New!!
    And here is a full cycle that I got.

    I need to give a little explanation on this.
    The cycle latest for 3 days with 5 hours SOT
    This was during a week of exams so I didn't have time to play with my phone.
    You WON'T achieve this just with the tweak, since it also involves a lot of Deep Sleep optimization, but for that screen, on time the profile will do miracles.
    This could have been even better, around 4 days or usage or maybe 7 hours SOT, since I lost 14% during the first night due to a failure on my WiFi, which caused huge wakelock during that time.
    During this test I was running BJRR 08/11 with EX Kernel 0.36, this doesn't mean that either of those is the best in terms of battery.
    The battery drain:
    · Light usage ~7%/h
    · Medium usage ~9%/h
    · Light Gaming (Clash Royale) ~12.5%/h
    · Heavy Gaming (I haven't test this for too much) ~ 15%/h
    Screenshots:


    New!!
    14 hours SOT!!