Possible Doze improvements - T-Mobile Samsung Galaxy S7 Edge Guides, News, & Di

Just want to pitch in and try and help people with some battery drain issues(This should reduce idle standby drain), possible solution is improving how Doze functions! None of this is my work and i am no responsible for anything that happens to your devices while you do theses tweaks
1. Agressive Doze by Greenify
http://forum.xda-developers.com/apps/greenify/aggressive-doze-experimental-feature-t3223731
reduces the time it takes to enter Doze mode significantly, claim to enter Doze in minutes instead of ~1 hour.
granted the features need root but there is a work around with adb by granting some permissions which lets you utilize these features on MM
here is a little guide on it
https://greenify.uservoice.com/know...o-grant-permissions-required-by-some-features
2. Doze setting editor
http://forum.xda-developers.com/android/apps-games/root-doze-settings-editor-android-t3235130
lets you change the parameters of Doze which lets you enter it quicker, idle longer, and some other stuff i didn't understand lol
This app already has a few builtin profiles that are readily available for use. Again you will have to grant certain permissions through adb for this app to actually work.
Please provide input on this if you think this was useful or if it caused chaos for you. I am personally using aggressive doze to find a good baseline on improvements with that and some time this week i will switch over to the Doze setting editor to see if that yields better/worse improvement

Doze editor requires root...

Tikerz said:
Doze editor requires root...
Click to expand...
Click to collapse
Yes but i think it can be done without root as well in the OP it states :
This app is a simple editor of the settings or parameters which affect the operation of Doze.
If no root is available then it will offer an ADB command that will modify the doze settings.
Because there is no root on open it will always load the default settings.

guaneet said:
Yes but i think it can be done without root as well in the OP it states :
This app is a simple editor of the settings or parameters which affect the operation of Doze.
If no root is available then it will offer an ADB command that will modify the doze settings.
Because there is no root on open it will always load the default settings.
Click to expand...
Click to collapse
Interesting. I'll have to try that.
Update: it works!

Tikerz said:
Interesting. I'll have to try that.
Update: it works!
Click to expand...
Click to collapse
Is there a chance that we can use adb to add multi-user to the unrooted s7 Edge?

Related

[Q] Basic Battery Saving Tips

I'm sure this question has been answered quite a lot of times on the forums here, but I'd simply like to gather all useful tips for extending my Android device's battery life, from the well-known "Turn off Wi-Fi when you're not around your hotspot" to "Allow only a few background services to run reducing CPU activity etc".
Just simple tweaks that do not require flashing any ROMs or root access in the first place.
Thanks!
devizegr said:
I'm sure this question has been answered quite a lot of times on the forums here, but I'd simply like to gather all useful tips for extending my Android device's battery life, from the well-known "Turn off Wi-Fi when you're not around your hotspot" to "Allow only a few background services to run reducing CPU activity etc".
Just simple tweaks that do not require flashing any ROMs or root access in the first place.
Thanks!
Click to expand...
Click to collapse
Nothing will be as powerfull as rooting your device (I know you didn't want to hear this kind of answer... )
BUT may be u can use some informations:
- Turn mobile network to "2G"
- Disable autosync
- Lower brightness of display
- Reduce "display stay active" time
- When u have an AMOLED display, use a "black" skin for your rom
- Disable wifi notification
- "disable wifi"
- "Allow only a few background services to run"
A real improvement will be:
- root
- uninstall all the stupid preinstalled crap of your stockrom
- disable autostarts you dont need
- may be disable wakelocks of apps you need and which act a lot on their own
- install a kernel which allows you control cpu settings --> Scheduler/Governor + CPU frequencies (lowering CPU freq)
- or setting cpu freq profiles automatically + undervolt system
misc:
get a stronger battery
I hope other members will add some or many more usefull tips
LS.xD said:
Nothing will be as powerfull as rooting your device (I know you didn't want to hear this kind of answer... )
Click to expand...
Click to collapse
Truth is my device is already rooted with a custom ROM which isn't very stable and it is still in development. This is why I'm asking for a few tips. The battery life is already awful and I don't want to mess up with any system files so just basic tips that will do the trick are needed.
devizegr said:
Truth is my device is already rooted with a custom ROM which isn't very stable and it is still in development. This is why I'm asking for a few tips. The battery life is already awful and I don't want to mess up with any system files so just basic tips that will do the trick are needed.
Click to expand...
Click to collapse
Why you don't tell me phone type and the rom u actually use?
LS.xD said:
Why you don't tell me phone type and the rom u actually use?
Click to expand...
Click to collapse
Sony Xperia Sola w/ Unofficial CM11
http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
devizegr said:
Sony Xperia Sola w/ Unofficial CM11
http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
Click to expand...
Click to collapse
This CM11 version? --> http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
LS.xD said:
This CM11 version? --> http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
Click to expand...
Click to collapse
Yes! I am aware that there is already a battery life issue even on Nexus 5 so no matter what ROM it is, if it is baed on 4.4.2 it's going to have battery issues.
devizegr said:
Yes! I am aware that there is already a battery life issue even on Nexus 5 so no matter what ROM it is, if it is baed on 4.4.2 it's going to have battery issues.
Click to expand...
Click to collapse
I use HTC One S + Samsung Galaxy W and both run 4.4.2 and are stable to use also battery life is ok to me
I'm using greenify and lux (brightness app which enable you to make the screen even dimmer). These two apps make my phone last longer
Skickat från min GT-I9505 via Tapatalk

Here is how I rooted my standard S7 with nougat with perfect settings

*NOTE* This is for the standard S7. I made a mistake and put this in the S7 Edge forum. You can follow the same steps just please use the correct nougat version.
First I want to apologize for the formatting of this thread. I am new to making threads. Also I do not take credit for anything posted here. All credit goes to the amazing developers. Also a big thank you to Araltd for compiling everything.
Here's how I rooted my phone with nougat and all of the tweaks to make it run perfect. Please follow my instructions completely. This guide assumes you know how to use ADB so if you do not know how to use ADB there are several guides online.
*NOTE* This is for a T-mobile Galaxy S7 so if you try with another carrier YYMV
Also, if you follow this guide it means you have to buy some apps but the devs deserve your support.
You could do it with free apps but these are the apps I chose and recommend.
Download the nougat file for Odin (thank you micallan_17)
https://drive.google.com/file/d/0B7C7EaSz8kzrQzhxZnlSemNscEE/view
If your device is rooted you must unroot it and do a factory reset. Once you are back at the welcome screen turn your off your phone and go into download mode.
Now you must use the stock Odin to install nougat you downloaded from above (use CSC and not Home CSC). Doing this will erase everything on your phone which is needed to run smoothly.
http://odindownload.com/download/Odin3_v3.12.3.zip
Once you are back up and running you can check really quick to see that you got nougat via settings.
Now download the modified Odin (thank you PrinceComsy):
https://www.androidfilehost.com/?fid=24591023225177749
Put your phone into download mode and open up the modified Odin. Download this file and put “S7_Qualcomm” into AP. Don’t touch anything else and just click start and your phone should restart once it is done.
https://www.androidfilehost.com/?fid=457095661767141717
Download the SU file thanks to jrkruse:
https://www.androidfilehost.com/?fid=817550096634750763
Once your phone is completely back on extract the folder and open it. In some empty space in the folder hold shift and press right click then click “open command window here.’ Now type root.bat and your phone will restart once done.
Set everything up on your phone like you normally would and then open up SuperSU and click Settings and make sure Enable SU during boot is checked.
Download this: https://www.androidfilehost.com/?fid=457095661767144116
Remove hurricane icon
--------------------
Follow the instructions in this thread: https://forum.xda-developers.com/showpost.php?p=71404469&postcount=453
Huge thank you to jrkruse
You will need to download FlashFire (free at the play store)
This is the part that most of the applications I use will cost money but it makes a huge difference.
ROM Toolbox Pro
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolboxpro&hl=en
Titanium Backup + Pro
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en
Originally Posted by billa
Note (and suggestions)
----
Before and after rooting wipe the cache.
For tweak settings to stick, must reboot multiple times.
Security Updates OFF
--------------------
Settings > Lock Screen > Security > Other Security > Security Policy Updates > OFF and Wi-Fi only
Disable (things to disable after root - Use Titanium Backup or Package Disabler Pro for Samsung, both available from the Play Store - Worth the price to buy!) if some are missing don’t worry about it.
-------
Samsung DM Phone Interface
Samsung DM Service
SecurityLogAgent
com.sec.android.soagent
com.wssyncmldm
tethering.automation
tethering.provisions
--------------
General Tweaks
Go to settings > about tablet > click on Build number repeatedly until it says you’re a developer
Press the back arrow one time and click on Developer Options
Scroll down and turn off all the scales (window, transition, animator)
Go back to settings and click on Connections > scroll down to More connection settings
Make sure nearby devices scanning is off
Once you are rooted and ready to go
--------------
Install ROM Toolbox Pro and open it. Swipe over to the left one time until it says Performance. Click on CPU put the top slider all the way to the right. The bottom bar put it all the way to the left. I/O Scheduler leave it to cfq and for Governor put interactive. Also make sure apply on boot is checked. Freeze the apps mentioned above and anything else you feel must be bloatware.
------------------
Download BuildProp Editor to do the following tweaks (if needed)
https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor&hl=en
SHealth fix
-----------
Set ro.config.tima to 0 in build.prop
WiFi passwords fix
------------------
Set ro.securestorage.support to false in build.prop
VOLTE/RCS icons OFF
-------------------
Copy the imsservice.apk from the root zip to
/system/priv-app/imsservice/
and set permissions to -rw-r--r--
Data toggle
-----------
Use SQLite editor and add MobileData to a string in settings.db
Sprint LTE fix
--------------
In Build.Prop change the following:
ro.cdma.default_numeric=310000 to 310120
ro.cdma.default_alpha=Chameleon to Sprint
ro.build.characteristics=Chameleon to Sprint
Fix for not being able to make or receive calls
--------------
Go into settings
Click Connections
Click Wi-Fi Calling
Click Cellular Network Preferred
Go back two times and click on Mobile networks
Select Network mode and select 3G/2G (auto connect)
Restart your phone and call 611 just to make sure the call goes through
Hangup and go back to Network mode and switch back to LTE mode”
Lspeed
--------------
Download Lspeed: https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en
These are the settings I’m using: (attached)
That’s it for Lspeed. Do not install govtuner as Lspeed already has it so it would be redundant. Also any other “tweaking” program I have personally tried is BS so I wouldn't waste my time.
Greenify (please buy the donation package as well)
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en
---------------
Add as many apps as you can. Don’t put apps that need to stay alert (alarm clock, calendar, text, etc). You can put my settings I attached as well.
Adaway: https://www.androidfilehost.com/?fid=817550096634744719
---------------
Absolutely needed for anyone using root. Takes away all ads (except youtube ads you have to do something separate for that.)
Override DNS: https://play.google.com/store/apps/details?id=net.mx17.overridedns&hl=en
---------------
Completely optional but it has made my internet speed so much faster. Make sure you select OpenDNS (port 443) and click apply.
New Tweaks Added Here:
---------------
My phone stopped going into deep sleep for some reason and the battery was draining even while the screen is off so I did the following to fix it.
I installed an app called ForceDoze: https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze&hl=en
Once installed charge your phone to 100% and then turn on the app.
Important Once your phone hits 100% battery life go into recovery mode and wipe cache and then turn your phone back on and disconnect the charger.
---------------
Installed new BusyBox and it has made my phone a lot faster.
I installed this BusyBox app: https://play.google.com/store/apps/details?id=ru.meefik.busybox&hl=en
I didn't have to remove the current BusyBox installation as it installed over it. So far my phone is fast and the battery life is amazing!
I’ll keep this updated. If you have any tips as well post them here and I’ll be sure to add them, thank you!
Where is the s7 Qualcomm file?
Lmax579 said:
Where is the s7 Qualcomm file?
Click to expand...
Click to collapse
Sorry I forgot to add that in. Here it is though: https://www.androidfilehost.com/?fid=457095661767141717
Do you have any lag after rooting and applying the tweaks? How is your battery life?
Still_living714 said:
Do you have any lag after rooting and applying the tweaks? How is your battery life?
Click to expand...
Click to collapse
No lag whatsoever and battery life is amazing. I'll post some battery stats once I get a full day of stats. I have some more tweaks but I think these are good enough for now until I test out my new ones.
cjlopez213 said:
No lag whatsoever and battery life is amazing. I'll post some battery stats once I get a full day of stats. I have some more tweaks but I think these are good enough for now until I test out my new ones.
Click to expand...
Click to collapse
so far is everything working? About to follow your steps and root my s7.
Still_living714 said:
so far is everything working? About to follow your steps and root my s7.
Click to expand...
Click to collapse
Everything is working perfectly. The only thing is I have a standard galaxy S7 and I know this is the edge forums so just flash the correct versions.
Still_living714 said:
so far is everything working? About to follow your steps and root my s7.
Click to expand...
Click to collapse
Let me know your results after maybe I'll follow your lead after
I have to try this it looks promising
Sent from my SM-G935T using XDA-Developers Legacy app
Great Tips. Thanks for the help.
cjlopez213 said:
*NOTE* This is for the standard S7. I made a mistake and put this in the S7 Edge forum. You can follow the same steps just please use the correct nougat version.
First I want to apologize for the formatting of this thread. I am new to making threads. Also I do not take credit for anything posted here. All credit goes to the amazing developers. Also a big thank you to Araltd for compiling everything.
Here's how I rooted my phone with nougat and all of the tweaks to make it run perfect. Please follow my instructions completely. This guide assumes you know how to use ADB so if you do not know how to use ADB there are several guides online.
*Note* This is for a T-mobile Galaxy S7 so if you try with another carrier YYMV
Also, if you follow this guide it means you have to buy some apps but the devs deserve your support.
You could do it with free apps but these are the apps I chose and recommend.
Download the nougat file for Odin (thank you micallan_17)
https://drive.google.com/file/d/0B7C7EaSz8kzrQzhxZnlSemNscEE/view
If your device is rooted you must unroot it and do a factory reset. Once you are back at the welcome screen turn your off your phone and go into download mode.
Now you must use the stock Odin to install nougat you downloaded from above (use CSC and not Home CSC). Doing this will erase everything on your phone which is needed to run smoothly.
http://odindownload.com/download/Odin3_v3.12.3.zip
Once you are back up and running you can check really quick to see that you got nougat via settings.
Now download the modified Odin (thank you PrinceComsy):
https://www.androidfilehost.com/?fid=24591023225177749
Put your phone into download mode and open up the modified Odin. Download this file and put “S7_Qualcomm” into AP. Don’t touch anything else and just click start and your phone should restart once it is done.
https://www.androidfilehost.com/?fid=457095661767141717
Download the SU file thanks to jrkruse:
https://www.androidfilehost.com/?fid=817550096634750763
Once your phone is completely back on extract the folder and open it. In some empty space in the folder hold shift and press right click then click “open command window here.’ Now type root.bat and your phone will restart once done.
Set everything up on your phone like you normally would and then open up SuperSU and click Settings and make sure Enable SU during boot is checked.
Download this: https://www.androidfilehost.com/?fid=457095661767144116
Remove hurricane icon
--------------------
Follow the instructions in this thread: https://forum.xda-developers.com/showpost.php?p=71404469&postcount=453
Huge thank you to jrkruse
You will need to download FlashFire (free at the play store)
This is the part that most of the applications I use will cost money but it makes a huge difference.
ROM Toolbox Pro
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolboxpro&hl=en
Titanium Backup + Pro
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en
Originally Posted by billa
Note (and suggestions)
----
Before and after rooting wipe the cache.
For tweak settings to stick, must reboot multiple times.
Security Updates OFF
--------------------
Settings > Lock Screen > Security > Other Security > Security Policy Updates > OFF and Wi-Fi only
Disable (things to disable after root - Use Titanium Backup or Package Disabler Pro for Samsung, both available from the Play Store - Worth the price to buy!) if some are missing don’t worry about it.
-------
Samsung DM Phone Interface
Samsung DM Service
SecurityLogAgent
com.sec.android.soagent
com.wssyncmldm
tethering.automation
tethering.provisions
--------------
General Tweaks
Go to settings > about tablet > click on Build number repeatedly until it says you’re a developer
Press the back arrow one time and click on Developer Options
Scroll down and turn off all the scales (window, transition, animator)
Go back to settings and click on Connections > scroll down to More connection settings
Make sure nearby devices scanning is off
Once you are rooted and ready to go
--------------
Install ROM Toolbox Pro and open it. Swipe over to the left one time until it says Performance. Click on CPU put the top slider all the way to the right. The bottom bar put it all the way to the left. I/O Scheduler leave it to cfq and for Governor put interactive. Also make sure apply on boot is checked. Freeze the apps mentioned above and anything else you feel must be bloatware.
------------------
Download BuildProp Editor to do the following tweaks (if needed)
https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor&hl=en
SHealth fix
-----------
Set ro.config.tima to 0 in build.prop
WiFi passwords fix
------------------
Set ro.securestorage.support to false in build.prop
VOLTE/RCS icons OFF
-------------------
Copy the imsservice.apk from the root zip to
/system/priv-app/imsservice/
and set permissions to -rw-r--r--
Data toggle
-----------
Use SQLite editor and add MobileData to a string in settings.db
Sprint LTE fix
--------------
In Build.Prop change the following:
ro.cdma.default_numeric=310000 to 310120
ro.cdma.default_alpha=Chameleon to Sprint
ro.build.characteristics=Chameleon to Sprint
Fix for not being able to make or receive calls
--------------
Go into settings
Click Connections
Click Wi-Fi Calling
Click Cellular Network Preferred
Go back two times and click on Mobile networks
Select Network mode and select 3G/2G (auto connect)
Restart your phone and call 611 just to make sure the call goes through
Hangup and go back to Network mode and switch back to LTE mode”
Lspeed
--------------
Download Lspeed: https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en
These are the settings I’m using: (attached)
That’s it for Lspeed. Do not install govtuner as Lspeed already has it so it would be redundant. Also any other “tweaking” program I have personally tried is BS so I wouldn't waste my time.
Greenify (please buy the donation package as well)
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en
---------------
Add as many apps as you can. Don’t put apps that need to stay alert (alarm clock, calendar, text, etc). You can put my settings I attached as well.
Adaway: https://www.androidfilehost.com/?fid=817550096634744719
---------------
Absolutely needed for anyone using root. Takes away all ads (except youtube adds you have to do something separate for that.)
Override DNS: https://play.google.com/store/apps/details?id=net.mx17.overridedns&hl=en
---------------
Completely optional but it has made my internet speed so much faster. Make sure you select OpenDNS (port 443) and click apply.
I have some more but I’m out of time. I’ll keep this updated. If you have any tips as well post them here and I’ll be sure to add them, thank you!
Click to expand...
Click to collapse
Quick question, what app do you use to tune the BIG processors? CPU control will only adjust the two smaller cores. How do I get the larger cores to lock to 300mhz min and 2100mhZ MAX
I have tried kernel auditor and it does not seem to stick after hour or so of use. So I'm looking for another tuning option
Thanks for the L speed recommendation
Amd4life said:
Quick question, what app do you use to tune the BIG processors? CPU control will only adjust the two smaller cores. How do I get the larger cores to lock to 300mhz min and 2100mhZ MAX
I have tried kernel auditor and it does not seem to stick after hour or so of use. So I'm looking for another tuning option
Thanks for the L speed recommendation
Click to expand...
Click to collapse
I use ROM Toolbox Pro. I've used other apps but this is the one that worked best for me.
cjlopez213 said:
I use ROM Toolbox Pro. I've used other apps but this is the one that worked best for me.
Click to expand...
Click to collapse
Rom tool box pro works GREAT for the small cores, sets them better than other apps. but it does NOT offer settings for the two large core processors---unless I am missing a menu setting somewhere
I have the full paid version
Amd4life said:
Rom tool box pro works GREAT for the small cores, sets them better than other apps. but it does NOT offer settings for the two large core processors---unless I am missing a menu setting somewhere
I have the full paid version
Click to expand...
Click to collapse
You can try EX Kernel Manager. I haven't had to change the other cores.
Added two new tweaks. I'll keep adding more soon!
Thank you for this wonderful guide.
Thanks a million for this. i just did all the steps now lets see this baby fly. Quick question, have you tried viper for android though flahsfire and if so which one works. Again, this is a great set up even if just from the work you put into it for the community.

[GUIDE] Ways to decrease battery drain for poco

Hello guys,
I am happy to share some ways to decrease battery drain for which is problem for most poco stock miui non root users:
1- Go to every app you don't want on background (always active) and make it (restricted backgroud activity) through Settings-Manage app-choose your app-battery saver
2- For system app: you can do the same by going Settings-Manage app-choose your app-permissions-information icon-battery-choose first option and then restrict app
3- Network signals some times drains battery alot, you could decrease it by changing network bands by the following:
Go to dialer and write (*#*#4636#*#*)-phone information-set preferred network-choose LTE\CDMA\UMTS auto prl (tested on global rom was good), note that you need to change it again after every reboot
4- Disable adaptive limit battery option through Setting-battery&perfomance
5-Activate force close button through Setting-additional setting-buttons&gestures-close current app and choose shortcut you want, then at any app you should force close when you are finished with it.
6- Go to every MIUI app and disable automatic updates and recommendation receive
7- Disable location when you are finished through Setting-additional settings-privacy-location and also disable wifi scanning after every disable
8- Go to Google app through Settings-Google and disable every activity on it as you can
9- Install Greenify app from store and work with (non root device) and hibernate all apps you don't need as background
10- Disable automatic brightness, and also decrease the brightness as you can to save power
11- Go to settings-additional settings-privacy-special access-Battery optimization and then make all apps (optimized)
12-Go to settings-additional settings-authorization&revocation and then disable all apps except (updater-system app updater-feedback-battery&performance-Xiaomi sim activation-settings)
I hope these steps could help you and I'm waiting your comments for additional ways or correcting anything
Any review or test results ?
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Hemudon said:
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Click to expand...
Click to collapse
I think this is from Android system itself due to alot of system app running on backgroud
Hemudon said:
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Click to expand...
Click to collapse
Its not their thing its an android thing. It gets heavier with every update, and since they (its a good thing gone bad) made a lot of those updates standalone of android version it makes like old tablets unusable over the yeras unlike them ipads.
That being said, the advantage of having 4000mah battery is that you still get through every day and have more than the usual midrange 3000mah phone. I get through any day for weeks now even playing games. The tips in this thread are awesome and apply to any phone.
I might as well advise you to clean your USB type-c port once in a while with toothpick since dusts can cause unnecessary wakelocks to your device
whrynox said:
I might as well advise you to clean your USB type-c port once in a while with toothpick since dusts can cause unnecessary wakelocks to your device
Click to expand...
Click to collapse
so strange
magaedy said:
so strange
Click to expand...
Click to collapse
Dust in the port really causes wakelocks. For proof, visit the BBS thread.
next guide will include stop using the phone and turning it off completely
Instead of doing all these, just spend a few bucks and get a powerbank.
magaedy said:
Hello guys,
I am happy to share some ways to decrease battery drain for which is problem for most poco stock miui non root users:
[...]
Click to expand...
Click to collapse
Hi magaedy, this list is very useful thank you very much.
Thanks to a RF detector, i found out that my Poco was emitting very often without being sollicited, now I know what to try first.
(In case you are interested in my setup, you can have a look on YouTube searching JaMa6iK4lbM).
Again thanks a lot, this forum is really interesting.
Regards.
GBoTwice said:
Hi magaedy, this list is very useful thank you very much.
Thanks to a RF detector, i found out that my Poco was emitting very often without being sollicited, now I know what to try first.
(In case you are interested in my setup, you can have a look on YouTube searching JaMa6iK4lbM).
Again thanks a lot, this forum is really interesting.
Regards.
Click to expand...
Click to collapse
I saw your video and cannot completely understand as it is very advanced but what I want to ask is if poco is emiting waves too much to be harmful on our health ?????
magaedy said:
I saw your video and cannot completely understand as it is very advanced but what I want to ask is if poco is emiting waves too much to be harmful on our health ?????
Click to expand...
Click to collapse
Hi magaedy, no, the Pocophone F1 has nothing special regarding its RF electromagnetic radiation, it is just that I own one and that I can do some tests with it. In terms of SAR (Specific Absorption Rate), the Poco even complies with the FCC threshold which is the most stringent.
As a personal point view, i would just avoid to keep it onto my body when i must upload big files, or onto my head for long phone calls, especially when i'm not sure about the RF coverage (bad coverage implies that the mobile emits at its full power, which is e.g. 2 watts in GSM 900).
Depending on my LED light, now I can tell for sure
Rgds,
GBoTwice
smatm said:
next guide will include stop using the phone and turning it off completely
Click to expand...
Click to collapse
I want that suggestion. Gonna try it now
1.Uninstall unused apps
2.Force stop every app
3.turn on airplane mode when u r not use phn.
4.stop few sensor-brightness,gyro,ambient(if there is any software to stop sensor forcefully pls reffer)
5.User suggest BO,i suggest battery optimize must be off
6.use magisk lkt-battery
7.*DONT PLAY PUBG* its a battery hunger demon.
smatm said:
next guide will include stop using the phone and turning it off completely
Click to expand...
Click to collapse
Very funny.
I like this recommendation very much.:fingers-crossed:
Cheers
sssyraj.
I would also wanted to add some battery saving tips:
1. Stick to only one, either Google or MIUI, cloud sync provider then disable everything you don't need on the other.
2. Go to Settings -> Permissions -> Other permissions -> Permissions (tab) -> Start in Background. Only choose the apps that you wanted permissions to receive notifications or third-party sync apps regularly. Others should be disabled. (IDK if this conflicts with MIUI's battery saver but I did it anyway).
3. Disable Double tap to wake or enable it in combination with pocket mode.
4. Put your phone on your pocket with display facing your leg. Prevents false trigger of FP scanner.
I have another suggestion. If using a custom ROM, don't install GApps. Instead use MicroG . I haven't done a side by side comparison, and I'll admit my usage today has been fairly lite, but so far my battery life is great!
I'm running the latest AOSiP ROM.
BentMetal said:
I have another suggestion. If using a custom ROM, don't install GApps. Instead use MicroG . I haven't done a side by side comparison, and I'll admit my usage today has been fairly lite, but so far my battery life is great!
I'm running the latest AOSiP ROM.
Click to expand...
Click to collapse
Dude could you please send me the link of microG please?
nosiobadx said:
Dude could you please send me the link of microG please?
Click to expand...
Click to collapse
I use the MicroG zip from here:
https://downloads.nanolx.org/NanoDroid/Beta/
If you also flash the f-droid zip, you should also install the f-droid extension module through Magisk.

Essential Tweaks

Hey everyone! Hope you're all doing fine. I just updated to Android 10, coming from AICP Pie, and I noticed that battery life took a serious hit compared to AICP. Now I know that AICP (and probably many other custom ROMs) use EAS by default, which could be credited for the great performance and battery life you get with these setups. This didn't stop me from conducting some tests and experimenting with some changes in order to try and improve the battery life I am getting on Android 10 (and possibly all previous versions of the stock ROM). Anyway, without further ado, here is a script that tweaks the phone a little, which should improve your phone's battery life on STOCK ROMs, mainly Android 10 but it is also applicable to Android 9, though I have mainly tested it on Android 10 and the deprecated developer previews and beta builds of Android 10. A link to download the script is provided down below, right below the prerequisites and instructions.
Prerequisites
1- An Essential PH-1 (of course!)
2- Magisk (make sure to have the latest version installed)
3- A terminal emulator app -- I use this one here:
https://play.google.com/store/apps/details?id=jackpal.androidterm
4- Any file manager app.
Instructions
1- Download the script from the link below.
2- For more convenience, move the script you just downloaded to the root of your internal storage (/sdcard) using any file manager if your choice.
3- Open the terminal emulator app.
4- Type "su" (without the quotes) and hit the enter/return key on your keyboard to grant it root access (Magisk could display a pop-up window asking whether you want to grant this app root access. Make sure to tap in Grant. This usually happens once).
5- Afterwards, type "sh /sdcard/essential-tweaks" (without quotes) and hit the enter/return key on your keyboard to execute the script.
6- Voila! You're done!
--> In case you think the script has caused any regressions your are dissatisfied with, simply reboot your phone since this script doesn't automatically get applied on boot.
--> In case you rebooted your phone and wish to re-apply the script, simply follow the same instructions again.
Download
G Drive: https://drive.google.com/file/d/101Z_Co7uVU_h2blanJ88MV8x9PpRcOvg/view?usp=drivesdk
Let me know your thoughts down below. Cheers!
Reserved
Reserved 2
Sounds interesting and I'd like to try it. I don't know if you know this though, but the file on Google Drive is set to "ask permission" to download it.
Tanner1294 said:
Sounds interesting and I'd like to try it. I don't know if you know this though, but the file on Google Drive is set to "ask permission" to download it.
Click to expand...
Click to collapse
Fixed. Sorry for inconvenience. Thanks for letting me know!
#justgoogledrivethings
Mostafa Wael said:
Hey everyone! Hope you're all doing fine. I just updated to Android 10, coming from AICP Pie, and I noticed that battery life took a serious hit compared to AICP. Now I know that AICP (and probably many other custom ROMs) use EAS by default, which could be credited for the great performance and battery life you get with these setups. This didn't stop me from conducting some tests and experimenting with some changes in order to try and improve the battery life I am getting on Android 10 (and possibly all previous versions of the stock ROM). Anyway, without further ado, here is a script that tweaks the phone a little, which should improve your phone's battery life on STOCK ROMs, mainly Android 10 but it is also applicable to Android 9, though I have mainly tested it on Android 10 and the deprecated developer previews and beta builds of Android 10. A link to download the script is provided down below, right below the prerequisites and instructions.
Prerequisites
1- An Essential PH-1 (of course!)
2- Magisk (make sure to have the latest version installed)
3- A terminal emulator app -- I use this one here:
https://play.google.com/store/apps/details?id=jackpal.androidterm
4- Any file manager app.
Instructions
1- Download the script from the link below.
2- For more convenience, move the script you just downloaded to the root of your internal storage (/sdcard) using any file manager if your choice.
3- Open the terminal emulator app.
4- Type "su" (without the quotes) and hit the enter/return key on your keyboard to grant it root access (Magisk could display a pop-up window asking whether you want to grant this app root access. Make sure to tap in Grant. This usually happens once).
5- Afterwards, type "sh /sdcard/essential-tweaks" (without quotes) and hit the enter/return key on your keyboard to execute the script.
6- Voila! You're done!
--> In case you think the script has caused any regressions your are dissatisfied with, simply reboot your phone since this script doesn't automatically get applied on boot.
--> In case you rebooted your phone and wish to re-apply the script, simply follow the same instructions again.
Download
G Drive: https://drive.google.com/file/d/101Z_Co7uVU_h2blanJ88MV8x9PpRcOvg/view?usp=drivesdk
Let me know your thoughts down below. Cheers!
Click to expand...
Click to collapse
Neat...
A kranel tweaker...
In my opinion:
The damn powerhint is probably the worst offender to battery...
Currently, with magisk, I just remove /vendor/etc/powerhint.xml
I am also using kernel touchboost so I can idle down to 300...
If your battery doesn't suck... You can switch back to 518 and 806 for minimum frequencies, disable msm touchboost, and kill the powerhint... And get MUCH closer to where you were with AICP on Pie
rignfool said:
Neat...
A kranel tweaker...
In my opinion:
The damn powerhint is probably the worst offender to battery...
Currently, with magisk, I just remove /vendor/etc/powerhint.xml
I am also using kernel touchboost so I can idle down to 300...
If your battery doesn't suck... You can switch back to 518 and 806 for minimum frequencies, disable msm touchboost, and kill the powerhint... And get MUCH closer to where you were with AICP on Pie
Click to expand...
Click to collapse
Is that similar to disabling perfd?
Because that is what I did (and incidentally what my script does).
Thanks a lot for your suggestion!
Mostafa Wael said:
Is that similar to disabling perfd?
Because that is what I did (and incidentally what my script does).
Thanks a lot for your suggestion!
Click to expand...
Click to collapse
No sir...
The powerhint has something to do with the PowerHals directly...
You'll notice if you watch any frequency monitor that when you touch the screen... It jumps to 1.1Ghz on both big and little ... That's NUTS...
It also will run the processor at 1.9 and 2.5 for 5 seconds on app launch... Also CRAZY and unnecessary
Perfd controls the profiles in /vendor/etc/... I think there's 8 of em...
And like mpdecision before it... It sucks...
On a side:
I've been on Q since beta 2... And have put together a magisk module that cuts frequencies down... 1.8 Max for little and 2.0 for big... Kills perfd... Kills the powerhint by replacing with a 0 byte file... Ups zram to 1 GB... And puts touchboost to 825 and 499...
I just incorporated your scheduler changes and I'll let you know what I come up with...
If you're interested in the module ... I'll share it .. just let me know
Edit: @KuranKaname approves the frequency choices BTW
rignfool said:
No sir...
The powerhint has something to do with the PowerHals directly...
You'll notice if you watch any frequency monitor that when you touch the screen... It jumps to 1.1Ghz on both big and little ... That's NUTS...
It also will run the processor at 1.9 and 2.5 for 5 seconds on app launch... Also CRAZY and unnecessary
Perfd controls the profiles in /vendor/etc/... I think there's 8 of em...
And like mpdecision before it... It sucks...
On a side:
I've been on Q since beta 2... And have put together a magisk module that cuts frequencies down... 1.8 Max for little and 2.0 for big... Kills perfd... Kills the powerhint by replacing with a 0 byte file... Ups zram to 1 GB... And puts touchboost to 825 and 499...
I just incorporated your scheduler changes and I'll let you know what I come up with...
If you're interested in the module ... I'll share it .. just let me know
Edit: @KuranKaname approves the frequency choices BTW
Click to expand...
Click to collapse
Yes I know about the max frequency values. These used to be the default in Kuran's AICP too
Interesting, so you mean to say that this is completely different from perfd? Well, I only disabled perfd and I am not seeing the phone jumping back to 1.1GHz while interacting with the screen or locking on max frequencies while launching apps.
Also, what command are you using to disable perfd on Q? I just found out that the usual "stop perfd" command is not working anymore like it used to on Pie :/
I used EXKM to disable it and it works just fine :good:
Let me know if my sched tweaks bring any further improvements to you. Cheers!
EDIT: these input boost frequency values used to be the ones Sultanxda go for too iirc right?
Mostafa Wael said:
Yes I know about the max frequency values. These used to be the default in Kuran's AICP too
Interesting, so you mean to say that this is completely different from perfd? Well, I only disabled perfd and I am not seeing the phone jumping back to 1.1GHz while interacting with the screen or locking on max frequencies while launching apps.
Also, what command are you using to disable perfd on Q? I just found out that the usual "stop perfd" command is not working anymore like it used to on Pie :/
I used EXKM to disable it and it works just fine :+1:
Let me know if my sched tweaks bring any further improvements to you. Cheers!
Click to expand...
Click to collapse
Interesting ..
stop perfd
getprop|grep perfd yields the service has stopped for me
rignfool said:
Interesting ..
stop perfd
getprop|grep perfd yields the service has stopped for me
Click to expand...
Click to collapse
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Mostafa Wael said:
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Click to expand...
Click to collapse
Interesting... I just put back the powerhint... While stopping perfd and now it's listening ... I wonder if I came up with that when I had the typo in my script...
Thanks for forcing me to debug...
---------- Post added at 02:30 PM ---------- Previous post was at 02:18 PM ----------
Mostafa Wael said:
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Click to expand...
Click to collapse
OHHHH...
Are you using service.d to run your script?
If so... You need
while [ "$(getprop sys.boot_completed)" != 1 ];
do sleep 1;
done
sleep 5
Before... Otherwise init gonna reset your stuff...
And post-fs-data.d is WAAY too early
So I have been doing a lot of tracing and testing some new changes and, well, I think it is very difficult to squeeze any more battery life on stock ROMs. Which means that it is highly unlikely that this script is going to be updated with new additions as this is practically the best we could reach at the moment. However, I will keep digging deep and see if I can come up with any updates.
To put things into perspective, here is a quick comparison with the default stock ROM tunings.
By default, I would get an average active drain of 14%/h per charge cycle, peaking at 16%/h
After applying this script the average active drain rate would drop to around 12-13%/h, peaking at 15%/h.
In other words, there is around 1-2%/h improvement in active drain rate as per my usage.
Idle drain rate is fairly similar though.
Mostafa Wael said:
So I have been doing a lot of tracing and testing some new changes and, well, I think it is very difficult to squeeze any more battery life on stock ROMs. Which means that it is highly unlikely that this script is going to be updated with new additions as this is practically the best we could reach at the moment. However, I will keep digging deep and see if I can come up with any updates.
To put things into perspective, here is a quick comparison with the default stock ROM tunings.
By default, I would get an average active drain of 14%/h per charge cycle, peaking at 16%/h
After applying this script the average active drain rate would drop to around 12-13%/h, peaking at 15%/h.
In other words, there is around 1-2%/h improvement in active drain rate as per my usage.
Idle drain rate is fairly similar though.
Click to expand...
Click to collapse
hello. Thanks for your work. It's nice and works very well.
How I can add this script to autorun?
P.S. Here is screenshots of my battery life after tweaks
@Mostafa Wael Hey mate, do you remember what the experiment was that you wanted to do recently ?
Was meant to help with smoothness and battery on Android 10?
St.Noigel said:
hello. Thanks for your work. It's nice and works very well.
How I can add this script to autorun?
P.S. Here is screenshots of my battery life after tweaks
Click to expand...
Click to collapse
I really don't have any idea, I just run then every time after boot via terminal emulator ?
CamoGeko said:
@Mostafa Wael Hey mate, do you remember what the experiment was that you wanted to do recently ?
Was meant to help with smoothness and battery on Android 10?
Click to expand...
Click to collapse
Well, it was a desperate attempt by me to try and squeeze more juice on Android 10 custom ROMs, not sure it will work out on stock ROM. Basically, I am experimenting with different values for the cpusets and stune settings of each cgroup.
I'm still evaluating whether it has a significant impact or not. So far, it is almost the same...
Mostafa Wael said:
Well, it was a desperate attempt by me to try and squeeze more juice on Android 10 custom ROMs, not sure it will work out on stock ROM. Basically, I am experimenting with different values for the cpusets and stune settings of each cgroup.
I'm still evaluating whether it has a significant impact or not. So far, it is almost the same...
Click to expand...
Click to collapse
If you're running Artemis... You're wasting you're time...
Military Dictator @KuranKaname does not allow for the powerhal to accept adjustments from stune other than what HE deems required ...
You MIGHT be able to adjust scheduler values and have them mean something ...
rignfool said:
If you're running Artemis... You're wasting you're time...
Military Dictator @KuranKaname does not allow for the powerhal to accept adjustments from stune other than what HE deems required ...
You MIGHT be able to adjust scheduler values and have them mean something ...
Click to expand...
Click to collapse
Cpuset and stune values are open (besides the top-app stune boost)
I'm using elementalx kernel on android 10 nov update, and my battery drain in deep sleep is unusually high at 2 - 2.5% per hour.
I'm wondering if this script conflicts with anything with the kernel.
I took a look at the script and it looks like some of the settings I can apply in the kernel manager.

How to power off the phone at determinate percentage of the battery ?

Hi,
Still here with other questions for optimize my phone. (N20U rooted with android 12 , custom rom & kernel, tweekspro etc etc)
Reading around how to preserve the longest efficiency of the battery I would like set the interval where the phone must work.
I know that the optimum interval is 20% - 85% for the maximum numbers of cycles.
In Android 12 is possible to set the maximum value: settings > battery > more battery settings > battery protection (to enable to 85%). This work well. (I can achieve this also with ThunderTweaks).
How can I set the minimum percentage after the which it power off ? (ex at 20%)
Thanks for the tips!
giostark said:
Hi,
Still here with other questions for optimize my phone. (N20U rooted with android 12 , custom rom & kernel, tweekspro etc etc)
Reading around how to preserve the longest efficiency of the battery I would like set the interval where the phone must work.
I know that the optimum interval is 20% - 85% for the maximum numbers of cycles.
In Android 12 is possible to set the maximum value: settings > battery > more battery settings > battery protection (to enable to 85%). This work well. (I can achieve this also with ThunderTweaks).
How can I set the minimum percentage after the which it power off ? (ex at 20%)
Thanks for the tips!
Click to expand...
Click to collapse
You can try using the Tasker app, it can be used to set up virtually any automated task that you can think of.
Tnx Droid , I already seen this workaround but because I'm not a coder this would be a little complicated.
This feature for "extend" the battery life should be a common features . Is strange no one have already published something about it. (if at the end I will not found any alternative solution I'll have to dig in tasker)
giostark said:
Tnx Droid , I already seen this workaround but because I'm not a coder this would be a little complicated.
This feature for "extend" the battery life should be a common features . Is strange no one have already published something about it. (if at the end I will not found any alternative solution I'll have to dig in tasker)
Click to expand...
Click to collapse
Tasker is pretty much your only option. I don't know of any other methods of setting up automated processes with conditions of activation, I've been a member here for many years and haven't seen any other tricks to do what you want. If there is another method here, its very obscure and more complicated than Tasker.
Droidriven said:
Tasker is pretty much your only option. I don't know of any other methods of setting up automated processes with conditions of activation, I've been a member here for many years and haven't seen any other tricks to do what you want. If there is another method here, its very obscure and more complicated than Tasker.
Click to expand...
Click to collapse
Hei Droid , I have news about this :
by Dr.Ketan - I have made a app couple of yrs ago, deep discharge protection (search xda) tool. Will do similar job. I may add to Tweaks next version
Click to expand...
Click to collapse
So I will search this app and wait for the integration. I'll update this 3d.
Hi Droid,
In the mean while Ketan will post the missing apk from his 3d ( I suppose he is really busy ) :
[09.01.18][G95*][N950] Deep Discharge Protection V1.2
Deep Discharge Protection Tool You might knowing about Deep discharge issue reported on S8/S8+/N8 devices This tool simply switch off device when battery level reaches to 12% to prevent accidental Deep Discharge (While you are sleeping ;) )...
forum.xda-developers.com
I found a nice app that accomplish the same task "LBS(root)":
LBS(root) - Apps on Google Play
Shutdown your devices on low battery level.
play.google.com
I didn't have a playstore account so I downloaded it from Apkpure:
https://apkpure.com/lbs-root/com.yuandroid.low.battery.shutdown
Tested LBS. Unfortunately the app is too old for andorid 12. The developer told that would update the app for make it compatible. Right now this app reboot the device instead of turning it off.

Categories

Resources