Prevent/Bypass Battery Optimization Permission - General Questions and Answers

Hi everyone!
I noticed that some system apps don't have the Battery Optimization option in the permissions settings, specifically with UID 1000 (com.android.systemui, com.android.phone, etc...). How does it work? Is there any way to invoke a similar permission/activity or disable optimization for my apps other than through settings? Or changing some system configuration?
My phone is Xiaomi Redmi Note 8 (2021), Android 12, rooted and I'm looking for a permanent way for my apps not to be killed by the system

Devmobdroid said:
Hi everyone!
I noticed that some system apps don't have the Battery Optimization option in the permissions settings, specifically with UID 1000 (com.android.systemui, com.android.phone, etc...). How does it work? Is there any way to invoke a similar permission/activity or disable optimization for my apps other than through settings? Or changing some system configuration?
My phone is Xiaomi Redmi Note 8 (2021), Android 12, rooted and I'm looking for a permanent way for my apps not to be killed by the system
Click to expand...
Click to collapse
If you have any kind of battery optimization setting enabled, disable it, not just for each app individually, I mean disable the overall system battery optimization.

Droidriven said:
If you have any kind of battery optimization setting enabled, disable it, not just for each app individually, I mean disable the overall system battery optimization.
Click to expand...
Click to collapse
I disabled "com.miui.powerkeeper" package, the Optimization Setting it's gone now lol

Devmobdroid said:
I disabled "com.miui.powerkeeper" package, the Optimization Setting it's gone now lol
Click to expand...
Click to collapse
Do you consider that a good thing or bad thing?
Getting rid of it removes the aggravation of your apps being killed but it also effects battery life.

Droidriven said:
Do you consider that a good thing or bad thing?
Click to expand...
Click to collapse
Considering that I don't want my background apps killed, yes, it's all right.
The system run "dumpsys deviceidle disable" at boot also

Related

[TIP] To have 24 hours standby with 7+hours screen on time battery backup

Hi guys,
I just want to share my battery experience with fellow op6 users. Actually i had huge drain in couple of hours so then Hayek to discover this tip.
What to do:
Go to settings, battery, and tap on ANDROID SYSTEM.
Then disable background activity so that it should show up "APPS BACKGROUND ACTIVITY IS LIMITED WHEN NOT IN USE" message.
Then also enable battery use optimization for the same ANDROID SYSTEM. So that it should show up "OPTIMIZING BATTERY USE"message.
That's it!
And i had these results with battery back up on os 5.1.5
Attached screenshots also.
Please ignore if you knew this before.
Hit thanks if it helped you or you don't know this point.
Here the backup usage screenshot
harigavara said:
Here the backup usage screenshot
Click to expand...
Click to collapse
Don't tell tell your tips to other person's... because your battery stats are so bad !!! lol
Hmm I am missing the option for background activity. Any idea why? I ak on nolimits Rom. Is it maybe disabled there?
The sam Problem, no Option for Disable background activity
You are in wrong Android system.scroll under there is Second Android system
harigavara said:
Hi guys,
I just want to share my battery experience with fellow op6 users. Actually i had huge drain in couple of hours so then Hayek to discover this tip.
What to do:
Go to settings, battery, and tap on ANDROID SYSTEM.
Then disable background activity so that it should show up "APPS BACKGROUND ACTIVITY IS LIMITED WHEN NOT IN USE" message.
Then also enable battery use optimization for the same ANDROID SYSTEM. So that it should show up "OPTIMIZING BATTERY USE"message.
That's it!
And i had these results with battery back up on os 5.1.5
Attached screenshots also.
Please ignore if you knew this before.
Hit thanks if it helped you or you don't know this point.
Click to expand...
Click to collapse
Or you can enable the Advanced Battery Optimization (aka Aggressive Doze) and the system will do this to all apps, saving even more battery. That's why some people don't have the setting, because they already have Advanced Battery Optimization enabled. You can then get 48h+ of stand-by, with 5-6h of SOT.
Full guide here:
https://forum.xda-developers.com/oneplus-6/how-to/guide-battery-optimization-guide-t3802225
Cst79 said:
Or you can enable the Advanced Battery Optimization (aka Aggressive Doze) and the system will do this to all apps, saving even more battery. That's why some people don't have the setting, because they already have Advanced Battery Optimization enabled. You can then get 48h+ of stand-by, with 5-6h of SOT.
Full guide here:
https://forum.xda-developers.com/oneplus-6/how-to/guide-battery-optimization-guide-t3802225
Click to expand...
Click to collapse
Before i got both enabled parallely. Advanced optimization and this Android system background activity.
But folks even now i can't see Android system thing. I guess this had been disabled in 5.1.6. just after this post i updated to 5.1.6 and now it's not there. I guess who are on 5.1.5 still can have Android system thing.
I miss it ? if my backup is not going to continue same.
harigavara said:
Before i got both enabled parallely. Advanced optimization and this Android system background activity.
But folks even now i can't see Android system thing. I guess this had been disabled in 5.1.6. just after this post i updated to 5.1.6 and now it's not there. I guess who are on 5.1.5 still can have Android system thing.
I miss it if my backup is not going to continue same.
Click to expand...
Click to collapse
no this tips works well even in 5.1.6
Keep in mind that advanced optimization will break certain apps that need to run in the background to function correctly, for example TiBu scheduled backups and Dropbox synchronization. You can exempt those apps in the optimize list.
iElvis said:
Keep in mind that advanced optimization will break certain apps that need to run in the background to function correctly, for example TiBu scheduled backups and Dropbox synchronization. You can exempt those apps in the optimize list.
Click to expand...
Click to collapse
Yes this breaks the push notifications

Are notification issues still there?

Hi, I'm using EMUI 5 on my Honor 8 (FRD-L04 so still noreo ) and was wondering if we still have to set apps to ignore battery optimization to get notifications. When I first got my phone I installed all the apps and set them to ignore battery optimizations so that I could get notifications but lately my battery life is pretty ****ty, especially since these apps ignore doze. So I'd like to know if people still have to set apps to ignore doze or does notifications work like they're supposed to after so many updates? Thanks!
By ignore battery optimization you mean enabling auto-start on each app? I haven't faced any battery life decrease with it enabled.
Elpsycongroo13 said:
By ignore battery optimization you mean enabling auto-start on each app? I haven't faced any battery life decrease with it enabled.
Click to expand...
Click to collapse
Not that one. Like inside settings there is a page called ignore battery optimizations which helps apps bypass doze.

Tweaks to Reduce Lag On Nokia 7 Plus

1.Go To System-Apps-Show System Apps
2.Disable Com.Evenwell.nps.overlay.base.s60
Com.Evenwell.Powermonitor,Com.Evenwell.Powersaving.ge.overlauly,Com.hmdglobal.datago
3.Go to Apps-Permissons Revoke Modify System Setting For Power Saver App And Revoke Display Over Other Apps For Power Monitor And Nps.
My Nokia 7 Plus Is Lag Free and Even Battery Life Has Improved .
Daredvll said:
3.Go to Apps-Permissons Revoke Modify System Setting For Power Saver App And Revoke Display Over Other Apps For Power Monitor And Nps..
Click to expand...
Click to collapse
I dont get this one...
BaidDSB said:
I dont get this one...
Click to expand...
Click to collapse
In Apps-Advanced System-Special Access Menu There is option for Disabling ability of app to modify system settings .You Have to Disable them for power saver and power monitor.
Hi i have a question. Have you updated to latest version before those tweaks?
After March update my battery life became better up to 2,5 days, so i hope those tweaks wont bring it back down.
Tomar777 said:
Hi i have a question. Have you updated to latest version before those tweaks?
After March update my battery life became better up to 2,5 days, so i hope those tweaks wont bring it back down.
Click to expand...
Click to collapse
Yes i am on latest March update.Most of stutter or lag is caused by evenwell overlays and Android native power saver is better than evenwell.
Do these changes stay put after a reboot?
rr93 said:
Do these changes stay put after a reboot?
Click to expand...
Click to collapse
Yes
I did this and found that android system webviewer is also disabled when disabling evenwell crap.
mpkFIN said:
I did this and found that android system webviewer is also disabled when disabling evenwell crap.
Click to expand...
Click to collapse
After Android Pie Chrome System Webview is used instead of system web view by Android.
Daredvll said:
In Apps-Advanced System-Special Access Menu There is option for Disabling ability of app to modify system settings .You Have to Disable them for power saver and power monitor.
Click to expand...
Click to collapse
Should I disable power monitor in modify system as well? Or just the Power saver ?
Viznu93 said:
Should I disable power monitor in modify system as well? Or just the Power saver ?
Click to expand...
Click to collapse
Yes
Daredvll said:
Yes
Click to expand...
Click to collapse
Thanks
Thanks Daredvll,
Tweaks are reduce the battery drain with 25-30%, but the lag of keyboard when typing was still there. I found that switch OFF "Accessibility-Remove animation" is solve this problem.

Issue with Battery Optimization - Please Help

