[UPDATE 4.0] Xiaomi.EU Redmi Note 4 ROM Multi Tasking Fix and Battery Improvements - Xiaomi Redmi Note 4 Guides, News, & Discussion

DISCLAIMER: DO ALL OF THIS AT YOUR OWN RISK. IT WORKED FOR ME AND I CAN'T GUARANTEE THAT IT'LL WORK FOR YOU ETC, SO DO NECESSARY THINGS LIKE TWRP BACKUPS OR SOMETHING LOL GOOD LUCK
USAGE SCREENSHOTS/STATS:
https://forum.xda-developers.com/showpost.php?p=70915389&postcount=37
https://forum.xda-developers.com/showpost.php?p=70915456&postcount=39
https://forum.xda-developers.com/showpost.php?p=70915425&postcount=38
UPDATE 3.0 (A) RAM FIX MULTITASKING
SIMPLER METHOD (ROOT)
ZRAM increase and fixes
1. Using a file manager, go to system/etc/ and rename mcd_default.conf to mcd_default.conf.bak
2. Download this file and place it in system/etc
3. Reboot
4. Go to developer options and go to memory optimizations and set to HIGH
5. Reboot.
6. Install kernel audiotor and go to LMK and change the values to medium. Remember to set on boot.
7. Reboot.
UPDATE 3.0 (B) BATTERY LIFE IMPROVEMENT
SIMPLER METHOD (ROOT)
Changed the values to less aggressive ones. Minimal battery life improvement but it it better than nothing in my opinion.
1. Go to system/etc and rename perfservscntbl.txt to perfservscntbl.txt.bak
2. Download this and place in system/etc
3. Reboot
UPDATE 3.0 (C) PERFORMANCE IMPROVEMENT
SIMPLER METHOD (ROOT)
These are some cherrypicks from android 7.1.1
1. Make sure you are rooted
2. Go to su/su.d and place this file in that folder
3. Give the file 0755 permission as shown below
X X X
X -- X
X -- X
4. Reboot.
As per usual all of these require root and please do backups in case anything goes wrong. I suggest using FX file manager to do these tweaks.
USAGE SCREENSHOTS/STATS:
https://forum.xda-developers.com/showpost.php?p=70915389&postcount=37
https://forum.xda-developers.com/showpost.php?p=70915456&postcount=39
https://forum.xda-developers.com/showpost.php?p=70915425&postcount=38
OLD METHOD BELOW
FOR MULTITASKING, THERE ARE 2 PARTS; PART (A) TO ACTUALLY FIX ZRAM AND PART (B) TO ACTUALLY ENABLE ZRAM. XIAOMI FOR SOME REASON THOUGHT THAT OUR DEVICE DOESNT NEED ZRAM (IT NEEDS IT LOL)
PART 1 (A)- MULTITASKING
The Redmi Note 4, in my opinion, suffers a lot of RAM management issues. The symptoms are as follow;
- Constant reloading of app like instagram, chrome, facebook, and others when switching apps
- Constant reloading of apps whenever you switch to a system app like phone, camera, messaging (background apps get killed when you launch system apps)
Things I have I tried to remedy the issue/problem
- Lock app
- Change memory optimization settings in developer options
NONE OF THEM WORKED. I got so frustrated because this device has like 3GB of RAM which should eliminate problems concerning apps getting killed.
So I went out and did my own research and found out that MIUI controls ram management via a service called 'mcd' and this service depends on a file called 'mcd_default.conf' in system/etc. Naturally what I did was tinker around with the contents of the file and edited it using trial and error. Each time I tested, I would launch 10-12 apps that included Chrome, Spotify, Instagram, Twitter, Color-Note, Phone, Messaging, Gallery, Google Photos and others. (YES 10 TO 12 APPS)
Yes, ladies and gentleman. 3GB of ram should be able to handle all those apps without reloading every single one of them.
Finally, after tinkering around with some values I think I cracked the code/solution to the problem by editing some lines. The lines I edited affect how zram works on our device and I think I fixed it. The file I edited is attached below.
HOW TO USE THE FILE
I TESTED THIS ON THE LATEST XIAOMI.EU ROM which can be found here. TEST IT OUT ON OTHER ROMS AT YOUR OWN RISK. FU** STOCK MIUI ROM.
XIAOMI.EU ROM LINK
1. Make sure you are rooted and you have the latest busybox installed (its on the playstore)
2. Download the file attached HERE IS THE FILE
3. Browse to system/etc using your root file manager of choice (I prefer fx file manager)
4. Backup the existing mcd_default.conf bye renaming it to mcd_default.conf.bak
5. Place the file I attached in system/etc
6. Reboot
7. Go to developer settings and set memory optimization to LOW and reboot
8. Test out multitasking for yourself
PART 1 (B)- MULTITASKING
1. Install Kernel audiotor
2. Open, give it root permission
3. Swipe from left and go to init.d
4. Press the + button and enter name ZRAM
5. Enter these values
echo 1073741824 > /sys/block/zram0/disksize
/system/xbin/mkswap /dev/block/zram0
/system/xbin/swapon /dev/block/zram0
echo 100 (you can choose between 100 to 0. higher number better zram usage) > /proc/sys/vm/swappiness
6. Save and enable set on boot
7. Reboot and test out multitasking
8. Open Kernel Audiotor and change LMK values to medium. Set on boot and reboot.
Important things to know
- It's normal for background apps to close when you use camera because the camera app uses a lot of RAM and resources to process images ESPECIALLY if you use burst mode (hold shutter button)
SO FAR MY EXPERIENCE
- Improved multitasking
- No other problem like fingerprint sensor not working bla bla bla
PART 2 - BATTERY LIFE IMPROVEMENTS
I noticed that the helio x20 is quite the power hungry chip so I dug around XDA MIUI devices forums for other devices and found out that Xiaomi MIUI roms use a service called 'perfservice' to control the CPU and can sometime be a hit and miss, so I did something;
DISABLE PERFSERVICE and MY BATTERY LIFE HAS IMPROVED DRAMATICALLY. IM TALKING REDMI NOTE 3 SNAPDRAGON LEVELS. 7 HOURS SCREEN ON TIME, 20 HOURS STANDBY.
What happens when perfservice is disabled is the cpu is controlled by MTK's cpu manager (not sure what it is called) and uses the stock interactive governer (which is good).
HOW TO DISABLE/IMPROVE BATTERY
1. Make sure you are rooted
2. use your root file explorer of choice (I prefer fx file manager)
3. go to /system and backup build.prop by copying and pasting it somewhere else
4. edit build.prop and find the line ro.mtk_perfservice_support=1 and change it to ro.mtk_perfservice_support=0 and save file
5. go to /system/etC and find a file named perfservapplist.txt and rename it to perfservapplist.txt.bak
6. go to /system/etc and find a file named perfservscntbl.txt and rename it to perfservscntbl.txt.bak
7. Reboot and test out the result yourself
I hope this helps any of you in any way.
I now LOVE my phone but it's a pity that Xiaomi doesn't want to fix problems like these. Maybe they don't consider these problems as actual problems. We'll never know tbh.
SPECIAL THANKS TO THIS THREAD AND ITS OWNER
http://forum.xda-developers.com/redmi-note-2/development/b-skinny-pro-t3347906
BECAUSE IT TAUGHT ME A LOT ABOUT HOW XIAOMI ROM WORKS TO MANAGE OUR RAM AND CPU

Thanks for this, really great work. Definitely interested in trying the battery improvement as it had gotten better since I used the 4G fix, but still could be a bit better. Is there any way these could be made into flashable zips? I have TWRP but not using root. Thanks again.
Sent from my Redmi Note 4 using Tapatalk

gsmyth said:
Thanks for this, really great work. Definitely interested in trying the battery improvement as it had gotten better since I used the 4G fix, but still could be a bit better. Is there any way these could be made into flashable zips? I have TWRP but not using root. Thanks again.
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
Twrp has a file manager within the recovery. You can rename, move, and, copy files with it. You can try it out

asusm930 said:
Twrp has a file manager within the recovery. You can rename, move, and, copy files with it. You can try it out
Click to expand...
Click to collapse
Wow didn't know that! Must take a look.
Sent from my Redmi Note 4 using Tapatalk

gsmyth said:
Wow didn't know that! Must take a look.
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
Its under 'advanced' but before that mount system using the 'mount' option
As for editing the build.prop file, copy it to your phone and then edit the copy, after that replace the original build.prop with the edited one using twrp's file manager

asusm930 said:
Its under 'advanced' but before that mount system using the 'mount' option
Click to expand...
Click to collapse
Ah thanks, forgot to mount and couldn't see the build prop file, will try again later.
Sent from my Redmi Note 4 using Tapatalk

Maybe we can make a flashable zip with AnyKernel 2 like CosmicDan does here http://forum.xda-developers.com/redmi-note-4/development/tweaks-cosmictweaks-v2016-11-26-t3507291

prismk said:
Maybe we can make a flashable zip with AnyKernel 2 like CosmicDan does here http://forum.xda-developers.com/redmi-note-4/development/tweaks-cosmictweaks-v2016-11-26-t3507291
Click to expand...
Click to collapse
I prefer having people doing it manually so that people know what they're doing and know what files to backup and so on

asusm930 said:
DISCLAIMER: DO ALL OF THIS AT YOUR OWN RISK. IT WORKED FOR ME AND I CAN'T GUARANTEE THAT IT'LL WORK FOR YOU ETC, SO DO NECESSARY THINGS LIKE TWRP BACKUPS OR SOMETHING LOL GOOD LUCK
PART 1 (A)- MULTITASKING
The Redmi Note 4, in my opinion, suffers a lot of RAM management issues. The symptoms are as follow;
- Constant reloading of app like instagram, chrome, facebook, and others when switching apps
- Constant reloading of apps whenever you switch to a system app like phone, camera, messaging (background apps get killed when you launch system apps)
Things I have I tried to remedy the issue/problem
- Lock app
- Change memory optimization settings in developer options
NONE OF THEM WORKED. I got so frustrated because this device has like 3GB of RAM which should eliminate problems concerning apps getting killed.
So I went out and did my own research and found out that MIUI controls ram management via a service called 'mcd' and this service depends on a file called 'mcd_default.conf' in system/etc. Naturally what I did was tinker around with the contents of the file and edited it using trial and error. Each time I tested, I would launch 10-12 apps that included Chrome, Spotify, Instagram, Twitter, Color-Note, Phone, Messaging, Gallery, Google Photos and others. (YES 10 TO 12 APPS)
Yes, ladies and gentleman. 3GB of ram should be able to handle all those apps without reloading every single one of them.
Finally, after tinkering around with some values I think I cracked the code/solution to the problem by editing some lines. The lines I edited affect how zram works on our device and I think I fixed it. The file I edited is attached below.
HOW TO USE THE FILE
I TESTED THIS ON THE LATEST XIAOMI.EU ROM which can be found here. TEST IT OUT ON OTHER ROMS AT YOUR OWN RISK. FU** STOCK MIUI ROM.
XIAOMI.EU ROM LINK
1. Make sure you are rooted
2. Download the file attached HERE IS THE FILE
3. Browse to system/etc using your root file manager of choice (I prefer fx file manager)
4. Backup the existing mcd_default.conf bye renaming it to mcd_default.conf.bak
5. Place the file I attached in system/etc
6. Reboot
7. Go to developer settings and set memory optimization to LOW and reboot
8. Test out multitasking for yourself
PART 1 (B)- MULTITASKING
1. Install Kernel audiotor
2. Open, give it root permission
3. Swipe from left and go to init.d
4. Press the + button and enter name ZRAM
5. Enter these values
echo 1073741824 > /sys/block/zram0/disksize
/system/xbin/mkswap /dev/block/zram0
/system/xbin/swapon /dev/block/zram0
echo 0 > /proc/sys/vm/swappiness
6. Save and enable set on boot
7. Reboot and test out multitasking
Important things to know
- It's normal for background apps to close when you use camera because the camera app uses a lot of RAM and resources to process images ESPECIALLY if you use burst mode (hold shutter button)
SO FAR MY EXPERIENCE
- Improved multitasking
- No other problem like fingerprint sensor not working bla bla bla
PART 2 - BATTERY LIFE IMPROVEMENTS
I noticed that the helio x20 is quite the power hungry chip so I dug around XDA MIUI devices forums for other devices and found out that Xiaomi MIUI roms use a service called 'perfservice' to control the CPU and can sometime be a hit and miss, so I did something;
DISABLE PERFSERVICE and MY BATTERY LIFE HAS IMPROVED DRAMATICALLY. IM TALKING REDMI NOTE 3 SNAPDRAGON LEVELS. 7 HOURS SCREEN ON TIME, 20 HOURS STANDBY.
What happens when perfservice is disabled is the cpu is controlled by MTK's cpu manager (not sure what it is called) and uses the stock interactive governer (which is good).
HOW TO DISABLE/IMPROVE BATTERY
1. Make sure you are rooted
2. use your root file explorer of choice (I prefer fx file manager)
3. go to /system and backup build.prop by copying and pasting it somewhere else
4. edit build.prop and find the line ro.mtk_perfservice_support=1 and change it to ro.mtk_perfservice_support=0 and save file
5. go to /system/etC and find a file named perfservapplist.txt and rename it to perfservapplist.txt.bak
6. go to /system/etc and find a file named perfservscntbl.txt and rename it to perfservscntbl.txt.bak
7. Reboot and test out the result yourself
I hope this helps any of you in any way.
I now LOVE my phone but it's a pity that Xiaomi doesn't want to fix problems like these. Maybe they don't consider these problems as actual problems. We'll never know tbh.
SPECIAL THANKS TO THIS THREAD AND ITS OWNER
http://forum.xda-developers.com/redmi-note-2/development/b-skinny-pro-t3347906
BECAUSE IT TAUGHT ME A LOT ABOUT HOW XIAOMI ROM WORKS TO MANAGE OUR RAM AND CPU
Click to expand...
Click to collapse
Really interesting post. I've been frustrated with processes getting killed for no apparent reason but I'm a little dubious about the mods. Are you able to post a before and after video or something showing the improvements?
Also, how does disabling perfservice affect performance?

