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

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



================================================== ================================================== ============== Well guys, finally, after tons of test and tweaking I come out within his version 3.0I hope you guys find it smooth and battery efficient as it's the main goal. Keep in mind that I might release some hotfixesand 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!!================================================== ================================================== ==============

Disclaimer:

**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 # Few changes over target_loads# Modifications over HMP values. Providing more performance and possibly more battery# Improved performance and battery.# BUG Fixes:Â· I/O SettingsTypos# Disable Adaptive LMK# 2 new options:Â· Disable TweaksÂ· Delete Tweaks#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#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

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

Changes over almost every tuneable

Now back at 512Kb read-ahead

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

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 · Disable Sleepers # 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!!

It used init.d script or BASH script

Update!!

Â· HOW TO INSTALL!!

Download the tweak Enter into Recovery and flash the tweak Boot to system Open your terminal app and introduce:

Code: su AKT Select Balanced or Battery section as Project Zhana & X.A.N.A will be found there Select the profile you prefer 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

This might come handy as well for know to apply the init.d profiles that come with the file



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. Therefore, use the method you like the most.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.

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

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

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.

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!!

Quote: Originally Posted by Asiier Originally Posted by 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...

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...



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



New!!

14 hours SOT!!



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 timeOld changes:#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#Some changes for the I/O settings, LMK#Fixed all BUGs from the previous version#Now supporting su.d#Changing the ROM detection from CM to Lineage OS#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 distributionIt won't be a HUGE change from the last version to this one, but I think you guys will find it betterThis tweakEXKM profile as it's impossible for some tweaks to work using them.It now uses a flashable zip file with init.d supportTherefore it's install and execute like any other init.d or BASH script, If you don't know how to do it Google itSince I care about you I have made 2 videos on how to do it, you what people sayI 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.In case you want to use the previous version.The profiles will automatically apply to the init.d folder.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:I need to give a little explanation on this.The cycle latest forwithThis was during a week of exams so I didn't have time to play with my phone.Youachieve this just with the tweak, since it also involves a lot of, 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%/hScreenshots: