[Xiaomi Mi A1 Themes, Apps, and Mods] sikoo1996:
Hello People,

I tried a lot of ROMs , Custom kernels and always tried to get a good battery backup. Choosing ROM and custom kernel is completely depends upon our need and choice so I don't want to tell you which ROM or kernel provides you best back-up, but I will definitely help you in getting best battery through that particular ROM or kernel.

NOTE - I AM NOT RESPONSIBLE FOR ANYTHING WRONG HAPPENS WITH YOUR PHONE

Pre-requisites -

1 - Magisk installed

2- xposed framework installed(can be flashed from magisk downloads {SDK 27 for oreo 8.1} )

3- Apps needed -

Greenify (Xposed needed for few tweaks) https://play.google.com/store/apps/details?id=com.oasisfeng.greenify

Naptime https://play.google.com/store/apps/details?id=com.franco.doze

Amplify (Xposed needed) https://play.google.com/store/apps/details?id=com.ryansteckler.nlpunbounce

L speed https://play.google.com/store/apps/details?id=com.paget96.lspeed

EX kernel manager or Kernel auditor https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor

4- Patience;)

First of all goto settings> battery> right corner 3 dots > battery optimisation> try to optimise all specially google play services if your rom allows you to optimise [ NOTE - DO NOT OPTIMISE DOWNLOADS, IT WILL LEAD TO FC]

GREENIFY SETTINGS

After installing from playstore ,Activate greenify module in xposed installer app and reboot, then follow these settings-

1 - Goto greenify> settings > Aggressive doze > activate ( Activate notifications also, if you want to know for how much time the device has gone into doze mode)

2- Enable Wake-up Tracker > enable "advanced wake-up cut-off'

3- Enable automatic hibernation and quick action notification

4- Xposed based features > enable 'doze on the go' and 'wakeup time Coalescing' ( you can also enable "don't remove notifications")

5- now add apps to greenify by tapping on '+' add all the GCM( google cloud messaging ) apps and bulky apps and games such as facebook , PUBG etc

FEW APPS RUN BACKGROUND FREE AND DRAIN BATTERY SO THOSE APPS WHICH SAY THAT IT IS RUNNING IN BACKGROUND FREE, TAP ON THAT APP> BOTTOM RIGHT 3 DOT>ACTIVATE IGNORE BACKGROUND FREE.

FEW APPS STILL RUN IN BACKGROUND , ENABLE 'IGNORE WORKING STATE' FOR THEM.

NOTE- TAKE CARE OF APPS YOU WANT TO GET NOTIFICATIONS ALL THE TIME ,DO NOT ADD THEM!:p:p

NAPTIME

You just need to give permissions and enable 'Aggressive doze', 'Disable motion detection while charging' and 'disable aggresive doze while charging' (third one is optional)

If you want to add some apps in " Apps whitelist for sensor usage during doze" , you can add

AMPLIFY

Just activate the module from xposed , open and give all the permissions. IT AUTOMATICALLY SETS SOME DEFAULT SETTINGS .

L SPEED

give all the permissions > goto battery> enable "battery improvement" , "Doze optimization" , and "Aggressive doze

FEW MORE SETTINGS FOR SYSTEM STABILITY

goto main tweaks> enable 'kernel panic', 'improve scrolling' and ' liquid smooth UI'.

goto CPU tuner > enable CPU optimizer

goto LNET optimizer> enable "RIL tweaks", " NET TCP tweaks" , " net speed+" ,and Google DNS

goto I/O tweaks > enable I/O boost

Set FStrim on boot

EX kernel manager ( these options are not available in all the kernels, most of the kernels have it)

goto CPU > hotplugging - autosmp ,enable - wq_power_saving( AND SET IT ON BOOT BY TAPPING AT RIGHT SIDE)

NOTE - YOU CAN ALSO DO THESE SETTINGS IN KERNEL AUDITOR APP, WHICHEVER APP YOU PREFER!

I TESTED THESE SETTING ON - AOSIP + MOUN KERNEL :D

this is what I had done and got the best according to my usage , I will post the battery stats...

please let me know , if anything more we can do to increase back-up and post your experience and battery, you guys are getting

CREDITS : TO ALL THE APP DEVELOPERS WHICH I HAVE POSTED LINKS HERE , AND I HAVE NOT ATTACHED ANY APP HERE. DOWNLOAD ALL THE APPS FROM THE OFFICIAL LINKS AND HELP THE DEVELOPERS,THEY ARE REALLY DOING HARD-WORK FOR US.

Thanks:)