spr33 said:
Really interesting post. I've been frustrated with processes getting killed for no apparent reason but I'm a little dubious about the mods. Are you able to post a before and after video or something showing the improvements?
Also, how does disabling perfservice affect performance?
Click to expand...
Click to collapse
I can't post videos but I can personally that multitasking is way better now.
disabling perfservice does not affect performance at all. Its still snappy as ever

asusm930 said:
I can't post videos but I can personally that multitasking is way better now.
disabling perfservice does not affect performance at all. Its still snappy as ever
Click to expand...
Click to collapse
I don't know why but I got the standby problem when WIFI is ON (I tried everything, turn off location, scanning). Here is what I have tested CAREFULLY:
1> WIFI ON , SCREEN OFF
Drain 1.5-2.5%/ hour
2> WIFI OFF, MOBILE DATA ON, SCREEN OFF
Drain 1%/ 90 minutes or even a bit more
3> WIFI OFF, MOBILE DATA OFF, SCREEN OFF
Drain 1%/ 3-4 hours or even a bit more
It's really weird when WIFI drains MUCH MORE battery than mobile data, even the deep sleep rate is still 89% - 90% when WIFI is ON.
Do you have any idea how to fix this?

phamhuytung192 said:
I don't know why but I got the standby problem when WIFI is ON (I tried everything, turn off location, scanning). Here is what I have tested CAREFULLY:
1> WIFI ON , SCREEN OFF
Drain 1.5-2.5%/ hour
2> WIFI OFF, MOBILE DATA ON, SCREEN OFF
Drain 1%/ 90 minutes or even a bit more
3> WIFI OFF, MOBILE DATA OFF, SCREEN OFF
Drain 1%/ 3-4 hours or even a bit more
It's really weird when WIFI drains MUCH MORE battery than mobile data, even the deep sleep rate is still 89% - 90% when WIFI is ON.
Do you have any idea how to fix this?
Click to expand...
Click to collapse
my last bet is going to Additional settings > Privacy > Location > Google Location History > and turn it off for every account
I also have sync on WLAN only too in sync settings if that helps

asusm930 said:
my last bet is going to Additional settings > Privacy > Location > Google Location History > and turn it off for every account
I also have sync on WLAN only too in sync settings if that helps
Click to expand...
Click to collapse
I already tried all of this, nothing change , I think the problem is because of Mediatek wifi chipset. Do you have the same problem?

phamhuytung192 said:
I already tried all of this, nothing change , I think the problem is because of Mediatek wifi chipset. Do you have the same problem?
Click to expand...
Click to collapse
I dont think so. I lose like 2% like after 6 hours. I do have both wifi and data turned on though (by turned on i mean the toggles are switched on but in actuality when wifi is on, android turns off data even though the toggle shows that its on up until wifi signal is gone)

asusm930 said:
I dont think so. I lose like 2% like after 6 hours. I do have both wifi and data turned on though (by turned on i mean the toggles are switched on but in actuality when wifi is on, android turns off data even though the toggle shows that its on up until wifi signal is gone)
Click to expand...
Click to collapse
Do you have any apps in background? I usually have Messenger + Chrome in background with 2 SIM. How many SIM are you using and in which sim slot (If only 1 sim)?

phamhuytung192 said:
Do you have any apps in background? I usually have Messenger + Chrome in background with 2 SIM. How many SIM are you using and in which sim slot (If only 1 sim)?
Click to expand...
Click to collapse
I have 1 sim (in slot 1) and an SDcard.
Try installing Link2SD and disable "Battery Saver" and MiCloud, MiCloudBackup, Cleaner, Metok, LocationEM2, MiDrive, MiDrop, Music, Search, Video, Wallpaper Carousel AND Browser. These are the apps I have disabled.

asusm930 said:
I have 1 sim (in slot 1) and an SDcard.
Try installing Link2SD and disable "Battery Saver" and MiCloud, MiCloudBackup, Cleaner, Metok, LocationEM2, MiDrive, MiDrop, Music, Search, Video, Wallpaper Carousel AND Browser. These are the apps I have disabled.
Click to expand...
Click to collapse
Yes I tried 1 SIM card with an SD Card before, the standby on WIFI was much better, really don't understand why. Can you tried to test WIFI standby with 2 SIM online?

phamhuytung192 said:
Yes I tried 1 SIM card with an SD Card before, the standby on WIFI was much better, really don't understand why. Can you tried to test WIFI standby with 2 SIM online?
Click to expand...
Click to collapse
I think I read somewhere that someone else was having this problem. It could be the culprit (having 2 sims).
Unfortunately, I don't have another sim that i can use to confirm this bug, but I'm very sure that I've read other people mentioning this problem too (2 sims draining battery)

asusm930 said:
I think I read somewhere that someone else was having this problem. It could be the culprit (having 2 sims).
Unfortunately, I don't have another sim that i can use to confirm this bug, but I'm very sure that I've read other people mentioning this problem too (2 sims draining battery)
Click to expand...
Click to collapse
I will try again, someone said that it is because of the wifi router, I tried this afternoon to use my laptop as WIFI hotspot and also DISABLE all the apps like you said, it drains only 2-3% / 6 hours .

asusm930 said:
I think I read somewhere that someone else was having this problem. It could be the culprit (having 2 sims).
Unfortunately, I don't have another sim that i can use to confirm this bug, but I'm very sure that I've read other people mentioning this problem too (2 sims draining battery)
Click to expand...
Click to collapse
I tried yesterday and it is because of the WIFI Router, also in WIFI Advanced Setting I changed the option "Keep WIFI on during sleep" to "Never", the battery is really much better and WIFI is even not turn off during sleep, I can still receive calls from Facebook as well as messages. I think this is definitely an error.

Related

The Tweak Thread (Advanced Eris Stuff) minor update 10/30/10

