[OnePlus 3 Guides, News, & Discussion] Asiier:
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, [MENTION=5060769]Mostafa Wael[/MENTION] 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 [MENTION=6773050]Senthil360[/MENTION] 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??.

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

Download the tweak

Enter into Recovery and flash the tweak

Boot to system

Open your terminal app and introduce:

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

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:​

[YOUTUBE]CHK_CLZzB4A[/YOUTUBE]

BASH SCRIPT:​

[YOUTUBE]Bk2hwtdawXA[/YOUTUBE]

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:

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

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:

Full cycle album

New!! 14 hours SOT!!

DOWNLOADS:

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

Old versions:

Project Zhana & X.A.N.A zip

FLASHABLE ZIPs

INIT.D SCRIPT

BASH SCRIPT