Battery Optimization always turn off my MicroG and Volume Style
Detail:
I Use MicroG for Vanced, and Volume Style for swipe volume. (I like these two apps very much for several years) Then need to turn off battery optimization. I choose to not optimize. Then it will always back to optimize. Every day, every time I should find these two apps, and set to not optimize.
Open app setting and turn off battery saver too, still the same.
Is it because of MIUI Optimization ? is it okay to turn it off? Or I just have to give up using those two apps anymore :crying:?
you can turn off MIUI optimization. try enable microG in autostart. and disable Miui battery saver in microG. recomend use MIUI eu for this youtube vanced for better experience.
Pepiii said:
I Use MicroG for Vanced, and Volume Style for swipe volume. (I like these two apps very much for several years) Then need to turn off battery optimization. I choose to not optimize. Then it will always back to optimize.
Click to expand...
Click to collapse
Can confirm, I'm seeing the same here (Vanced on stock EU v12.0.3.0).
same here, especially if you reboot the optimisation comes back...very frustrating.
Alvian_P said:
you can turn off MIUI optimization. try enable microG in autostart. and disable Miui battery saver in microG. recomend use MIUI eu for this youtube vanced for better experience.
Click to expand...
Click to collapse
So, is it better to turn MIUI Optimization off or not ?
Pepiii said:
So, is it better to turn MIUI Optimization off or not ?
Click to expand...
Click to collapse
You don't need to turn off MIUI optimization. What's basically happening is that Microg doesn't request the proper app permissions for it to run on background smoothly. Even if you manually grant it the required permission i.e. Allow_in_power_save, it won't work, since it doesn't use it and MIUI requires it to be set to specify what to do. In short if you are worried about functionality then don't be. And if the notification bothers you, you can turn it off like in screenshots below.
Slim K said:
You don't need to turn off MIUI optimization. What's basically happening is that Microg doesn't request the proper app permissions for it to run on background smoothly. Even if you manually grant it the required permission i.e. Allow_in_power_save, it won't work, since it doesn't use it and MIUI requires it to be set to specify what to do. In short if you are worried about functionality then don't be. And if the notification bothers you, you can turn it off like in screenshots below.
Click to expand...
Click to collapse
I get it, so it means MicroG will still function well even though the notification appeared.
And what about function in Volume Style that always turn off because it back to optimize even I've already make it not optimize. Is there any suggestions what I have to do ?
seems MIUI battery settings seem to revert back after a while for "important apps" - such as Nova launcher for example.
i have optimisation off in developer settings, but no matter how many times i set specific apps to "no restriction" , MIUI 12 just reverts back after a little while.
nickmax1 said:
seems MIUI battery settings seem to revert back after a while for "important apps" - such as Nova launcher for example.
i have optimisation off in developer settings, but no matter how many times i set specific apps to "no restriction" , MIUI 12 just reverts back after a little while.
Click to expand...
Click to collapse
Developer options>standby mode
Try setting all buckets to active*; if they're not already locked to active, power management is active.
Find the app causing this and deal with it directly.
Power management... destroyer of worlds
*this may work but the power management app may simple reset the bucket state latter.
blackhawk said:
Developer options>standby mode
Try setting all buckets to active*; if they're not already locked to active, power management is active.
Find the app causing this and deal with it directly.
Power management... destroyer of worlds
*this may work but the power management app may simple reset the bucket state latter.
Click to expand...
Click to collapse
I have no setting in Developer Options called "Standby mode"
nickmax1 said:
I have no setting in Developer Options called "Standby mode"
Click to expand...
Click to collapse
I don't know then...
anyone found a solution for this? will using venced in root mode be any better?? what if one keeps the battery optimizations on for microG will venced still work as expected??
blzbh said:
anyone found a solution for this? will using venced in root mode be any better?? what if one keeps the battery optimizations on for microG will venced still work as expected??
Click to expand...
Click to collapse
For those wondering (this thread is a top match via Google), the solution is to simply enable the app icon in microG settings. You can get to settings via YouTube Vanced. Then MIUI will treat it like a standard app, allowing you to disable battery optimisation and it will persist across reboots.
nickmax1 said:
I have no setting in Developer Options called "Standby mode"
Click to expand...
Click to collapse
Standby apps...
This is how it should appear if global power management is disabled. Although the bucket shows all buckets as active, many are not and not using battery or any resources like ApkExport or Autostarts which weren't in the memory cache at the time this screen shot was taken.

[KB2003_11_F.13] My apps are getting killed all the time

I cannot even switch from Chrome to System Settings -> while going back with copied build number I had my browser die on me.
That makes task switching unusable.
Obvious stuff:
background app limit in dev settings is set to standard
battery optimization is always ask for apps and disabled for the whole phone
wherever I can get autostart app to be toggled enabled I do and I think it works but not for system apps like Chrome or Maps…
Any ideas? I'm extremely frustrated.
Have a good one!
Developer options>standby apps
Are all buckets showing as active? If not global power management is enabled. However it can't be disabled here. It will be found somewhere in power management.
blackhawk said:
Developer options>standby apps
Are all buckets showing as active? If not global power management is enabled. However it can't be disabled here. It will be found somewhere in power management.
Click to expand...
Click to collapse
not seeing it really, please see the only area that seems related to me
Fun fact: I found I'm low on storage and RAM boost was disabled. Freeing space and rebooting seemed to improve behaviour a little. Still, with 8G RAM even without RAM boost I wouldn't expect as much killing. Or am I wrong?
Try using the search feature in settings to find it if you have that option.
Yup, tried that and there were no results.
Surprisingly after RAM boost switching even with it off killing dropped a lot… so maybe that was some leftover from an upgrade of 12 to 13?
So… "solved", sort of.
panaut0lordv said:
Yup, tried that and there were no results.
Surprisingly after RAM boost switching even with it off killing dropped a lot… so maybe that was some leftover from an upgrade of 12 to 13?
So… "solved", sort of.
Click to expand...
Click to collapse
12 is a mess... 13 seems to be tripping down the same gravel road as well. Stupid Gookill, their best is behind them.

Categories

Resources