Hey all i created this thread for ADVANCED users (and some newbies lol) so that i can better help users tweak and improve performance on their eris. My inbox was getting crazy so i thought this would be better i will still take pm questions but it would be better if we can all learn here. This isn't really a place to report bugs as it would be better to contact your respective developer or post in that developers thread. I will try my very best to get the best performance out of your eris and hopefully we will have some fun along the way. So hopefully this can help take some of the load off of the developers threads and reduce noob-age.
I ONLY ASK THAT IF USERS WANT TO TWEAK I STRONGLY RECOMMEND THAT YOU EITHER..........
1) PURCHASE ROOT EXPLORER FROM THE MARKET OR THE FREE ESTRONGS FILE EXPLORER APP FROM THE MARKET WHICH ALSO ALLOWS ROOT ACCESS AS WELL.... BUT I THINK ROOT EXPLORER IS BETTER IMHO.
2) HAVE ADB SET UP FOR YOURSELVES AT HOME OR KNOWLEDGEABLE OF ADB. I WILL NOT HELP YOU SET UP ADB OR THE SDK
ALSO I RECOMEND PURCHING THE FULL VERSION OF TITANIUM BACKUP AS IT IS AN INVALUABLE TOOL FOR ROOTED USERS AND MAKES BACKING UP AND TWEAKING MUCH EASIER FOR NEWBIES PLUS IT HAS SOME REALLY AWSOME FEATURES
so hopefully this will give us fun things to do in between releases from our devs. And always remember to donate to these awesome awesome eris devs for their hard work and commitment to us.
i want to keep an open discussion thread, nothing is off the table.
kernels
kitchens
cooking
roms
tweaks
hacks
apps
fixes
workarounds
you name it lets talk
lets figure it out together while learning along the way
Things are always changing so if you see any errors or things that need to be updated please let me know and i will be more than happy to get the correct information posted.
Moving apks and deleting dulicates...make your system efficient
YOU need either rootexplorer OR be ADB inclined to do the following....
i was thinking while doing some root exploring of ways to make this rom more solid and here are a few tips i thought everyone could use.
IF YOU DONT HAVE DUPLICATES DONT KILL YOURSELF SEARCHING JUST CONSIDER YOURSELF LUCKY. AND YOU DONT NEED THIS POST
FIRST
when i flash a Rom i always do my set up. here is an overview of what i do when i flash........
-i flash the Rom
-then i login to google as normal so i can receive Titanium Backup (TB) and Root Explorer (RE) from the market updates
if someone could be kind enough to give us a sample command to use terminal to install apps from the sd would be a great shortcut for us
-move those two apps from data/app to system/app
-then i do a full wipe (huh a full wipe you say....system files are never wiped....they can only be flashed over, so TB and RE will still be there)
-clean nand (so if you get crazy and screw up you can easily start over)
-Rom surgery
-Restore
-login to google last and sync
-batt tweaks and extras
this process IMHO makes your rom way more efficient than flashing, login and syncing.
OK
first thing i do when i flash a rom is to remove junk
i navigate with either explorer to system/app folder
then i remove all the useless apps i dont use, need or want
AND/OR remove the "ONE USE" apps (like setupwizard.apk only need it once or none at all if your a pro )
this reduces the ROMs footprint making it smaller
the smaller the Rom the better the faster
here are some things i like to rip out of system/app folder....
ADWLauncher.apk (make sure you have another launcher first i use lanucher pro)
Mail.apk (i use gmail)
Twitter.apk (i currently dont tweet)
ProTips.apk
HtcCalibrate.apk (after i calibrate of course)
Launcher2.apk(why have a bunch of other launchers you dont use hogging memory get rid of them)
MagicSmokeWallpapers.apk (this dont work for me but other do)
Carhomegoogle.apk ONLY
etc. there are others you can remove as well depending on you
and we will experiment to find more......
NEXT
i like to move IMPORTANT apks or apps from the data/app folder to the system/app folder epically if your Rom dev has not updated the gapps lately or you cant get access to the latest gapps.zip.
if you do not then you will end up with a lot of duplicate apps installed in your system when ever you receive a gapps update and that wastes memory and will cause memory issues in the future and it screws with autokiller
i like to move my favorite launcher (launcher pro paid) to the same place where launchers go, in the system/app folder (why have your launcher where regular apps go and get killed by autokiller) i think this is better for the system and doesn't hog your app data space plus it adds stability to your launcher.
here are some things i like to move into system/app.....
i like move into system/app are
launchers (stabilze launcher)
keyboards (should speed up keyboard strokes)
root tools and IMPORTANT apps (R.E. T.B.)
security apps (never deleted or wiped in case of theft, hoping thief is not nerdy)
any of the latest gapps update
and some others
this way if any issue occurs wipe and restore is easy as pie
IMPORTANT: APPS IN THE SYSTEM FOLDERS DO NOT GET WIPED OR DELETED DURING A FACTORY DATA WIPE OR DALVIK WIPE.....THEY CAN ONLY BE FLASHED OVER BY A ROM(OVERWRITTEN)
APPS IN THE DATA FOLDERS WILL GET DELETED DURING A FACTORY WIPE......BUT NOT DALVIK
i know we are ALL have at least one pair of identical (double apks in the system)
-but the identical apks have different names
-on is in data/app the other is in system/app
if you have updated ANY google app then chances are that you may have some double apps on your system wasting. when we update these google apks 'think' the rom comes with the apk already and is stored in the protected system/app folder WHILE the actual update is stored in the data/app folder (or where regular apps go) under a different name
EXAMPLE
google maps
-MAPS.apk ........is stored system/app
-com.google.android.app.map-1.apk........is stored in the data/app (this is the latest update of google maps and should replace the older MAPS.apk in system/app)
-these are the SAME APKs
hmmm so think gmaps is 5-6 megs in size and you have 2 of them so thats like 10-12 megs in your system, get rid of the old one.
there are two thing you can do here with two different benefits
-you can either remove the copy from either the data OR system folders depending on what you prefer.
if you remove the old app from system/app that means easier updates with now file moving BUT less app storage
OR move from data/app to system/app which means less FCs, more other app memory, and dealing with future updates and moving each app.
i like to move the new apks to the system/app where they belong
unstable Launcher PRO
my launcher was very unstable for a while wasn't a big deal for me
soo i decided to move my launcher to the system/app folder like all the other launchers....
I think the instability of that launcher was because of AUTOKILLER thinking this is just a regular app in data/app which it was at the moment. i may be wrong but autokiller doesnt kill system apps. so i move my launcher there and guess what now my launcher is much better and faster and stable beacuse you now have lots more memory.
SPEED TIP: in spare parts speed up your transition and animation windows to FAST
MOVING APPS ADVANCED SHORTCUT
i finally figure out a great short cut for moving apps
-first rename and put your favorite file manager (ROOT EXPLO) onto the sd.
to be even faster rename and put your launcher and TB on there too.
-after flashing a rom bypass the setup (touch the android screen) to home screen.
-open terminal
-type
SU
cd sdcard
busybox install yourapp.apk /data/app
-now you have the file explorer ready to go
instead of trying to restore wipe restore.
and hopefully you know what to do next.
so to summarize...
-get rid of junk you dont use and free up that memory
-move apps to the proper locations in system/app AND/OR data/app
-make sure you dont have multiple google apps using different names
"MAPS.apk" and "com.google.android.app.map-1.apk" IS THE SAME APP IN DIFFERENT LOCATIONS. remove the old and put the new in system/app
make sure your main launcher is in system app so it doesn't keep getting killed by auto killer settings and reloading
Replace THESE apps = with THESE apps
system/app = data/app
Gmail.apk = com.google.android.apps.gm-1.apk
ChrometoPhone.apk = com.google.android.apps.chrometophone-1.apk
Maps.apk = com.google.android.apps.maps-1.apk
CarHomeGoogle.apk = com.google.android.carhome-1.apk
GoogleSearch.apk = com.google.android.googlequicksearchbox-1.apk
Googles.apk = com.google.android.appsunveil-1.apk
SuperUser.apk = com.noshufou.android.su-1.apk
AutoKiller = com.rs.autokiller-2.apk
TitaniumBackup = com.keramidas.TitaniumBackup-2.apk
Twittter = (forget)
Voice= com.google.android.apps.gv-1.apk i think
YouTube=
delete OLD in system/app = move NEW from data/app to system/app
YES i did all those with success more memory and speed and a massive increase in overall Rom stability
there may be more
BUT ALL THESE HAVE DUPLICATE APPS USING DIFFERENT NAMES stored in data/app and/or system/app WHEN the latest update should be system/app IMHO to prevent AUTOKILLER from always killing i believe autokiller will try to kill data apps first before system apps.
i still have my auto killer set at optimum and things work even better now
and i gained 25mb of system memory no more Force closes
Batt tweak custom set up process (a 1-2 day process to complete)
How to increase battery life
first off battery life depends on many factors.....
where you live, work, and the daily place you travel to.
im one of the lucky ones who has a cell tower down the street from me here in S. FL.
WARNING: IF you multitask alllllll day on your phone then this is not for you.This is more beneficial when your phone is at rest or in an idle state or screen off state.
Others may not be so lucky and may live in a bad signal area....which causes your phone to constantly search and listen for signals.
Also battery life could depend on the widgets you use or apps that you have active.
Example: Beautiful Widgets beautiful home is a constantly running app that also
-on occasion activates the GPS to acquire location
-on occasion downloads update weather data
Example: Facebook Widget
-by default update statuses every 15 minutes, so every 15 minutes its downloading data
so i usually adjust these settings to my personal liking
Now for the battery calibration process and how it works
Decad3nce port of Colins_ph batt tweak allows us to use some setcpu profiles without setcpu.
Setcpu and its widgets were resource monsters crippling our system and drain battery life as well. kiss setcpu goodbye we wont be needing it anymore.
the batt tweak calibration process takes some patience as the entire process could take 1-3 days to complete depending. Also i highly recommend using the latest CFS kernel by Conap as it provides extra battery savings
we will be running colins batt tweak during the calibration process so that both calibrate together, which makes a lot of sense as opposed to doning them separately.
here is the process and DS's custom settings for batt tweak 1 (the first release)
please remember to prepare yourself not to interrupt the process. the draining process may die while you are at work or during an emergency. so be prepared to have little use of your phone.
-flash latest CFS kernel found here
-flash batt tweak attached at the bottom of this post until its updated and fixed....more info in thread here
-turn off phone and let charge for a few hours or more to ensure that it is full
-when ready boot into recovery mode and wipe the batt stats and power off
-unplug phone and power on (charging cable not needed) you may experience weird battery levels or fast draining (this is normal)
-immediately open TERMINAL and activate colins_ batt tweak
with command batt-cfg and go to option 3 and input these settings........
I think this works much better
this schedueler keeps the cpu much lower
here if anyone want to try it out
underclock
ondemand
anticipatory
19200
710400
19200
710400
19200
710400 (ONLY IF YOU KNOW YOU CAN 768000)
90
15
15
15
- close terminal and operate phone normally if you want...i highly suggest leaving it alone as much as possible until it drains completely dead.
-use a cpu monitoring app just to make sure the cpu is idle i have seen mine dip down 80mhz if not then you need to kill active open apps
-let phone naturally drain completely until its dead (could take a full day or two mine was 48hrs with some usage)
-when dead make sure by pressing power rapidly a few times
-while off let phone recharge for as long as possible maybe four hours or more the mor the better
-when ready unplug phone and turn on
-when powered on reactivate batt tweak using terminal batt-cfg, then option 9 to save and your done (once setup all you need is option 9 to save and reactivate)
-wtf DS my phone is on but reads less than 100% battery. this is normal replug while on and let charge to full
- when full the process is now complete and you can use phone as normal
REMEMBER THAT SOME ROMS DO NOT ACTIVATE THE TWEAK AND YOU WILL NEED TO DO SO UNTIL YOUR DEV AS ADD THE SCRIPT TO ACTIVATE ON A REBOOT. SO UNTIL THEN OPTION 9 IN BATT TWEAK WILL DO THIS
use an app like system panel or seepu to look at cpu speeds make sure the cpu isnt running at 100%.
try to close apps if you see this but a reboot usually fixes this.
these settings allow for the cpu to use lower clock speeds when idle. much lower than the stock 245000 settings yes were going to the minimum 19200 with little to no side effects or slow downs, but the benefits are more when in a idle state. But it WILL drain at about same rate when your using it heavily.
make sure the tweak is running by either opening terminal and enter pidof batt.sh you should see the processing id number if its running.
OR for a full read out of stats do batt-diag
and observe the time in state read out at the bottom. if you see values next to the 19200 clock speeds........SUCCESS!
PS if you screen on time is 3 hours and your phone is dead, DONT BLAME THE BATT TWEAK....BLAME YOURSELF !
ENJOY
alright now lets get some real stuff in here....lol
jdog94 said:
alright now lets get some real stuff in here....lol
Click to expand...
Click to collapse
just trying to a make a nice neat place to put all my post on past tweaks for users and to do some advanced stuff in the future stay tuned
DS36 said:
just trying to a make a nice neat place to put all my post on past tweaks for users and to do some advanced stuff in the future stay tuned
Click to expand...
Click to collapse
good, i need this!
Great idea"!"!!
HAI! Hau do i route mai fone? I wantz haxorz warez an wireles heatherin fo free intanetz!
So seriously, is this a fan-club for DS? I'm totally in if it is.
sticktodrum said:
HAI! Hau do i route mai fone? I wantz haxorz warez an wireles heatherin fo free intanetz!
So seriously, is this a fan-club for DS? I'm totally in if it is.
Click to expand...
Click to collapse
LMAO can you please please be my threads personal comedian
Keep this thread development related or Ill move it to General, Is this a support thread or something? Something about tweaks?
Its all about me
Captainkrtek said:
Keep this thread development related or Ill move it to General, Is this a support thread or something? Something about tweaks?
Click to expand...
Click to collapse
this is a thread to help old and new users tweak and mod their phones and other advanced stuff
trying to put all the knowledgeable stuff in to one easy thread and it will be dev related
im just started this thread im not done i have lots to do here
my in box is getting a little crazy
this should benefit all and provides basic dev techniques and instruction
this is the beginning stages
plus should reduce the number of faqs for everyone
less fights
less arguments
and less captainrtek (but thats not a bad thing)
DS36 said:
this is a thread to help old and new users tweak and mod their phones and other advanced stuff
trying to put all the knowledgeable stuff in to one easy thread and it will be dev related
im just started this thread im not done i have lots to do here
my in box is getting a little crazy
this should benefit all and provides basic dev techniques and instruction
this is the beginning stages
plus should reduce the number of faqs for everyone
less fights
less arguments
and less captainrtek (but thats not a bad thing)
Click to expand...
Click to collapse
Haha gotcha, and thanks
Thanks in advance, DS.
roirraW "edor" ehT said:
Thanks in advance, DS.
Click to expand...
Click to collapse
Looking forward to working together with everyone learning along the way.
Will be post new batt tweak setting in the morn keep an eye out
Do not up date to the latest version of batt tweak it doesn't work.
Sent from my FroyoEris using XDA App
Brilliant.
sticktodrum said:
HAI! Hau do i route mai fone? I wantz haxorz warez an wireles heatherin fo free intanetz!
So seriously, is this a fan-club for DS? I'm totally in if it is.
Click to expand...
Click to collapse
Lol I haz cheez burger
Sent from my FroyoEris using XDA App
rick311 said:
good, i need this!
Click to expand...
Click to collapse
hey man are you ready
im going to post in the third POST what i have written down so far
but its NOT complete yet....so take a gander
DS36 said:
hey man are you ready
im going to post in the third POST what i have written down so far
but its NOT complete yet....so take a gander
Click to expand...
Click to collapse
ok, i did all the setting tweaks that you recommend. do i have to input them every time i reboot? i dont see a setting that restores my previous settings.
Hey DS,
Great idea to help newbs like me! So after reading your first two posts I looked where my apps are, and every one of them seems to be in system/app... I checked in data/ and can't see anything in there (unless it's sdcard/data, in which case I have folders for Beautiful Widgets and Titanium). I'm using the EStrongs FE, although I don't think that would make a difference. Also, couldn't find any of the duplicate apps you were talking about either (I only have com.google.android.apps.maps.apk, for example). I'm on xtrROM 4.6 and used Titanium Backup to restore my apps.

[Guide][Tweaks] The Complete Guide For Maximum Battery Life V2.1 - Updated 7.10.13

Last update: 7.10.13
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is the complete guide of how to handle your battery in the most efficient way possible.(GB/ICS/JB version).​
This guide refers to Android users in general (Samsung, HTC etc..) in addition to SGS2 users.
ROOT: Yes.
ROM: Any rom will do.
Kernel: Siyah/Dorimanx is preferred but any other will be fine.
Human features: Patience
After an extensive research regarding 'how Android OS works' and reading hundreds of pages (yes 1000 pages in 1 thread) in XDA regarding topics such as: BBS (BetterBatterStats), MagicConfig by geko95gek, Kernel Info, Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Configs by droidphile etc, I have come to conclusion that there is currently no better configuration than mine.
I almost don't have wakelocks, during the night (7 hours sleep) I have between 3-4% drain which is really good, of course, you can get better drain ,for example, 1 % during a whole night BUT users like that turn off their data connection OR switch to airplane mode, I really don't like doing that but of course you could do that too and enjoy your 1% drain.
Before I wrote this guide I tried these configurations in 5 different infinite sgs2 mobile phones of my friends and Nexus devices, they all were blown away from the results they experienced from their battery.
I wrote this guide because XDA users have helped me a lot in all the aspects of Android, so now I can help the XDA community too.
Last update:7/10/13
Step 2 updated with solutions on the go.
Step 3 is now LBE version 5 compatible.
Step 4 updated for Dorimanx users as well.
Faq Updated
Post #1​
Wakelocks: What is it ?
Monitoring the wakelocks
LBE security manager: internet permissions & prevent apps to be put in cached after a restart
ExTweaks/STweaks & governors - Siyah/Dorimanx kernel users ONLY!
Undervolting & Governors
Post #2​
Freezing google/Samsung apps using Titanium Backup Pro
Screen Brightness
Accounts & sync
Fast Dormacy - Should/Can I disable it ?
Battery calibration - Should I do it ?
Network/operator modem support - How to tell if your modem meet your network standards
Variance
Learning to read the battery graph
Post #3​FAQ
When you're done with the guide please do come back and share your results with us.
I'll try to simplify things as much as I can so the common user could understand.
Let's begin,
1. Wakelocks: What is it ?
When you develop an app in Android there are options for you (as a developer) to let the app start during a different time or a different change, sometimes it is really essential, for example our build in Alarm clock(Also: Widget/Music player), we need it to start the alarm in a specific time thus this process is important and it will open up by "it self".
Counter example is a simple game or a weather app, we only use it once in a while and after we use it we don't need the process anymore so we close it, but most of the time the developer add all sort of commands to start the process even when we don't use this exact process, for example if we boot the device/click on the media app button the app will go into cached processes (System settings->Applications->Running->Click on cached processes), but let's say it's an app we use once a week or a game we play once a week, there is no need to put this app in the cached processes (since it consumes the battery) so this is why we would like to close this option.
Notice – When you open an app and close it the process is still in the cached processes because if you open it again, it will open in a sec (since it's in the cached processes)and that’s a good and efficient thing, but if you close it from the cached processes you will only make things worse because when you open it AGAIN the Android OS will AGAIN, put the app in the cached processes and this is yet again will consume the battery.
How to tell if you can turn off or not in an app/game:
Basically the idea is this,
If we are talking about an app that the whole very existence is to do things by it self (Playing songs/Setting alarms/Auto-commands apps) then of course we won't turn anything off.
If we are talking about a type of apps that their whole process is to do something particularly which will take place only when we open the app (Bar-code scanner/Weather app/Shazam/Office apps/GPS apps/Games so of course we will turn everything off.
If we are talking about ROOT apps so I suggest not to touch anything.
First thing you will do is to download Gemini App Manager 2.6.0, this app will handle these wakelocks and as we already mentioned will give us full control over 'when to put/not to put the app in the cached processes/running services'.
DON'T UPDATE TO VERSION 2.7 - THE NEW VERSION HAS NO WORKING EXPERT MODE ! ! !
After you downloaded the app, open it,
Hit the option touch key (left to the home button) and go to 'Expert Mode', you will find there, all the applications your phone contains. What we are looking for is the orange icon the says 'AUTO' under each app:
once you find an app/game with this icon, think, and ask yourself "Do I need this app/game to open up by it self?" (See the examples with the clock app above).
If your answer is "NO!" (90% of the cases the answer is no-read above when the answer is YES), then press this app/game for about 2-3 seconds, a window will open and choose 'ConfigAutorun (root)'.
A new window will appear with all sort of commands: On package added, on app widget update, After boot etc, as you can tell the name of the command does what it says for example: 'On package added' -> if you added a package to the app, the app will be put in cached process.
Change to OFF all the commands:
and there you go, this app will never fool around!
2. Monitoring the wakelocks:
Download the app: BBS
BetterBatteryStats aka BBS: Why do I need this app ?
After you managed to finish step number 1, you can now install BBS on your system.
Once your done open it and choose partial wakelocks, we will focus on this section.
Charge your device to 100% and when it reaches 10% or so, open BBS hit the options touch key and choose 'Dump to file':
this will generate a .txt file with all the apps/games that did wake your phone and caused drains.
"BUT HEY I DON'T UNDERSTAND ANYTHING FROM THIS FILE AND THIS APP IS HARD TO UNDERSTAND!!!", first you need to relax and go to the BBS thread BBS, the developer is kind enough to let you put the file there and he will look it over and tell you what is the main problem you should focus, and decide if to remove the app or maybe change something in the setting of the app.
If you want to learn about this log file and understand it better just read the thread (like I did) it contains more than 1000 pages, so after 10-20 you will have some clue about this app.
Remember, this is the BEST application that can track your battery drains and tell even if your kernel is waking up the phone, just dig in BBS and you will see, there is no other alternative than BBS, remember that and don't ask for a substitute.
Q: How can I solve BBS wakelocks on the go ?
A: Get in here.
Also, if you have EventLog wakelocks here is the solution:
Download System Tuner. open the app and go to 'Startups' and look for 'Google service framework' and over there disable both 'checkin.EventLogService'.
Be advice EventLogService wakelocks only happens with stock Samsung ROMS.
ALSO, read the FAQ.
3. LBE security manager: internet permissions & prevent apps to be put in cached after a restart: version 5+
We all know that every time we go to the inet (not via wifi) we are starting to see an immediate battery drain.
The best way is to install a firewall app (which is MUCH more than that btw and it's free) that will control our inet pipe.
The user zagzag99 was kind enough to translate the latest version (4) of that app (Notice that in Play store it's version 3 ONLY) get it here: LBE Security
After you installed the app,
Tap on More -> Permissions -> All apps
Now you are looking at all your apps/games (including system app by tapping on 'Download' on the left and choosing 'System'), by clicking on one of the app/game you would see the permissions the app wants from your phone, if it is a game that you play offline then why does this game want to go online? More-than that, why the game wants to access my call records!?
This is why you won't allow it and eventually you'll close the inet pipe and the rest for each app/game you don't want to go online or even get your precious information.
After your done we will now deal with the auto start issue.
Repeat step a, and choose a random app, as you can see the first option in every app is 'On boot permissions' so you can turn it off or back on.
Now, this is very important, I only say it once, if you see an app/game that you don't even use or use once a week 'turn it off', but if you see an app/game that you use most of the time leave it as it is, why ? Obviously you didn't read step number 1.
4. ExTweaks/STweaks& governors - Siyah/Dorimanx kernel users ONLY! **Unless you can undervolt with your kernel**
Download STweaks, if you want to understand what each command/line does please read up: Here or you can just do what I tell you to and enjoy better battery.
First of all I want to thank geko95gek who inspired me a lot regarding STweaks .
Open STweaks,
CPU tab:
MAX OC FREQUENCY: 1000000Khz
CPU_UV tab:
You can undervolt here or in setCPU (See step 5).
Be advise #1: for some reason Siyah V6b5 doesn't save the changes after reboot BUT setCPU does.
Be advise #2: Dorimanx users are good to go.
GPU tab: - SGS2 users input - Different devices try to lower 1 step back.
Siyah steps:
GPU FREQ STEP1: 54Mhz
GPU FREQ STEP2: 108Mhz
GPU FREQ STEP3: 160Mhz
GPU FREQ STEP4: 200Mhz
GPU FREQ STEP5: 267Mhz
GPU VOLTAGE LEVEL1: 850mV
GPU VOLTAGE LEVEL2: 900mV
GPU VOLTAGE LEVEL3: 950mV
GPU VOLTAGE LEVEL4: 1050mV
GPU VOLTAGE LEVEL5: 1150mV
Dorimanx steps: (Basically the default)
GPU FREQ STEP1: 108Mhz
GPU FREQ STEP2: 160Mhz
GPU FREQ STEP3: 200Mhz
GPU FREQ STEP4: 267Mhz
GPU FREQ STEP5: 267Mhz
GPU VOLTAGE LEVEL1: 900mV
GPU VOLTAGE LEVEL2: 950mV
GPU VOLTAGE LEVEL3: 1000mV
GPU VOLTAGE LEVEL4: 1050mV
GPU VOLTAGE LEVEL5: 1150mV
You're DONE!
5. Undervolting& Governors:
Be advise: If your kernel doesn't support undervolting move to the next step, but I recommend to use a kernel that has support because when the phone is in deep sleep or on 200mhz (when you're not using it) you could save a lot of battery.
Be advise #2:I am going to recommend the use of setCPU and STweaks (Siyah/Dorimanx kernel only - if you don't have siyah you can do this step also as long as your kernel support undervolt), a lot of people wouldn't recommend the use of these apps together since they MIGHT conflict with each other, BUT if you will go through this step and read carefully it wouldn't be a problem in fact, it will work just fine
Download setCPU, if you want the latest version you can buy it in the Play store (support the developer).
Version 2.2.4 would be fine too, if you want to understand what each governor means and what is cfq please read up: Here and Here or (if you’re a lazy ass user) you can just do what I tell you to and enjoy your battery:
Open setCPU,
Main screen:
change to 200-1000 Mhz (it should be like it since you already changed it in ExTweaks) and tick 'Set on boot', also make sure 'ondemand' and 'ROW/CFQ' are chosen as governor/io :
Profiles:
Make a new profile and choose 'Add Condition -> Screen On/Off' and choose 'Screen off' and save.
Hit next and choose 200-500Mhz, tick 'Set the CPU governor' and choose 'conservative'.
Choose priority 50.
This profile will make sure while the screen is off there won't be any jumps to high frequencies.
Make another new profile and choose 'Add Condition -> Battery level' and choose '10%' and save.
Hit next and choose 200-800Mhz, tick 'Set the CPU governor' and choose 'conservative'.
Priority is 49.
This profile will let you squeeze the last 10% of the battery like they were 20% but the UI will lag.
Tick those profiles and tick 'Enable Profiles' at the bottom.
Results of step a & b :
Voltages Screen: (Only supported kernels)
Be advice: This stage is the most exhausting, annoying and irritating stage you could ever find but in the end it's worth every second.​Since we put a range of 200-900Mhz we will focus on these frequencies only (of course if you decide to put the range between 200-1200Mhz you will focus on them only).
We will scroll down and look for 200Mhz, 1st white row represent the default mV that Samsung has put in order to max UI, and 2nd white row represent your mV change,but we are smarter than old Samy so we will start to change.
200Mhz – Is usually between 825-875mV it varies between each phone (each phone has different ROM/Kerenl)
So you ask yourself, which mV should I choose?
Well my friends, that’s the 1 million dollar question, let's say you chose 850mV:
Touch the 200Mhz and change it to 850mV afterwards hit the 'Right icon' next to the save icon
if your phone is still working and didn't get stuck go back to the 'MAIN' tab and choose 200-200Mhz (yes exactly like that) and then we will go to the 'INFO' tab, scroll down and choose 'Stress test':
if 'Sress Test' ran for about 4-5 mins and everything is still working, you can stop it by pressing the back key and it means we can continue to the next stage.
Download Stability Test
Open the app and choose Classic stability test – this will ensure the test of only the 200Mhz frequency.
If after step b&c your phone is still working that means that the undervolt you chose is working great. (It doesn't mean that your phone won't freeze-it might), you can undervolt more and see what is your limit.
Do the same process to all the frequencies, of course if you're in 500Mhz you choose the main profile (setCPU) 300-300Mhz in order to test only this frequency.
When you're done, change back in setCPU'MAIN' tab to 200-1000Mhz, go back to Stability test and now choose Scaling Stability Test, let it run for 10-20mins, if there are no errors you're good to go.
Play with the phone for few days, if it hasn't frozen go to setCPU 'VOLTAGES' tab and tick at the bottom 'Set On Boot'.
Notice: My recommendation is to set on boot in the end of the process because if you choose a really low MV your phone might be stuck in an endless loop, thus you tick 'set on boot', only, if you are sure your system is stable.
Final Result:
[img=http://imageshack.us/thumbnmail.png]
My voltages (SGS2 Device):
200Mhz – 850mV
500Mhz – 925mV
800Mhz – 975mV
1000Mhz – 1075mV
Notice: This undervolt method is the most aggressiveness method around, if you want the easy way and you have Siyah kernel you can open ExTweaks/STweaks and in the "Undervolting" choose -25 or -50, this will undervolt ALL the frequencies together with minus 25 or 50, if your brave you can try 75.
My method gives you a specific voltage to each frequency, in 200mhz you can have minus 75mV while in 500mhz minus 50mv, this will give you the best undervolt system.​
Continued on next post...
6. Freezing google/Samsung apps using Titanium Backup Pro:
If you didn't buy the app yet, well, you’re an idiot: Titanium Backup Pro or you can use a free substitute (though I never tried it) Root Uninstaller
After you bought the app, open it and go to 'Backup/Restore' tab:
in there, you can see all your apps/games AND system apps, we will be focusing on the system apps.
NOTICE: If you're using CM rom you can skip this step since they did hell of a job in removing all Samsung/Android bloat-ware.
Our main goal is to freeze processes that common users don't use and don't even know they have, I won't write all the list of the apps you should freeze but I will write all the apps you will freeze that are consuming your battery like a *****:
Email 4.0 – this is stock mail full of bugs and infinite loops that go online and check for mail, if you don't have gmail account please use a 3rd party app like AquaMail/MailDroid that will give you minimum bugs for the check interval.
Exchane Service 3.1 – Belongs to Email 4.0
Kies via Wi-Fi – I wouldn't say it consumes your battery but it's an unsecured protocol by Samsung, use a 3rd party app like AirDroid
Maps – If you're not using it FREEZE THIS APP ASAP! If you do use I suggest unfreezing every time you need it and freeze again when you're not using it (sorry).
MAPService – Belongs to Maps.
Samsung Account – Do I really need to explain? (Including all the Samsung hubs and chats and whatever they come up)
SecPhone 1.0 – If you're using a different launcher rather than TW you can freeze it.
Software Update – We don't need it, we flash our ROMS
Street View – belongs to Maps.
Talk – I find that even if I freeze it (gtalk) it's still waking the phone so your choice.
Talkback – Samsung try to overtake Whatsapp.
Wi-Fi Direct & Wi-Fi sharing & Wi-Fi sharing manager – you don't need it.
Of course if you're using stock ROM you have A LOT of freezing to do, you can use this thread and of course this amazing list
Or you can Google for more apps that are safe to remove.
7. Screen Brightness:
If you don't know, the most battery consuming part of the phone is the screen.
Go to 'System Settings -> Display -> Brightness' and choose 'automatic brightness'.
For the users that want to maximize even more (YES WE WANT EXTREME!!) try to lower the brightness as low as you can, 20-30%.
Recently I've noticed that there are new apps that you adjust screen brightness by each pixel and a lot more, you can Google that, but I prefer to be able to see things crystal clear.
8. Accounts & sync:
Everyone is recommending, in order to save battery, to go to 'System settings -> Accounts and sync' and to turn it off, of course it will save A LOT of battery, but, if you have a gmail account and you want to be notified as soon as you get an email,you can't turn it off.
What you can do is:
Hit your @gmail.com account, and 'untick' everything except 'Sync Gmail', this will assure that you will get your emails via PUSH (PUSH is the most battery efficient protocol - at real time):
Don't forget to sync your contacts/calender once in a while or before you flash a rom.
If you don't want to get your emails instantly then remove your gmail account and download a 3rd party app like MailDroid/AquaMail and set interval for every hour or every 4 hours, this will assure that there will be absolute no wakelocks but only every 1 hour or 4 ( as you chose).
If you choose to keep auto sync there is one disadvantage:
If you don't have a good reception 'sync' option will go completely crazy and keep asking to go online and sync your email (since you're on PUSH) but it won't be able to, since you don't have a good reception and it will go like this in an infinite loop till you have a decent reception and as you can already understand while your screen is off, the phone is awake and trying to sync, so keep that in mind.
9. Fast Dormacy - Should/Can I disable it ?
First of all you need to understand that not every network/operator support FD (Fast Dormacy).
My network doesn't support FD thus if I'll disable or enable it, it wouldn't make any different, in fact if you disabled it and you think your battery is now "OMG FUKCING AMAZING" this is just a placebo effect, and yes I am 110% positive.
How do I check if my network support this tweak ?
The user JIMMYMCGEE from xda made an amazing guide you need to follow (in fact it's a video clip - which is easier).
She first explain what is FD and afterwards explains how to check if you have FD and if you do, how it can save you battery.
Follow this guide and all his steps here.
NOTICE: If the app that shows you your network stats (service mode) doesn't work and only opens your dialer, this is what you need to do:
This is the code for the service mode, write it in the dialer:
*#*#197328640#*#*
When you'r in the Service mode screen, hit: Debug screen->Basic Information and here you go, service mode.
Interested in more info regarding FD ? you can read what I have already read in here.
10. Battery Calibration - Should I do it ?
The answer is simple, if you are using ICS/JB you don't have too because every time you charge the battery to 100% all your data and stats are deleted and the service begins to collect info again from the beginning you can read all about it here and here.
As you can see for ICS/JB users it's a myth nothing more.
If your using GB then you do have to calibrate your battery, there are 2 methods:
Charge your phone untill you have reached 100% boot into recovery and delete battery stats ('Advance -> Delete battery stats').
Download battery calibration app and follow the steps that are mentioned in the 'Description' of the app and in the app.
11. Network/operator modem support - How to tell if your modem meet your network standards
CM USERS DON'T USE THIS STEP IT WILL BREAK YOUR RIL AND YOU WILL HAVE NO RECEPTION
Every network/operator support a specific version of modem, this means that if you will use their modem, 90% of the time your reception will be solid without any disconnections, if your modem doesn't support, then you will sure have disconnections which will lead into more battery drains (no receptions=phone will search for antennas even though there is one).
Notice: There is a chance that even though you have or don't have their modem you might have or might not have disconnections (confused ? me too.)
How to check:
Download GetRIL, Open the app and see if your RIL/Baseband (aka modem) is matching, if they are (written in green), your good to go and you can remove the app.
If they are not, here is what you need to do:
Under 'Baseband' you have 'recommended':
You can see that LQ6 & LPB are supporting my network, we will now tap this:
and look for LPB & LQ6, after we found it we will choose it and tap: 'Download & install'.
When your done restart your phone and check again (GetRIL) that now your modem is now supporting by your network, if so, remove the app.
12. Variance:
Play store app: Hit the option touch key and untick - 'Notifications' & 'Google AdMob Ads'
When the 'notification' is on, the app is consistently connecting to the server and checking for new versions.
When 'Google AdMob Ads' is on, the app is always checking your behavior and reporting back to the Google server.
'System settings -> Location services' untick everything.
'System settings -> back up and reset' untick 'Back up my data' and 'Automatic restore'.
NOTICE: I didn't apply this step for my own device since it only saves 5% battery more or less and it's a service I use, think, if you need it or not,
WiFi users: 'System settings -> Wi-Fi -> Advance -> Keep Wi-Fi on during sleep' choose - 'Only when plugged in'.
This will close the Wi-Fi connection when you turn off your screen.
Keep in mind that after you finished using your BT turn it off, since I have specific times I use the BT I use AutomateIt, it's a great app that can control even silent modes.
Don't use Facebook app, it drains your battery the most, instead add a shortcut in the desktop for facebook.com link and go to facebook via this link, it looks exactly the same as the app since Android users don't have a native facebook app yet.
Don't use live wallpaper
Don't use widgets
Don't use Haptic Feedbacks
Never ever use Task Killer or 'Clear memory' - Android has it’s own task killer that works better than your 'decision making' brain.
Screen time out - Don't forget to set it
No reception = major battery drains - use airplan mode.
Use Nova launcher or better code efficient luanchers.
Use ad-blocking app in order to prevent unnecessary network usage in downloading ads, I recommand using AdFree - Open the app and choose: 'Boot Normally' and afterwards choose 'Download& Install hosts', when your done restart your phone.
Always charge your phone untill it shows 100% and charge it only if it is below 20-30%
Automatic Date & Time option -> untick
13. Learning to read the battery graph:
This is the final step, come back to this step after you're done with all 12 steps, reading the FAQ (Post #3) and you lost at least 70% of your battery since you charged it.​
So you’re here, go to 'System settings -> Battery' and hit the graph bar.
At the bottom you can see 'Screen on' and 'Awake' we will focus on these lines.
Our goal is to achieve 100% overlap between these 2 lines, meaning, when the screen is on, the phone will be awake and when the screen is off we don't want the phone to be awake since we don't use the phone (unless we are-downloading a file).
For example if you see a blue line in the Screen on bar I would like to see at the same time the EXACT size and width in the Awake bar if not, that means we have wakelocks so we need to go to step number 2 again and see who is waking up our phone.
It's really hard to achieve a 100% overlap between these 2 bars, even for me.
Example of a minor wakelock (squared in red):
For conclusion:
You need to be able to get a MINIMUM 3 hours screen time (System settings - >battery - >screen) if not, you're doing something completely wrong.
From my experience you can't get more than 3.5 hours screen time over total use of MORE than 24 hours uptime (Maximum up time I got with the phone is 4 days with almost 3 hours screen time and 1 hour of calls.), however, if you play non-stop with your mobile, from the time you unplugged it, you will get more then 4-5 hours screen time EASY over 5-16 hours uptime:
But of course most of the users don't "act" like that and most of them just "lose" battery over uptime when screen is off.
From my vast experience with battery usage, this is it, either your get 3 hours screen time over moderate usage (long uptime-2 days +) or you get 4-5 hours screen time with aggressive use (short uptime-16 hours top).
Don't let anyone tell you different.​
• This is it for now, this thread will be updated with new tweaks and methods every now and then.
• Please, if you have any questions regarding this thread write them in this thread ONLY and don't send me a private msg.
• I love constructive criticism, so if you have any thoughts or you found a mistake (even in my grammer) PLEASE send me a private msg.
Credits and many thanks to:
droidphile – His amazing articles and threads regarding most of my steps, you helped me a lot!
geko95gek – Who inspired me a lot regarding ExTweaks.
JIMMYMCGEE - FD knowledge and guide.
If I forgot anyone please do let me know
If you love this article please do hit the Thanks button and rate this thread 5 stars,also you can hit the "Newsworthy Thread" in the first post if you think this article should get a higher exposure.
If you really appreciate this article you can always buy me some weed - makes me think clearly
Thank you.
FAQ:
Q: Which ROM and kernel you're using ?
A: I am using Wanam ROM (latest version) and Siyah kernel (latest kernel also) CM10.1.3 and Dorimanx 9.41.
After trying all sort of ROM's I can say that the most stable and reliable ROM's are Samsung based ROM's.
I am now recommending CM10.1.3 stable ONLY!
Q: After the tweaking and following your entire guide, does the UI will lag/Games will stuck or freeze/App will run slowly ?
A: Regarding the UI you might feel a little lag (if you were using stock frequencies and voltages) or you might not feel any lag (depends on your launcher), If you install Nova Launcher and use it instead of the TW you won't feel any lag since the Nova launcher is code efficient.
Regarding the apps, you won't feel any lag unless it's a graphic app or design/CAD app (even this is questionable).
Regarding the games, you won't feel any lag in most of the games, I played a lot of games for example Dead Trigger/Galaxy on fire 2/Shadowgun/Samuraio II and few more, I didn't feel any lag or what so ever, though I did feel that the loading steps took 1-2 more minutes.
Q: The most used (or 2nd) most used service/app in BBS is 'AuidoOut', how can I minimize it ?
A: You can minimize the 'Audioout' by unticking: 'System settings -> Sound' , under System, untick them all.
Plus, in the same window click on "Vibration intensity' and put 'Vibrate on screen tap' on the lowest (0).
Q: I keep getting "Shell have been granted superuser permissions" over and over again and it drains my battery, is there a solution ?
A: It's a known problem with SuperUser, install SuperSU give it root permissions via superuser, go to app info of superuser hit "Force Close" and afterwards hit "Disable", now SuperSU will handle your root privilege.
Q: I froze Secphone.apk and now I am having weird issues what should I do ?
A: Obviously you're an idiot since I specifically wrote next to SecPhone.apk: If you're using a different launcher rather than TW you can freeze it.
So don't freeze Secphone.apk if you are using TouchWiz launcher which is the official launcher by Samsung.
Q: How can I tell if my phone is going into Deep sleep and activates the setCPU profiles ?
A: In setCPU go to 'Info' tab and tap 'Time In State', you will find a pie chart, if your a common user-that most of the time his screen is off-, you should see that 200mhz has the biggest chunk, if it's not the case then check BBS what is waking your device.
Q: After installing Gemini App Manager I am unable to install/uninstall any app, what should I do ?
A: You are probably using Screen Filter app, for some reason the install button become unresponsive, disable Screen Filter when you need to install something and enable it again afterwards - Thanks Ryther.
Q: How can I solve BBS wakelocks on the go ?
A: Get in here.
Also, if you have EventLog wakelocks here is the solution:
Download System Tuner. open the app and go to 'Startups' and look for 'Google service framework' and over there disable both 'checkin.EventLogService'.
Be advice EventLogService wakelocks only happens with stock Samsung ROMS.
More to follow.
Great work dude. You gave me some good tips
Sent from my GT-I9100 using Tapatalk 2
gb.yolo said:
Great work dude. You gave me some good tips
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Thank you for your positive feedback.
Thanks
I can confirm getting about 3~4 hours of screen time at most during 16~24 hours of usage.
I noticed you wrote something about SetCPU working on stock kernel ... in my experience it does not work even if some people claims so.
SetCPU might be able to change between a limited amount of Governors, but setting Min and Max doesn't work even it looks so (I used some other tool to confirm this). I only tried this on rooted Stock GB, but I think it will be the same on ICS.
Does this work on jb rom?
Sent from my GT-I9100 using xda app-developers app
good tips
Thanx
Ben101 said:
Does this work on jb rom?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
It work on any rom
Mittaa said:
Thanks
I can confirm getting about 3~4 hours of screen time at most during 16~24 hours of usage.
I noticed you wrote something about SetCPU working on stock kernel ... in my experience it does not work even if some people claims so.
SetCPU might be able to change between a limited amount of Governors, but setting Min and Max doesn't work even it looks so (I used some other tool to confirm this). I only tried this on rooted Stock GB, but I think it will be the same on ICS.
Click to expand...
Click to collapse
Thank you for confirming though you could get more.
and I didn't say what you wrote, I specifically wrote:
If your kernel doesn't support undervolting move to the next step
Click to expand...
Click to collapse
Ben101 said:
Does this work on jb rom?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
I didn't try with JB, but I'd love if you could follow each step and report back with results, in my opinion it should be the same.
soso_soso said:
good tips
Thanx
Click to expand...
Click to collapse
Thank you for the feedback, please do try all the steps and report back for success.
great tutorial, thank you for your effort!
I followed the steps but I can't find this one in LBE security:
"c.After your done go to the first window (swipe your finger right to go to the first screen)
d.Choose 'Speed boost -> Auto-Start' you will see all the apps that will be put in the cached process EVERY restart you make to your phone, now, this is very important, I only say it once, if you see an app/game that you don't even use or use once a week 'Disallow' it, but if you see an app/game that you use most of the time leave it as it is, why ? Obviously you didn't read step number 1.
"
trikpa said:
great tutorial, thank you for your effort!
I followed the steps but I can't find this one in LBE security:
"c.After your done go to the first window (swipe your finger right to go to the first screen)
d.Choose 'Speed boost -> Auto-Start' you will see all the apps that will be put in the cached process EVERY restart you make to your phone, now, this is very important, I only say it once, if you see an app/game that you don't even use or use once a week 'Disallow' it, but if you see an app/game that you use most of the time leave it as it is, why ? Obviously you didn't read step number 1.
"
Click to expand...
Click to collapse
Thank you for your positive feedback, please do come back with results and post them here.
As you can see in the picture, this is the first screen you see when you open up LBE,2nd raw is 'Speed Boost' just click it and it will show you new buttons, there you choose 'Auto-Start.
EDIT:
I have added pictures to the main thread for most of the steps and marked in red the specific step.
I got confused because in my app it says phone accelerate instead of speed boost
anyway, I'm using these mods since this morning so it is too early to say anything factual about battery life, but I think it is much better...
usually I would have about 60 or less % left at this time of day...
trikpa said:
I got confused because in my app it says phone accelerate instead of speed boost
anyway, I'm using these mods since this morning so it is too early to say anything factual about battery life, but I think it is much better...
usually I would have about 60 or less % left at this time of day...
Click to expand...
Click to collapse
Perhaps you downloaded even newer version than mine but I can see you figured it out.
If you used to get 60% and now it's 76%, of course this is an amazing change.
Don't forget to check your screen time before you charge it and make sure it's minimum 3 hours (if the total up-time is above 24 hours).
If you did follow all the steps and did everything as I wrote, I suggest to get into Recovery mode -> Advance -> and reset battery indicators.
or wait 1-2 charges and the battery meter is supposed to acclimate.
hyperbolic said:
From my experience you can't get more than 3.5 hours screen time over total use of MORE than 24 hours uptime
Click to expand...
Click to collapse
Well is that so?
Nice thread, but Gemini app manager block on "updating information" sometimes :x
MrMarques01 said:
Well is that so?
Click to expand...
Click to collapse
I saw really few users like your self that actually got that time, but I had never got more then 3.5-4 hours max screen time on uptime for more then 24 hours.
I even did EXACTLY what these users told me with their exact config (from 3 different users) but again, I got only 3.5-4 hours screen time max.
So this is my conclusion.
Kigsuha said:
Nice thread, but Gemini app manager block on "updating information" sometimes :x
Click to expand...
Click to collapse
Thank you.
Yea that's an annoying bug that is happening from time to time.
Just exit the app and open it again.
hyperbolic said:
I saw really few users like your self that actually got that time, but I had never got more then 3.5-4 hours max screen time on uptime for more then 24 hours.
I even did EXACTLY what these users told me with their exact config (from 3 different users) but again, I got only 3.5-4 hours screen time max.
So this is my conclusion.
Thank you.
Yea that's an annoying bug that is happening from time to time.
Just exit the app and open it again.
Click to expand...
Click to collapse
I found solution, it only happens when after taping "config autorun (root)" and switching fast thing to off.
So i have to wait :cyclops:
Kigsuha said:
I found solution, it only happens when after taping "config autorun (root)" and switching fast thing to off.
So i have to wait :cyclops:
Click to expand...
Click to collapse
Sometimes you just wait for too long but if you have patience for that..
hyperbolic said:
Last update:29/9/12
[*] If after step b&c your phone is still working that means that the undervolt you chose is working great. (
Click to expand...
Click to collapse
hyperbolic what do you mean by step b&c ?
There just core1 sucessful
core2 sucessful
Ram sucessful

[GUIDE] 4+ hours screen on time

Since there are no threads on how to improve battery life I figured I would make one for all the lazy people out there
Let me start by saying don't be me! Use elemental x kernel and just freaking pay 3.99 for ex kernel manger its so worth it!!! It is an amazing app and kernel combo:good:. On stock rooted I was barely pulling out 2 hours screen on time with battery tweaks and low signal all day (no signal at my school) and 2.5 - 3 hours where i had a good signal. With the tweaks i am going show you I am getting 4 hours consistently and 5 hours on a good day.
THINGS YOU WILL NEED
i think this goes without saying but root access...
Build.prop editor or knowledge of how to edit it
Ex kernel installed on your current rom
Ex kernel manager (3.99 on google play... just pay for it... no free version exists help the developer out)
Usb cable and computer or a file manager
Greenify
1). add these lines to the build.prop
ro.mot.eri.losalert.delay=1000
ro.config.hw_fast_dormancy=1
persist.cust.tel.eons=1
ro.ril.set.mtu1472 =1
wifi.supplicant_scan_interval=497
pm.sleep_mode=1
power.saving.mode=1
ro.ril.disable.power.collapse=0
ro.vold.umsdirtyratio=20
2). Install ex kernel and wipe cache
3). Verify that you have it installed by going to settings/about phone and look for kernel version it will say elemental x somewhere in it if you installed it
4). Buy ex kernel manger for 3.99 on the play store (believe me it works)
5). Open the app and click the 3 lines on the top left and click cpu.
6). Scroll down to "Governor options..."
7). Now click save and make a name for your stock profile. (yes it is a needed step!!! it makes a folder you add files too):good:
8). Download ghost pepper or butterfly. (or any other one but those two are recommended for better battery life) You can pick which one gives you best battery life. The process is the same for all of them and its very easy to switch between them.
https://docs.google.com/spreadsheets/d/1P1LXnJnUdz9cC_qpcwMpfParUBlaPbIhyLZHOWjknUE/edit#gid=0
9). If you did step 7 right you will see a folder on the root of your internal storage called ElementalX inside that folder is a folder called gov_profiles. If it is not there read step 7 again. Copy the profile you picked here and remove the file extension. (IMPORTANT!) example instead of ghostpepper.txt you would rename it ghostpepper
10). Go back to the ex kernel app and click load. you should see the profile you just put in that folder and check it. If you want your settings to stick click apply on boot
11). Go back to the 3 lines and click miscellaneous this time.
12). Set your i/o scheduler to noop and click the power button on the right. That makes it apply noop on boot
13). Click fsync and disable it then click the power button again.
14). Download greenify from the play store its free
15). Open the app (grant it root) and click the plus button in the top right
16). Add apps that are keeping the phone awake. Snapchat and Instagram are two GREAT apps to put on this list because they eat your battery alive even with the screen off.
17). When your done click the check in the bottom right.
18). Click the 3 dots make sure it says "disable auto-hibernation". if it says "enable auto-hibernation" enable it.
19). Click the 3 dots again and click settings. make sure your working mode is root and check shallow hibernation and aggressive doze
YOUR DONE! If you have anything to add or disagree with me please don't be shy and comment. We can only improve this phones battery life by communicating
I get 5-6 hours stock rooted with no added build prop lines or governed tweaks. I didn't like the performance loss with ghost pepper and butterfly, and the battery improvement wasn't even noticeable. But everyone's results vary I guess
Sent from my Nexus 5X using Tapatalk
I followed your guide, except for greenify, see what happens.
Sent from my Nexus 5X using XDA-Developers mobile app
Casey Walt said:
Since there are no threads on how to improve battery life I figured I would make one for all the lazy people out there
Let me start by saying don't be me! Use elemental x kernel and just freaking pay 3.99 for ex kernel manger its so worth it!!! It is an amazing app and kernel combo:good:. On stock rooted I was barely pulling out 2 hours screen on time with battery tweaks and low signal all day (no signal at my school) and 2.5 - 3 hours where i had a good signal. With the tweaks i am going show you I am getting 4 hours consistently and 5 hours on a good day.
THINGS YOU WILL NEED
i think this goes without saying but root access...
Build.prop editor or knowledge of how to edit it
Ex kernel installed on your current rom
Ex kernel manager (3.99 on google play... just pay for it... no free version exists help the developer out)
Usb cable and computer or a file manager
Greenify
1). add these lines to the build.prop
ro.mot.eri.losalert.delay=1000
ro.config.hw_fast_dormancy=1
persist.cust.tel.eons=1
ro.ril.set.mtu1472 =1
wifi.supplicant_scan_interval=497
pm.sleep_mode=1
power.saving.mode=1
ro.ril.disable.power.collapse=0
ro.vold.umsdirtyratio=20
2). Install ex kernel and wipe cache
3). Verify that you have it installed by going to settings/about phone and look for kernel version it will say elemental x somewhere in it if you installed it
4). Buy ex kernel manger for 3.99 on the play store (believe me it works)
5). Open the app and click the 3 lines on the top left and click cpu.
6). Scroll down to "Governor options..."
7). Now click save and make a name for your stock profile. (yes it is a needed step!!! it makes a folder you add files too):good:
8). Download ghost pepper or butterfly. (or any other one but those two are recommended for better battery life) You can pick which one gives you best battery life. The process is the same for all of them and its very easy to switch between them.
https://docs.google.com/spreadsheets/d/1P1LXnJnUdz9cC_qpcwMpfParUBlaPbIhyLZHOWjknUE/edit#gid=0
9). If you did step 7 right you will see a folder on the root of your internal storage called ElementalX inside that folder is a folder called gov_profiles. If it is not there read step 7 again. Copy the profile you picked here and remove the file extension. (IMPORTANT!) example instead of ghostpepper.txt you would rename it ghostpepper
10). Go back to the ex kernel app and click load. you should see the profile you just put in that folder and check it. If you want your settings to stick click apply on boot
11). Go back to the 3 lines and click miscellaneous this time.
12). Set your i/o scheduler to noop and click the power button on the right. That makes it apply noop on boot
13). Click fsync and disable it then click the power button again.
14). Download greenify from the play store its free
15). Open the app (grant it root) and click the plus button in the top right
16). Add apps that are keeping the phone awake. Snapchat and Instagram are two GREAT apps to put on this list because they eat your battery alive even with the screen off.
17). When your done click the check in the bottom right.
18). Click the 3 dots make sure it says "disable auto-hibernation". if it says "enable auto-hibernation" enable it.
19). Click the 3 dots again and click settings. make sure your working mode is root and check shallow hibernation and aggressive doze
YOUR DONE! If you have anything to add or disagree with me please don't be shy and comment. We can only improve this phones battery life by communicating
Click to expand...
Click to collapse
Maybe giving your app usage / connectivity usage will help too.
Are you using Bluetooth / NFC / ... ?
Facebook ? Messenger ? Whatsapp ? ...
Anyway, I will try your method and give result after the weekend !
ex kernel manager has already all profiles added and built inside about governors... he added all of them somedays ago, so, no need to download each file and put them into the relatives directory as stated
timmylamoule said:
Maybe giving your app usage / connectivity usage will help too.
Are you using Bluetooth / NFC / ... ?
Facebook ? Messenger ? Whatsapp ? ...
Anyway, I will try your method and give result after the weekend !
Click to expand...
Click to collapse
I do not use Facebook app or messanger. I use chrome notifications and Facebook.com. it works great like that. Don't use what's app and I just kinda of assumed people would know how to turn all that off and screen brightness down a bit
m4ssnet said:
ex kernel manager has already all profiles added and built inside about governors... he added all of them somedays ago, so, no need to download each file and put them into the relatives directory as stated
Click to expand...
Click to collapse
I did all of this a while ago and didn't update the app. So I did and sure enough there they are lol
pbailey212 said:
I get 5-6 hours stock rooted with no added build prop lines or governed tweaks. I didn't like the performance loss with ghost pepper and butterfly, and the battery improvement wasn't even noticeable. But everyone's results vary I guess
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
For sure you don't have any social media apps like messenger, snapchat etc?! I get 5hrs the days I don't use any social media apps, only browser, wifi and low brightness..
is elemental kernel necessary to add those build.prop lines? Or can i add them and still get the benefit without the kernel?
What exactly are those build.prop lines for?
joakimbo said:
For sure you don't have any social media apps like messenger, snapchat etc?! I get 5hrs the days I don't use any social media apps, only browser, wifi and low brightness..
Click to expand...
Click to collapse
I use fb messenger, but not fb app. Screens 33%, wifi and LTE all-day long. The only other way I get similar battery with DU. But I always seem to have best results with stock.
Sent from my Nexus 5X using Tapatalk
Here's where I'm at currantly
pbailey212 said:
I use fb messenger, but not fb app. Screens 33%, wifi and LTE all-day long. The only other way I get similar battery with DU. But I always seem to have best results with stock.
Sent from my Nexus 5X using Tapatalk
Here's where I'm at currantly
Click to expand...
Click to collapse
Not surprised du always gave me good battery. Report back with some of these tweaks I ran that rom a while ago
tlxxxsracer said:
is elemental kernel necessary to add those build.prop lines? Or can i add them and still get the benefit without the kernel?
Click to expand...
Click to collapse
You just need to be rooted
jdubya42 said:
What exactly are those build.prop lines for?
Click to expand...
Click to collapse
You can look them up individually but most are for battery improvement under low signal.
Thanks for the guide. I already had this set up except for the lines and greenify
What are the side effects of the lines in build prop? (will it work in pure nexus or maybe it already has something similar..?)
Sent from my Nexus 5X using Tapatalk
I don't know, maybe it's just a placebo effect, but before adding those lines, I had some serious drain on mobile data. Today I was quite shocked, because it drain much much less! I'll give some feedback after a while. Maybe my 5x just had a good day today haha.
is anyone using glassfish 1.2?
eLeKTroDo7 said:
is anyone using glassfish 1.2?
Click to expand...
Click to collapse
My experience was excellent battery life with glassfish 1.2 but worse performance than HawkTail 1.2. Sticking with HawkTail 1.2 since battery life is still very good.
Sent from my Nexus 5X using Tapatalk
Can this work on N yet?
Sent from my Nexus 5X using Tapatalk

[HOW TO] Enable better multitasking on Stock ROM

Hi all!
As many of you have noticed, the multitasking on Stock ROMs is not that great, especially if you are coming from some custom ROMs like CM, etc. The thing is that if you want to recall an app that was closed 5 minutes ago, it has to be started again. To change this it's very easy by editing the build.prop file.
Requirements:
- Stock ROM or stock based, maybe others but I doubt that this isn't included within
- Root
- File manager/ Root explorer with text editor
Instructions:
1. Navigate to /system, find the build.prop file and copy it to /data (just as a backup).
<<Later on if you will face any bootloop/troubles, restart the phone in TWRP, go to file manager and simply copy the original build.prop from /data to /system and overwrite it.>>
2. Open the build.prop in /system with a text editor and at the bottom, add the following lines:
sys.config.spcm_enable=false
ro.config.fha_enable=true
3. Save your modifications to the file and before restarting, check the permissions again to be correct (rw-r--r--).
4. Reboot.
That's it. Enjoy and report if you notice any strange behavior. Normally it shouldn't be any, but who knows...
DISCLAIMER: Do this at your own risk. I will not be responsible if something bad will happen.
Can you explain wat exactly those lines doing? What is different in the multitask experience / behavior? Many thanks
If you'll open up Chrome, go to a webpage, then press the home button and go back to Chrome again. In most cases you'll notice that it starts reloading the page. I've noticed that a lot of apps are restarted/refreshed after a short time if I leave them in the background and mostly you never get to the same point where you left off in the app.
I'm not a programmer and I just saw in S6 edge+ forums how to improve multitasking: http://forum.xda-developers.com/s6-edge-plus/general/root-ram-management-multitasking-fix-t3228917. As you can read there, the guys are changing plenty of values, but at the suggestion of member @citytrader who changed only 2 lines, I tried this in my Le Max 2 and it worked pretty well. Somehow I don't have the redraws that I had before. Battery life seems unchanged. No lag (there was none before as well), but the most important thing no more redraws (with some small exceptions but in any case, far less than before).
You can find articles/threads on xda about spcm and fha/dha.
I think the reason for that is that EUI is pretty agressive in closing apps to save battery.
Did you try to lock the app so its doesnt close.
Locking the app does not help. As you said, EUI is pretty aggressive at RAM management. I'm pretty sure that you have viber/whatsapp locked but if you switch to 2-3 apps and then come back to viber for instance, the app is redrawing.

How to disable/adjust the background task limit?

My background with android is long and rocky.
A long time ago in a galaxy far away, I had a Samsung Galaxy S, then a S2.
I can remember a Google Nexus phone in there somewhere.
Then at some point I switched over to Windows Mobile for many years.
A couple of hears ago I came back to android with a Samsung Galaxy S8+ and I hated it.
Recently I upgraded to a OnePlus 6T McLaren and here I am.
I had been expecting to see android happily use up 7, 8 or even 9GB of ram before the background task manager would begin to kill tasks.
Except that I seldom saw android use much more than 5GB of ram.
And worse, background tasks were being killed on a regular basis.
Widgets would stop working overnight, or even in just a few hours.
Spotify would close while a playing a playlist.
A quick search on XDA reveals that many users believe that Android will just use up as much ram as your phone has.
However, that is simply not true.
And so, I began my quest to have Android use as much ram as the phone could provide.
In my case, 10GB.
- I understand that there is an inherent trade-off between keeping background apps running and battery usage. I can live with extra battery usage in exchange for keeping my widgets running or Spotify running for an entire playlist.
- I realized very quickly that in order to achieve the results that I was looking for that the phone would have to be rooted. So rooting was one of the first things that I did.
Step 1.
I started with the basic stuff that a quick google search would provide;
- Settings -> Battery -> Battery Saver (off)
- Settings -> Battery -> Adaptive Battery (off)
- Settings -> Battery -> Battery Optimization -> widget app (don’t optimize)
- Settings -> Battery -> Battery Optimization -> Spotify (don’t optimize)
- Settings -> Battery -> Battery Optimization -> Advanced Optimization -> Deep Optimization (off)
- Settings -> Battery -> Battery Optimization -> Advanced Optimization -> Sleep standby optimization (off)
- Settings -> Apps -> Widget app -> Battery -> Background Restriction (app can use battery in background)
- Settings -> Apps -> Spotify -> Battery -> Background Restriction (app can use battery in background)
This helped but not enough to make the widgets or Spotify usable.
Step 2.
I supposed that my specific background tasks that I wanted to keep running were being killed because of the many other apps that were running in the background.
I searched for and found Tomatot DeBloater scripts for the Oneplus 6.
Excellent! Just what I was looking for.
I chose the Tomatot-Debloater-OOS-Light-2.3.zip and installed it.
This helped some more but not enough to make the widgets or Spotify usable.
Step 3.
I realised that there were still some apps running in the background that I didn’t use or want.
So I used Titanium Backup to freeze the following apps;
- Calendar
- Calendar Storage 9
- Contacts (O+)(I replaced with google contacts)
- Dashboard
- Drive
- Face Unlock
- Gboard
- Gmail
- Google
- Google partner setup 9
- Google play music 8
- McLaren AR
- Messaging (O+)(replaced with google messaging)
- OK google enrollment 9
- Oneplus system 1
- Youtube
Perfect! These apps were no longer competing for phone resources with the apps that I wanted to run.
This helped some more but not enough to make the widgets or Spotify usable.
This did make the phone feel faster and smoother.
The phone is much more responsive and fluid to my input.
This made me realize that the apps were being closed not due to a lack of phone resources, but a background task manager being aggressive.
Presumably for battery saving purposes.
I changed my focus to adjusting that background task manager.
Step 4.
Enable the recent screen ‘LOCK’ on the widget app and Spotify.
This didn’t do anything for me.
Everything that I’ve read on it says that it just stops the task from being killed when you click on kill all tasks.
The lock doesn’t lock the task from being killed by the background task manager.
Step 5.
Further google searching led me to believe that the OEM kernel was limiting background tasks.
I choose ElementalX-OP-3.09 and the EX Kernel Manager.
I had to read a lot of google university material to make any sense of the settings in here.
I’m not sure that I fully understand even now.
Eventually, I ended up with the following settings;
Memory
- Adaptive Low Memory Killer (disabled)
- dirty ratio (20)
- dirty background ratio (5)
- min free kbytes (12398)
- vfs cache pressure (100)
Memory -> Low Memory Killer
- apply on boot
- Foreground app (72mb)
- Visible apps (90mb)
- Secondary server (108mb)
- Hidden apps (200mb)
- Content Providers (587mb)
- Empty apps (783mb)
This helped a lot.
This almost made the phone usable to the state that I wanted.
But the widget and Spotify would still stop running overnight and by morning the apps would have to be reopened to get them to run again.
At least the apps would run most of the day without being killed.
Still not the behaviour that I expected from a phone with 10GB of ram.
Ram usage was still not going much over 5.5Gb even if I opened up many apps at once.
Can I ever get ram usage up to the 10Gb that I have?
Step 6.
The last thing that I tried yesterday afternoon was to increase the background task limit in the build.prop.
ro.vendor.qti.sys.fw.bservice_limit=5 (changed it to 60)
ro.vendor.qti.sys.fw.bservice_age=5000 (changed it to 10000)
Yes, I know that I am on PIE and there isn’t supposed to be any effect.
No, I don’t know yet if this had any effect.
I am hopeful.
The widget app didn’t close last night, but Spotify did.
I am getting closer!
This is the best that I could do on my own without asking for help.
So here I am posting my question and asking for help.
How do I get the apps that I want to run to not be killed by the background task manager?
OR
How do I get the phone to use the 10GB of ram?
I feel that I am missing something.
With any luck, one of you smarter persons will be able to point it out to me.
As an aside from all of these changes the phone feels very smooth and fluid.
Except for apps closing that I don’t want to, this phone is a great experience and a pleasure to use.
Apps that I want to run are staying open much longer then before I started.
It’s now just an overnight issue.
And getting the phone to use over 6Gb of ram.
I would suggest that I am 90% happy with it now.
KERNAL: ElementalX-OP6-3.10
ROM: STOCK OOS 9.0.11
PHONE MODEL: 6013 O+6T McLaren
Tomorrow I may try making this change to the build.prop file;
ro.vendor.qti.sys.fw.bservice_enable=true to false
Don't know if it will help or not.
Wow dude, interesting read, i will sign up for notifications from this thread hoping you get your answer because i have the exact same problem but with my work app, throwing it all out of whack and making me a target to big fines (in the $1,000's) and potentially reducing my marketability!
The attached screenies are from before i realized that the app getting killed in the background is what causes the problem (I've left it in the foreground HOURS a few times and it works perfectly!)
UPDATE:
Good news!
I seem to have solved my issue.
Time will tell for sure though.
But this morning and all day today, Spotify and the widget app have been running without closing.
AND I have seen memory usage up to 6.8GB used.
Here are the further steps that I took;
- ro.vendor.qti.sys.fw.bservice_enable=true (changed it to false)
I didn't really notice much of a change.
But then I noticed that perhaps the limit of 60 tasks was not high enough.
I seem to have that many apps open and limiting to just 60 may be an issue.
- ro.vendor.qti.sys.fw.bservice_limit=60 (changed it to 120)
THIS!
This seemed to have worked for me.
All apps seem to be open and be staying open.
Today I got a message/warning from android telling me that the widget app is consuming the battery in excess but I ignored the warning and android did not close the app or stop the widget from running.
I will keep an eye on the phone for the next few days to confirm that this actually solved my issues.
My next step will be to see what effect if any this has had on my battery usage.
I am curious to see if it's all that bad...
geeksquad2 said:
UPDATE:
Good news!
I seem to have solved my issue.
Time will tell for sure though.
But this morning and all day today, Spotify and the widget app have been running without closing.
AND I have seen memory usage up to 6.8GB used.
Here are the further steps that I took;
- ro.vendor.qti.sys.fw.bservice_enable=true (changed it to false)
I didn't really notice much of a change.
But then I noticed that perhaps the limit of 60 tasks was not high enough.
I seem to have that many apps open and limiting to just 60 may be an issue.
- ro.vendor.qti.sys.fw.bservice_limit=60 (changed it to 120)
THIS!
This seemed to have worked for me.
All apps seem to be open and be staying open.
Today I got a message/warning from android telling me that the widget app is consuming the battery in excess but I ignored the warning and android did not close the app or stop the widget from running.
I will keep an eye on the phone for the next few days to confirm that this actually solved my issues.
My next step will be to see what effect if any this has had on my battery usage.
I am curious to see if it's all that bad...
Click to expand...
Click to collapse
Nice find, I checked my build.prop and found this. No wonder my apps are killed
Code:
#ifdef VENDOR_EDIT
#[email protected] modify for app memory
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
#endif/*VENDOR_EDIT*/
EDIT: I see a lot of custom ROM's have "ro.vendor.qti.sys.fw.bg_apps_limit=60" to the build prop, I wonder if that going to make a difference
UPDATE:
I am a silly goose.
I broke a cardinal rule while troubleshooting.
I may have had a few too many wobbly pops and made two changes at a time, thus when change was affected, I was unable to determine properly which change caused the affect.
The rule is, "only make one change at a time when testing".
Yes, all of my apps stay open all the time.
I am getting the behaviour that I was looking for.
However it wasn't necessarily changing the build.prop bgservice_limit from 60 to 120 that did it.
Let me back up a bit.
Earlier I had suggested that locking an app to the recent screen didn't do anything for me, and that in my reading it only locks the app from being killed by you when you try to close it manually.
However in reading up on the oneplus framework-res.apk I found a reference to an oneplus whitelist of apps that will never be killed, and a reference to the recent screen app lock that suggests that oneplus will add a locked app to the whitelist and not kill it.
In the course of a single day, I had inadvertently edited the build.prop and locked the widget app to the recent screen thus breaking the one change at a time rule.
So the next morning and the following days when all apps were staying open I attributed it to changing the build.prop not realizing that it could also have been the app lock.
Last night I realized my mistake.
I unlocked the widget app from the recent screen and went to bed.
When I woke up this morning the widget app was not running for the first time in days.
Also the notifications that I was receiving about the widget app consuming excessive battery have stopped.
It would appear that I was wrong in my earlier observations regarding the app lock mechanism.
It appears to be very useful for keeping apps running all the time.
Did changing the build.prop have any affect on keeping apps open?
Maybe?
I have noticed that my battery life has gone for a complete ****.
I can barely get 24 hours out of the phone.
Worse is that it doesn't matter if the screen is on or not, battery usage remains the same.
i.e. with the screen off and the phone put down, battery life appears to be used at the same rate as when the phone is in use.
I had expected the battery life to be not as good, but I didn't expect it to go to for a **** that badly.
There must be a balance between aggressive app management and acceptable battery life.
The phone didn't display this behaviour until I changed ro.vendor.qti.sys.fw.bservice_enable=true to false.
I think that today I will change ro.vendor.qti.sys.fw.bservice_enable= back to true and observe the battery tomorrow.
kantjer said:
Nice find, I checked my build.prop and found this. No wonder my apps are killed
Code:
#ifdef VENDOR_EDIT
#[email protected] modify for app memory
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
#endif/*VENDOR_EDIT*/
EDIT: I see a lot of custom ROM's have "ro.vendor.qti.sys.fw.bg_apps_limit=60" to the build prop, I wonder if that going to make a difference
Click to expand...
Click to collapse
I think that ro.vendor.qti.sys.fw.bservice_limit= and ro.vendor.qti.sys.fw.bg_apps_limit= are essentially the same thing, except for android versions.
ro.vendor.qti.sys.fw.bg_apps_limit= is for Android 7: Nougat and below.
ro.vendor.qti.sys.fw.bservice_limit= is for Android 8: Oreo and above.
Someone more knowledgeable than me should chime in here though.
Do you think any of this could have to do with the way the phone keeps disabling push in Gmail? (Every other day I need to set my O365 exchange in Gmail back to push because it automatically changes to the default of checking every 30 mins.)
Any conclusion?
Did you guys manage to solve this issue please by editing the build prop?
Latest smurf kernel rc14b seems to have solved the RAM management issue. I haven't had any apps closing in background since using it.
thank you for the thread!
What did you find in the end?
How did you set this ?
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
So what's the verdict on the buildprop edits? Do they make a difference?
I notice that sometimes my on-going weather notification doesn't update, or gets killed off. I also have an app that controls rotation per app, and that also seems to stop doing it's thing after a while.
Just want to share. If you are rooted with Magisk, try appsystemizer module. System apps don't get killed by oneplus as aggressively. Tried it with accubattery and it works.
I am so glad I stumble across this, I just want to say, changing
ro.vendor.qti.sys.fw.bservice_limit=5 to 120
ro.vendor.qti.sys.fw.bservice_age=5000 to 10000
Keep apps in ram for much longer then original! For me the battery life is unaffected, might even be better.
scloss84 said:
I am so glad I stumble across this, I just want to say, changing
ro.vendor.qti.sys.fw.bservice_limit=5 to 120
ro.vendor.qti.sys.fw.bservice_age=5000 to 10000
Keep apps in ram for much longer then original! For me the battery life is unaffected, might even be better.
Click to expand...
Click to collapse
Also want to solve this issue.
On which OOS Version you are? (i am on 10.3.1)
Does this really work in newer OOS Versions?
I have read elsewhere that those settings dont work on newer versions, sadly, cant find the thread/source.
thx
pOpY
popy2006 said:
Also want to solve this issue.
On which OOS Version you are? (i am on 10.3.1)
Does this really work in newer OOS Versions?
I have read elsewhere that those settings dont work on newer versions, sadly, cant find the thread/source.
thx
pOpY
Click to expand...
Click to collapse
I'm actually Oneplus 6, OOS 9.0.9.
I also read that it doesn't work on Android 10 because magisk doesn't mount /system in Android 10, but there is a magisk module workaround that you can use. And hopefully magisk will update in the near future to fix that. Just google "Android 10 can't edit build.prop" and you'll find heaps of info.
This is what I have in my build.prop file and it seems to help. I have Oreo it works great on my phone I don't know about later versions of Oreo.
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_age=5000
ro.vendor.qti.sys.fw.bservice_limit=5
ro.sys.fw.bg_apps_limit=64

Categories

Resources