In a local environment I have some Android pixel 3 devices(Android 11) that are connected with a web socket in the foreground service. This socket connection only listens for messages and pushes them to the push notification. Sometimes you may not receive messages for hours or sometimes days, so this needs to be really stable.
The push notification works when the screen is on, when the goes in lock mode the connection is fine for the first few minutes. If a message is pushed after 10-15 minutes, the notification message will not be displayed. As soon as another message comes up, the previous message is suddenly picked up and displayed to. After 60 minutes or more, no messages will be displayed at all. It appears that the connection is no longer intact and the server and app logs do not show that the connection is lost.
I have been working on this for more than 5 intensive days, but to my frustration nothing works. I have found many topics related to this doze topic, the optimization for the app adjusted, send a ping every minute (StayAlive) to the server but all to no avail.
Trying to change the idle settings and disable Doze mode via ADB, but no luck.
Its an internal app so I can do pretty much everything if needed.
Is there a way to bypass or remove the Doze entirely?
Please let me know
Thank you in advance.
Nikko_93 said:
In a local environment I have some Android pixel 3 devices(Android 11) that are connected with a web socket in the foreground service. This socket connection only listens for messages and pushes them to the push notification. Sometimes you may not receive messages for hours or sometimes days, so this needs to be really stable.
The push notification works when the screen is on, when the goes in lock mode the connection is fine for the first few minutes. If a message is pushed after 10-15 minutes, the notification message will not be displayed. As soon as another message comes up, the previous message is suddenly picked up and displayed to. After 60 minutes or more, no messages will be displayed at all. It appears that the connection is no longer intact and the server and app logs do not show that the connection is lost.
I have been working on this for more than 5 intensive days, but to my frustration nothing works. I have found many topics related to this doze topic, the optimization for the app adjusted, send a ping every minute (StayAlive) to the server but all to no avail.
Trying to change the idle settings and disable Doze mode via ADB, but no luck.
Its an internal app so I can do pretty much everything if needed.
Is there a way to bypass or remove the Doze entirely?
Please let me know
Thank you in advance.
Click to expand...
Click to collapse
Feel your pain.. Just got a Note 10+ and have been going crazy testing notifications with 7-8 email clients all with the same delayed notifications as you describe. I read there's a way to remove it, but it will return at reboot. What did you try with ADB?
I was also reading about whitelisting certain apps to be not affected by doze and supposedly it'll stick after reboot. I've never done this before so it's all new. Sitting here at 4am just starting to read about whitelisting. Gotta get to bed.. Follow up tomorrow. Not sure if whitelisting will work on Android 11. Any other help will be greatly appreciated.
AFAIK completely disabling device's Doze mode can be done by means of ADB
Code:
adb devices
adb shell "dumpsys deviceidle unforce"
So, what's the difference between these two (I know "disable" doesn't stick on reboot):
Code:
adb shell dumpsys deviceidle unforce
VS
Code:
adb shell dumpsys deviceidle disable
I'd rather whitelist specific apps but isn't this the same as turning off Battery Optimization for an app in the Settings (which doesn't work):
Code:
adb shell dumpsys deviceidle whitelist +<package name>
Factory Unlocked Note 10+ Android 11 One UI 3.1.
One more question please. Do I need Samsung USB drivers to connect my Note 10+ to my Win 7 PC for ADB commands? Thanks.
Not too many replies at once.
ANSWER: YES.
Disabled Doze with the ADB command: adb shell dumpsys deviceidle disable
Confirmation:
"Light state: INACTIVE
Deep state: INACTIVE"
But still getting email notifications as late as ever if phone has been inactive.
Factory Unlocked Note 10+ Android 11 One UI 3.1.
wgraz said:
Not too many replies at once.
Click to expand...
Click to collapse
Typically, one rarely gets useful replies in this forum. One typically has to fight with problems on his own...
Here guys also discuss poor performance of notifications.
vp1117 said:
Typically, one rarely gets useful replies in this forum. One typically has to fight with problems on his own...
Click to expand...
Click to collapse
Yeah, And this forum search sucks. I haven't found a way to search a particular thread or a group of threads. I laboriously, use "Find in Page" in one page at a time of certain threads. Takes forever. You're right, XDA seems vacant but I still try.
I started a thread almost a month ago about edge lighting... 165 views, Not one reply.
Question about Edge Lighting in relation to One UI 3.0 /3.1
I'd grateful if someone could explain the Edge Lighting and why it doesn't work on One UI 3.0/3.1. I always thought Edge Lighting is a light indicator left on WHEN YOUR SCREEN IS OFF (like an LED notification) indicating you already received a...
forum.xda-developers.com
wgraz said:
Disabled Doze with the ADB command: adb shell dumpsys deviceidle disable
Confirmation:
"Light state: INACTIVE
Deep state: INACTIVE"
But still getting email notifications as late as ever if phone has been inactive.
Factory Unlocked Note 10+ Android 11 One UI 3.1.
Click to expand...
Click to collapse
It appears, de-activating a doze mode is not the solution. I get telegram notifications with huge delay, like half a day. At the same time, telegram application is included into witelist.
Here they mention wake locks. And, surprisingly enough, when I ran adb shell dumpsys power, I saw that out of 2 messengers that I use - whatsapp and telegram - only whatsapp shows a wake lock:
{
"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"
}
However, I'm sick and tired of fighting with this s...tty android functinality and with s...tty power management tools china vendor built into their nasty china ROM for my china phone. I can live with the fact that whatsapp messenger works fine and telegram notifications are being depressed. I do not want to spend more time on this s...t, especially with zero level of expertise on this subject in this forum.
Null
vp1117 said:
It appears, de-activating a doze mode is not the solution. I get telegram notifications with huge delay, like half a day. At the same time, telegram application is included into witelist.
Here they mention wake locks. And, surprisingly enough, when I ran adb shell dumpsys power, I saw that out of 2 messengers that I use - whatsapp and telegram - only whatsapp shows a wake lock:
View attachment 5332329
However, I'm sick and tired of fighting with this s...tty android functinality and with s...tty power management tools china vendor built into their nasty china ROM for my china phone. I can live with the fact that whatsapp messenger works fine and telegram notifications are being depressed. I do not want to spend more time on this s...t, especially with zero level of expertise on this subject in this forum.
Click to expand...
Click to collapse
Is it possible to add a PARTIAL_WAKE_LOCK to Telegram or any other app like email, etc?
I'm assuming that y'all have read my rant and possible solution:
(1) https://forum.xda-developers.com/t/...ion-delay-problem-fixed-by-using-adb.4276161/
(2) https://forum.xda-developers.com/t/...when-the-phones-screen-is-off-locked.4278413/
Either way, issues like this will be the downfall of Android. If you can't get notifications, normies aren't going to bother buying you phones! And, if normies don't buy, companies lose scale and nerds don't get the products they want.
I'm guessing this PARTIAL_WAKE_LOCK needs to be OK'd by Google when developing an app? Or can any developer put this in their app? Or is it not in the app at all, but Google has a "whitelist" of sorts to allow certain apps PARTIAL_WAKE_LOCK?
wgraz said:
I'm guessing this PARTIAL_WAKE_LOCK needs to be OK'd by Google when developing an app? Or can any developer put this in their app? Or is it not in the app at all, but Google has a "whitelist" of sorts to allow certain apps PARTIAL_WAKE_LOCK?
Click to expand...
Click to collapse
Well, just look at the latest reviews for the GMail app on the Google Play store.
They're all complaining about notifications not being received when the phone is locked.
There was an update today. Let's see if that fixed it.
Here's a joke:
Q: How do you get Google to care about a bug?
A: Tell them you're an iOS user.
wgraz said:
So, what's the difference between these two (I know "disable" doesn't stick on reboot):
Code:
adb shell dumpsys deviceidle unforce
VS
Code:
adb shell dumpsys deviceidle disable
I'd rather whitelist specific apps but isn't this the same as turning off Battery Optimization for an app in the Settings (which doesn't work):
Code:
adb shell dumpsys deviceidle whitelist +<package name>
Factory Unlocked Note 10+ Android 11 One UI 3.1.
Click to expand...
Click to collapse
I just wanted to whitelist specific apps via terminal as settings app restores to default apps even i added apps not to optimise. So ur guide worked for me, Thanks a lot bro...
Related
{
"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"
}
Auto Pilot Mode
Current Version: 8.00
Auto Pilot Mode is a very lightweight tool to enable airplane mode. Battery rapidly drained when the phone is out of service/signal and tried to search for a signal to use. In order to prevent this battery drain, Auto Pilot Mode will detect when the signal is below a certain threshold. Once this threshold is met, airplane mode will be turned on for a specified amount of time. After this time, airplane mode is disabled and the checking process repeats.
Settings/Features Explained
Scheduling System - Automatically changes thresholds and times according to a schedule set by you (Great for when you sleep)
Threshold - This slider will determine the threshold of the signal. If the signal falls at or below this threshold, airplane mode is put into queue.
Pending Time - Specifies how long airplane mode is in queue for after the signal falls below threshold.
Airplane Time - Specifies how long airplane mode should be enabled before performing another check.
3G/4G Basic Detection - First step toward mobile data support, checks whether you are connected to a network or not
Ignore If Charging - If the phone is charging, ignore the status of signal and never enable airplane mode
Only Disable Cell Service - When airplane mode is enabled, WiFi, Bluetooth, and all other forms of communication are untouched
Start on Boot - Start the service automatically when the phone boots on.
Prevent Call Drop - If you are receiving or initialing a call, the service is paused and airplane mode is not toggled until the call is finished.
Maintain User Airplane Mode - Keeps user toggled airplane mode until user manually disables airplane mode.
Hide Status Bar Icon - Hides the icon in the status bar
Remove Notification Buttons - Removes buttons from the notification
Display More Info In Notifications - Adds more information to the notification
Send Feedback - Allows users to send feedback to the developer. (Found in the menu)
Help Option - Explanations of each settings
Always Visible Menu
ScreenShots
Known Issues
3G/4G Detection (Advanced)
Translate to Spanish
Upcoming Development
Change Log
7.55 to 8.00
Added: Progress bar
Added: Ignore if charging
Added: Ads
7.51 to 7.55
Fixed: Non-Default Keyboard not changing values
Added: Vibration when airplane mode is toggled
Added: Ring when airplane mode is toggled
Added: App Stats
7.5 to 7.51
Fixed: Always thinking the user enabled airplane mode when it was the app
7.4 to 7.5
Fixed: Draining battery due to AlarmManager
Fixed: Ignoring user enabled airplane mode even if the setting is enabled
Modified: Reduced the amount of data sent via Send Anonymous Data
Download from the Play Store
Please leave a review and rate the app! Thank You!
This is pretty awesome. There's not much service where I live, so this actually keeps my phone alive a little longer.
status bar icon
is it possible a option can be added that the app icon can be disabled in status bar.?
I've been trying to do this with Tasker and I haven't been able to make it work reliably, this app just made things simple!
Sent from my SGH-T999 using XDA Premium 4 mobile app
finally..
I love this mind of app...
Thanks very much..
I install it,test and report my experience..
this is definitely one of those apps that just makes you go wow I wonder why no one thought of this earlier.
As a person who likes to travel and often 2 wheels on back roads with sometime sketchy service this app will be appreciated.
:good:
hnkotnis said:
Reserved.
Click to expand...
Click to collapse
Congratz, its on XDA Portal Posts
btw is it possible to have option that only signal strength (-dBm) as the threshold but not the signal bar count..?
and if i may suggest please also add option to hide notification icon on status bar, aka app service will running on background..
Thanks and Regards
useful, try it, and the result is... 10/10 :good::good::good::good:
awesome
such a great idea and i hope it gets integrated into CM
i test it and it's works perfectly..on all my phones..N5,Lg P880,hd2 and ideos...
thanks again..
I would suggest to you if it's possible add an option that search signal (when aero mode is enable) on screen on,even bypassing timer..So when i wake up my phone automatically autopilot search signal if aero mode is on...
hi, please can you upload app attached on op for xda users?
(and those having problem with play.
thank you
desalesouche said:
hi, please can you upload app attached on op for xda users?
(and those having problem with play.
thank you
Click to expand...
Click to collapse
And for those users who won't touch Google Play, or Google spying, with a bargepole.... The downloadable (often called Beta to get around Playstore contract) versions from XDA are invaluable...
thanks....
I like this I install thanks:good:
trevmar said:
And for those users who won't touch Google Play, or Google spying, with a bargepole.... The downloadable (often called Beta to get around Playstore contract) versions from XDA are invaluable...
Click to expand...
Click to collapse
not saying Google is or isn't... but I find it funny that people are so afraid of Google yet they have a Google based phone...
4G LTE
Any plans to add 4G/LTE support? The app seems to work great except when I'm connected to LTE. It seems to think I am out of service and enables airplane mode even when my LTE reception is great. On a Moto X on AT&T. Also the Moto X uses on screen keys, your app states that there is a menu but I can not access it as you don't have the 3 dots or hamburger menu for people without that key.
dimm0k said:
not saying Google is or isn't... but I find it funny that people are so afraid of Google yet they have a Google based phone...
Click to expand...
Click to collapse
In my mind Google has become evil, Everywhere I travel, Google shuts down my Gmail account until I manually log in and admit that I am in that location. I don't think I am on any Govt surveillance list. Here is the latest mail I got from them, just a few days ago:
"Hi XXXXXX,
Someone recently used your password to try to sign in to your Google Account [email protected]. This person was using an application such as an email, client or mobile device.
We prevented the sign-in attempt in case this was a hijacker trying to access your account. Please review the details of the sign-in attempt:
Friday, 28 March 2014 17:24:30 o'clock UTC
IP Address: 91.227.ZZZ.230
Location: London, UK
If you do not recognise this sign-in attempt, someone else might be trying to access your account. You should sign in to your account and reset your password immediately.
Reset password link
If this was you and you are having trouble accessing your account, complete the troubleshooting steps listed at http://support.google.com/mail?p=client_login
Yours sincerely,
The Google Accounts team"
Very interesting app !! Indeed one of those functionalities that really should have come pre-built in the OS.
I have just installed it, and thus haven't had a chance to test it myself - although I have no doubt it will work as advertised.
A few ideas for improvement come to mind immediately though:
1.) As others have already asked: an option to remove the status bar icon. Also, when an icon is present in the status bar and thus there is an entry in the notification queue, tapping on the notification message should have some useful purpose, like opening the app. Currently, tapping on the notification message doesn't seem to be doing anything.
2.) As others also have noted: for a user, it is a bit unclear what would be good threshold values. We rely on the developer to provide us with sensible initial/default values. Are GSM:3 and CDMA:-113 the best choices ? If so, it might be good to indicate in the app description that the app comes with sensible defaults. Also, a "restore thresholds to default values" button or menu item might be a useful addition.
3.) The option to restore WiFi is a nice bonus. However, the underlying issue is that the problem the app wants to address really doesn't require Airplane Mode, strictly speaking it only requires the cell radio to be shut down.
a.) Why would you even want to do that ? One might be in an area with really bad cell service, but still have access to a WiFi network (e.g. in a hotel in a very remote area, but even in cities: my battery sometimes drains just from being in a building with a special type of walls).
b.) And is it even technically possible ? This app (play.google.com/store/apps/details?id=the.radioshutoff) is able to do it, and I can personally vouch that it works as advertised. Note that it may not be possible on all devices, as I suspect the different radios are integrated tighter in some devices than in others. That probably accounts for the very dichotomous ratings for that app.
Do you think you could implement this into your app ? The downside is that you might have to rename it ...
Anyway, this seems like a very useful little app with a lot of potential. Thanks for releasing it !! :good:
I have being using this for a few hours and it seems to be working well at switching to aeroplane mode when the mobile signal is poor.
However it also seems to have switched off my wifi on a couple of occasions. Anyone else encounter this?
Sent from my Nexus 5 using Tapatalk
slavehunter105 said:
is it possible a option can be added that the app icon can be disabled in status bar.?
Click to expand...
Click to collapse
I have debated whether to implement this on release and now that there has been a lot of talk, I will add an option to remove the icon on the status bar. I initially hoped to keep the icon there to remind users the app/service is running.
hotdroid said:
Congratz, its on XDA Portal Posts
btw is it possible to have option that only signal strength (-dBm) as the threshold but not the signal bar count..?
and if i may suggest please also add option to hide notification icon on status bar, aka app service will running on background..
Thanks and Regards
Click to expand...
Click to collapse
It has become clear to me that my app is a little on the confusing side. The CDMA Threshold slider is measured in -dBm, I just removed the "-". Also, the app does run in the background. Although it is considered "Perceptible", if Android is running low on memory and stops Auto Pilot Mode to release memory, Auto Pilot Mode will be able to automatically restart after memory becomes available by Android; however, I will look into checking the status of the app.
hnkotnis said:
Reserved.
Click to expand...
Click to collapse
I'm not sure why you have Reserved this post, I'm assuming you will edit your post with a response to my app. I just want to make it clear that you're not the developer or that you have ever helped me in creating this app.
desalesouche said:
hi, please can you upload app attached on op for xda users?
(and those having problem with play.
thank you
Click to expand...
Click to collapse
Adding this app as an apk file to this thread will not help in future releases because I will be implementing Google's In-App Purchasing. It is required for the user to be linked to their Google Account in order to purchase from an app.
zicoxx said:
i test it and it's works perfectly..on all my phones..N5,Lg P880,hd2 and ideos...
thanks again..
I would suggest to you if it's possible add an option that search signal (when aero mode is enable) on screen on,even bypassing timer..So when i wake up my phone automatically autopilot search signal if aero mode is on...
Click to expand...
Click to collapse
It is impossible to search for a signal if Airplane Mode is enabled. Airplane mode disables all communication radios and does not receive or send any information.
atomb said:
Any plans to add 4G/LTE support? The app seems to work great except when I'm connected to LTE. It seems to think I am out of service and enables airplane mode even when my LTE reception is great. On a Moto X on AT&T. Also the Moto X uses on screen keys, your app states that there is a menu but I can not access it as you don't have the 3 dots or hamburger menu for people without that key.
Click to expand...
Click to collapse
My testing has been limited to only 2G, however, I will try my best to implement 3G and 4G detection as soon as possible. I will also add a menu button to the app.
Fisher_AZ said:
Very interesting app !! Indeed one of those functionalities that really should have come pre-built in the OS.
I have just installed it, and thus haven't had a chance to test it myself - although I have no doubt it will work as advertised.
A few ideas for improvement come to mind immediately though:
1.) As others have already asked: an option to remove the status bar icon. Also, when an icon is present in the status bar and thus there is an entry in the notification queue, tapping on the notification message should have some useful purpose, like opening the app. Currently, tapping on the notification message doesn't seem to be doing anything.
2.) As others also have noted: for a user, it is a bit unclear what would be good threshold values. We rely on the developer to provide us with sensible initial/default values. Are GSM:3 and CDMA:-113 the best choices ? If so, it might be good to indicate in the app description that the app comes with sensible defaults. Also, a "restore thresholds to default values" button or menu item might be a useful addition.
3.) The option to restore WiFi is a nice bonus. However, the underlying issue is that the problem the app wants to address really doesn't require Airplane Mode, strictly speaking it only requires the cell radio to be shut down.
a.) Why would you even want to do that ? One might be in an area with really bad cell service, but still have access to a WiFi network (e.g. in a hotel in a very remote area, but even in cities: my battery sometimes drains just from being in a building with a special type of walls).
b.) And is it even technically possible ? This app (play.google.com/store/apps/details?id=the.radioshutoff) is able to do it, and I can personally vouch that it works as advertised. Note that it may not be possible on all devices, as I suspect the different radios are integrated tighter in some devices than in others. That probably accounts for the very dichotomous ratings for that app.
Do you think you could implement this into your app ? The downside is that you might have to rename it ...
Anyway, this seems like a very useful little app with a lot of potential. Thanks for releasing it !! :good:
Click to expand...
Click to collapse
Android versions above 4.1 should open the app when you touch the notification and not the buttons. Android versions 4.1 and below should toggle the service on and off if the notification is touched because there is not support for buttons in notifications until Android 4.2+. I has quickly come known to me that my app is rather confusing. I will attempt to write a more in-depth description and have an tutorial option in the menu. Lastly, I will look into better ways to implement what I am trying to do in a more effective manner.
polaris68 said:
I have being using this for a few hours and it seems to be working well at switching to aeroplane mode when the mobile signal is poor.
However it also seems to have switched off my wifi on a couple of occasions. Anyone else encounter this?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The "Recover WiFi" option will only re-enable wifi if the wifi was on before airplane mode was enabled. If this isn't happening, send me an email with more information regarding your situation.
Thank you all for the feedback! It is greatly appreciated!!!
First off, thanks for the feedback on the feedback !!
ProjectZed said:
I have debated whether to implement this on release and now that there has been a lot of talk, I will add an option to remove the icon on the status bar. I initially hoped to keep the icon there to remind users the app/service is running.
Click to expand...
Click to collapse
Your last sentence is an understandable concern, but the reality is that this kind of app ideally is one of those set-and-forget services. Many users (especially the kind that can be found on XDA) may have up to 10 of those apps/services running and icons for all of them would drawn out the true notifications. Even on a desktop PC, where there is much more screen estate, Windows 7 has the option to hide individual status bar icons. Sorry, I didn't mean to hurt your feelings there
ProjectZed said:
Android versions above 4.1 should open the app when you touch the notification and not the buttons. Android versions 4.1 and below should toggle the service on and off if the notification is touched because there is not support for buttons in notifications until Android 4.2+.
Click to expand...
Click to collapse
I installed it on a phone with 4.0 ICS and indeed, touching the notification toggles the services, I simply didn't notice it before. Would it be difficult to implement that upon toggling, the icon changes color ? e.g. a gray icon when the service isn't running. That might be a useful improvement for those wishing to keep the notification icon.
Hey there, guys.
I want to share with you my tweaks to get a better battery life while the tablet is on idle. [KitKat - Scroll down for lollipop update]
Processor state: Optimized.
Initial battery percent: 82%
Final battery percent: 45%
Battery percent loss: 37%
On Screen time: 1h 14m
Awake time: 1h 22m
Real awake time: 8 minutes.
Interval of time: 16h 55m
After many tests, I've notice that for every 10% of battery you get, at least, 30 minutes of Screen On. You can squeeze it even further to 40 minutes for every 10%
As you will see on the pictures, the WiFi was on for 10 hours, the rest was off because i went outside where WiFi was not available.
{
"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"
}
Now, the next screenshot will show you the "Partial wakelocks", they are the one that keeps your tablet awake. The lower, the better, but some of then are necessary while you work/play/surf on the tablet, so they will be there anywhere.
Trying to understand the Blake_wakelock.
I've spent some time trying to figure out how to stop this wakelock. The blake_wakelock is used by the "Shield Wireless Controller" nVidia system App to pair the controller; i don't know why it keeps alive after turn off the controller; so far the only not-brute-force method i have to stop it is by turning off the WiFi, also, in good conditions the blake_wakelock stop itself whilts screen is off. Once you turn it on again it comes back to life.
-------------------------------------------
Requirements:
-------------------------------------------
Rooted Tablet.
System Tuner: https://play.google.com/store/apps/details?id=ccc71.pmw
(Optional) Disable Service: https://play.google.com/store/apps/details?id=cn.wq.disableservice
A list of what you need and What you don't need: The tweaks i'll show you is nothing more than disable many components that i don't need in some apps, for example, auto starts or syncing. Since i don't need location service, because i don't need my tablet to be with me all the time snaping pictures to instagram them and say "Hey, i am here, rapist", i don't need any of those, so, i disable everything related which is "safe" to disable.[/.]
[/list]
I'll attach to this thread a backup of the service i have disable, you can "restore" it using Disable service to auto disable the service. It may work for you or may not, so that's why i'll list the service i have off.
In order to see how to disable a service using System Tuner and achieving a short explanation, here is a video i made months ago about it using another android device:
https://www.youtube.com/watch?v=_dEwsckIa9E&list=UU7Gr3HOHtIF0i0_ptfaT0JA
List of unnecessary services:
Google Play Services:
Code:
com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService
com.google.android.gms/com.google.android.gms.analytics.service.RefreshEnabledStateService
com.google.android.gms/com.google.android.gms.analytics.internal.PlayLogReportingService
com.google.android.gms/com.google.android.gms.analytics.service.PlayLogMonitorIntervalService
com.google.android.gms/com.google.android.gms.checkin.EventLogService
com.google.android.gms/com.google.android.gms.config.ConfigFetchService
com.google.android.gms/com.google.android.gms.subscribedfeeds.SyncService
com.google.android.gms/com.google.android.gms.playlog.service.PlayLogBrokerService
com.google.android.gms/com.google.android.gms.plus.service.ImageIntentService
com.google.android.gms/com.google.android.gms.plus.service.OfflineActionSyncAdapterService
com.google.android.gms/com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService
com.google.android.gms/com.google.android.gms.common.analytics.CoreAnalyticsIntentService
com.google.android.gms/com.google.android.gms.wearable.node.bluetooth.BluetoothClientService
com.google.android.gms/com.google.android.gms.wearable.node.bluetooth.BluetoothServerService
com.google.android.gms/com.google.android.gms.wearable.node.emulator.NetworkConnectionService
com.google.android.gms/com.google.android.gms.wearable.service.WearableService
com.google.android.gms/com.google.android.gms.wearable.service.WearableControlService
com.google.android.gms/com.google.android.gms.fitness.service.DbCleanupService
com.google.android.gms/com.google.android.gms.fitness.service.BrokeredFitnessService
com.google.android.gms/com.google.android.gms.fitness.sensors.activity.ActivityRecognitionService
com.google.android.gms/com.google.android.gms.fitness.sync.FitnessSyncAdapterService
com.google.android.gms/com.google.android.gms.fitness.sensors.sample.CollectSensorService
com.google.android.gms/com.google.android.gms.fitness.wearables.WearableSyncService
com.google.android.gms/com.google.android.gms.fitness.service.DebugIntentService
com.google.android.gms/com.google.android.location.wearable.LocationWearableListenerService
com.google.android.gms/com.google.android.location.fused.NlpLocationReceiverService
com.google.android.gms/com.google.android.location.geocode.GeocodeService
com.google.android.gms/com.google.android.location.network.NetworkLocationService
com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService
com.google.android.gms/com.google.android.location.internal.server.GoogleLocationService
com.google.android.gms/com.google.android.location.reporting.service.ReportingAndroidService
com.google.android.gms/com.google.android.location.reporting.LocationReportingService
com.google.android.gms/com.google.android.location.reporting.service.LocationHistoryInjectorService
com.google.android.gms/com.google.android.location.reporting.service.DispatchingService
com.google.android.gms/com.google.android.location.places.PlaylogService
Normal User Applications:
I tend to look for service or activities/services/receivers such "Boot receiver", those trigger your app anytime your tablet boots up, keeping it awake. So, if you have an application that you enjoy and it auto start in background while you're not using it, you can disable those service and keep them calm.
I recommend SD Maid for detect autostart components and disable them easily using the "Toggle autostart components off/on". Indeed, if you keep using Facebook, you can control it by disabling a lot of trash services.
Code:
com.onelouder.baconreader/com.onelouder.baconreader.CakeDayService
com.onelouder.baconreader/com.onelouder.baconreader.billing.BillingService
com.onelouder.baconreader/com.google.analytics.tracking.android.CampaignTrackingService
Google Service Framework:
Code:
com.google.android.gsf/com.google.android.gsf.checkin.CheckinService
com.google.android.gsf/com.google.android.gsf.checkin.EventLogService
com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.GTalkService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.GTalkServiceProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.ConnectionService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.ConnectionServiceProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.PushMessagingRegistrarProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.PushMessagingRegistrar
In addition, Freeze Gtalk and Google Plus; you'll still able to sign into Google play games by leaving the rest of the Plus services active (The ones that are not listed as disabled).
Done.
Lollipop Update:
After a week of testing, Lollipop seems to be battery friendly, for example, the Blake_wakelock is not a problem anymore, on this new update the service is triggered anytime is needed, and it's killed once you disconnect your Shield Wireless Controller.
Without any extra tweaks, all the services disabled above still working fine for Android 5, but some others are not safe to disable; for example, disabling the Youtube Auto-start services cause several Play Service crashes and it's almost unusable.
The next pictures will show you the battery life i got with those tweaks and plus my power setting profile: 2 cores and 50% Max Speed. (The same results with Optimized profile, it seems like the Power Saving mode is not working properly on this update)
On normal conditions (Web surfing, reading and watching videos on Youtube and similar) the battery lost percent is 5% for each 15 minutes.
As you can see next, after 42min on screen, i lost 10% of the battery.
The settings menu shows 20 hours left:
After 60% of the battery consumed, i got 2hours 53min on screen. The 36min of held awake were due downloading games in the background. By that time my Shield was on battery since 1day 3hours and 32min:
And with that said, the settings - Battery shows 19 hours left on Battery:
GSAM Battery monitor measurement:
You can find attached the list (*.txt file) of the services I've disabled, you can actually use this with Disable Service app, place the file into /storage/emulated/0/ and restore it, all the changes will be applied (Root is mandatory)
More results (January, 2015 update):
This is what i got recently. Bright to 30% or kinda more, Optimized power mode and gaming (Sky Gamblers: Storm Raiders using iPega at maxed graphics, which is a battery eater with 10% of battery for every 15 minutes of game play - Stickman epic and GRID games). I'm rooted. Running OTA 2.0 Android 5.0
Starting from 93% to 28%; after 1 day and 12 hours, i found it at 82% (0.3% per hour) and a estimated of 13 days left:
So, after start playing demanding games, it went down quickly, still got a good life time expected on battery:
You can clearly see when i was playing:
Final measure (I don't like it goes under 40% or 20%
Obviously this tablet needs an improvement for future versions of it, with more power to offer a real good experience, but in my opinion, taking care of your battery will give you a good space to play with it.
Some disabled are trying unsuccessfully to achieve that by try and fail. Anyway...
I would like to see yours.
More results - Updated 01/10/2015
And even more! - Updated 23/01/2015
I just disabled these Google Play Services you mentioned, on my LG G2. Let's see...
CM17X said:
Hey there, guys.
I want to share with you my tweaks to get a better battery life while the tablet is on idle.
Processor state: Optimized.
Initial battery percent: 82%
Final battery percent: 45%
Battery percent loss: 37%
On Screen time: 1h 14m
Awake time: 1h 22m
Real awake time: 8 minutes.
Interval of time: 16h 55m
After many tests, I've notice that for every 10% of battery you get, at least, 30 minutes of Screen On. You can squeeze it even further to 40 minutes for every 10%
As you will see on the pictures, the WiFi was on for 10 hours, the rest was off because i went outside where WiFi was not available.
Now, the next screenshot will show you the "Partial wakelocks", they are the one that keeps your tablet awake. The lower, the better, but some of then are necessary while you work/play/surf on the tablet, so they will be there anywhere.
Trying to understand the Blake_wakelock.
I've spent some time trying to figure out how to stop this wakelock. The blake_wakelock is used by the "Shield Wireless Controller" nVidia system App to pair the controller; i don't know why it keeps alive after turn off the controller; so far the only not-brute-force method i have to stop it is by turning off the WiFi, also, in good conditions the blake_wakelock stop itself whilts screen is off. Once you turn it on again it comes back to life.
-------------------------------------------
Requirements:
-------------------------------------------
Rooted Tablet.
System Tuner: https://play.google.com/store/apps/details?id=ccc71.pmw
(Optional) Disable Service: https://play.google.com/store/apps/details?id=cn.wq.disableservice
A list of what you need and What you don't need: The tweaks i'll show you is nothing more than disable many components that i don't need in some apps, for example, auto starts or syncing. Since i don't need location service, because i don't need my tablet to be with me all the time snaping pictures to instagram them and say "Hey, i am here, rapist", i don't need any of those, so, i disable everything related which is "safe" to disable.[/.]
[/list]
I'll attach to this thread a backup of the service i have disable, you can "restore" it using Disable service to auto disable the service. It may work for you or may not, so that's why i'll list the service i have off.
In order to see how to disable a service using System Tuner and achieving a short explanation, here is a video i made months ago about it using another android device:
https://www.youtube.com/watch?v=_dEwsckIa9E&list=UU7Gr3HOHtIF0i0_ptfaT0JA
List of unnecessary services:
Google Play Services:
Code:
com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService
com.google.android.gms/com.google.android.gms.analytics.service.RefreshEnabledStateService
com.google.android.gms/com.google.android.gms.analytics.internal.PlayLogReportingService
com.google.android.gms/com.google.android.gms.analytics.service.PlayLogMonitorIntervalService
com.google.android.gms/com.google.android.gms.checkin.EventLogService
com.google.android.gms/com.google.android.gms.config.ConfigFetchService
com.google.android.gms/com.google.android.gms.subscribedfeeds.SyncService
com.google.android.gms/com.google.android.gms.playlog.service.PlayLogBrokerService
com.google.android.gms/com.google.android.gms.plus.service.ImageIntentService
com.google.android.gms/com.google.android.gms.plus.service.OfflineActionSyncAdapterService
com.google.android.gms/com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService
com.google.android.gms/com.google.android.gms.common.analytics.CoreAnalyticsIntentService
com.google.android.gms/com.google.android.gms.wearable.node.bluetooth.BluetoothClientService
com.google.android.gms/com.google.android.gms.wearable.node.bluetooth.BluetoothServerService
com.google.android.gms/com.google.android.gms.wearable.node.emulator.NetworkConnectionService
com.google.android.gms/com.google.android.gms.wearable.service.WearableService
com.google.android.gms/com.google.android.gms.wearable.service.WearableControlService
com.google.android.gms/com.google.android.gms.fitness.service.DbCleanupService
com.google.android.gms/com.google.android.gms.fitness.service.BrokeredFitnessService
com.google.android.gms/com.google.android.gms.fitness.sensors.activity.ActivityRecognitionService
com.google.android.gms/com.google.android.gms.fitness.sync.FitnessSyncAdapterService
com.google.android.gms/com.google.android.gms.fitness.sensors.sample.CollectSensorService
com.google.android.gms/com.google.android.gms.fitness.wearables.WearableSyncService
com.google.android.gms/com.google.android.gms.fitness.service.DebugIntentService
com.google.android.gms/com.google.android.location.wearable.LocationWearableListenerService
com.google.android.gms/com.google.android.location.fused.NlpLocationReceiverService
com.google.android.gms/com.google.android.location.geocode.GeocodeService
com.google.android.gms/com.google.android.location.network.NetworkLocationService
com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService
com.google.android.gms/com.google.android.location.internal.server.GoogleLocationService
com.google.android.gms/com.google.android.location.reporting.service.ReportingAndroidService
com.google.android.gms/com.google.android.location.reporting.LocationReportingService
com.google.android.gms/com.google.android.location.reporting.service.LocationHistoryInjectorService
com.google.android.gms/com.google.android.location.reporting.service.DispatchingService
com.google.android.gms/com.google.android.location.places.PlaylogService
Normal User Applications:
I tend to look for service or activities/services/receivers such "Boot receiver", those trigger your app anytime your tablet boots up, keeping it awake. So, if you have an application that you enjoy and it auto start in background while you're not using it, you can disable those service and keep them calm.
I recommend SD Maid for detect autostart components and disable them easily using the "Toggle autostart components off/on". Indeed, if you keep using Facebook, you can control it by disabling a lot of trash services.
Code:
com.onelouder.baconreader/com.onelouder.baconreader.CakeDayService
com.onelouder.baconreader/com.onelouder.baconreader.billing.BillingService
com.onelouder.baconreader/com.google.analytics.tracking.android.CampaignTrackingService
Google Service Framework:
Code:
com.google.android.gsf/com.google.android.gsf.checkin.CheckinService
com.google.android.gsf/com.google.android.gsf.checkin.EventLogService
com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.GTalkService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.GTalkServiceProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.ConnectionService
com.google.android.gsf/com.google.android.gsf.gtalkservice.service.ConnectionServiceProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.PushMessagingRegistrarProxy
com.google.android.gsf/com.google.android.gsf.gtalkservice.PushMessagingRegistrar
In addition, Freeze Gtalk and Google Plus; you'll still able to sign into Google play games by leaving the rest of the Plus services active (The ones that are not listed as disabled).
Done.
Click to expand...
Click to collapse
Good work!
Another Screenshot of my battery life. This time i got 2hours+ on screen, considering i've played République which eats 10% of the battery every 15 minutes (High graphics)
Results with Lollipop Updated on the first post.
More results added to the first post.
what do these services do?
which apps need them?
com.google.android.gms/com.google.android.gms.checkin.EventLogService
com.google.android.gms/com.google.android.gms.config.ConfigFetchService
freecore.mc said:
what do these services do?
which apps need them?
com.google.android.gms/com.google.android.gms.checkin.EventLogService
com.google.android.gms/com.google.android.gms.config.ConfigFetchService
Click to expand...
Click to collapse
You can find detailed information about it here: http://developer.android.com/reference/android/util/EventLog.html
About config. Fetchservice there is few/none information but is related to google fit.
Interesting indeed
Sent from Bad Azz VZW LG G3 Cyan Tapatalk
well done!!!!!
i wanna personally take the time to thank you for the effort put forth to find out the carp services we can eliminate to get our shields running balls out. i'll keep posting back no and then, just for s and g's and let ya know it's still kickin ass and throwing away the names.
ive also found (so far (fingers crossed)) that you can kill everything with "car" at the front under play services. i personally dont plan to use this beast in a car pretty much period, now im not a noob but this is a bit deeper than ive gotten on android (i used to do this kinda stuff for a livin on windows for years). but droid is a whole 'nother animal.
that said... thruth be told im homeless (lol)(no really) i spent a whole paycheck on my shield so i can game at camp. so thanks again for givin me a little more fun each day before i turn in.
i figure battery life and such falls under longevity so i thought i would post a bit here and more later to let ya know how all this keeps working on the road away from the grid and sometimes even a charging post.... (trees and tents dont have outlets)
that said... are there any OTHER things i can kill to get more life. and i mean the extreme stuff. i need NO location. no sync really unless i can tell it to myself (if i have only a few moments at a mcdonalds or sumfin to hit wifi i dont want it trying to sync and raping my batt)
how about apps? there are a ton i have no idea what is what. you have any clue what i can kill?
thanks again!!!!! blessed be
Pariahnoble said:
i wanna personally take the time to thank you for the effort put forth to find out the carp services we can eliminate to get our shields running balls out. i'll keep posting back no and then, just for s and g's and let ya know it's still kickin ass and throwing away the names.
ive also found (so far (fingers crossed)) that you can kill everything with "car" at the front under play services. i personally dont plan to use this beast in a car pretty much period, now im not a noob but this is a bit deeper than ive gotten on android (i used to do this kinda stuff for a livin on windows for years). but droid is a whole 'nother animal.
that said... thruth be told im homeless (lol)(no really) i spent a whole paycheck on my shield so i can game at camp. so thanks again for givin me a little more fun each day before i turn in.
i figure battery life and such falls under longevity so i thought i would post a bit here and more later to let ya know how all this keeps working on the road away from the grid and sometimes even a charging post.... (trees and tents dont have outlets)
that said... are there any OTHER things i can kill to get more life. and i mean the extreme stuff. i need NO location. no sync really unless i can tell it to myself (if i have only a few moments at a mcdonalds or sumfin to hit wifi i dont want it trying to sync and raping my batt)
how about apps? there are a ton i have no idea what is what. you have any clue what i can kill?
thanks again!!!!! blessed be
Click to expand...
Click to collapse
Hey there, dude. Glad it worked for you, and i'll be waiting for your results.
About disabling the car features, you might do it, but i think it wouldn't gives you a major impact on your battery life, or at least it was never an issue for me. Anyway, you can try and see if this gives you even more.
In order to keep my system "under control", what i do is disable the auto-start in some apps i don't need it, also the push messages for those apps. For example, anytime i installed a game, i use SD Maid (Simple way to do it) for overview the app, if there is an autostart feature i disable it.
Facebook and stuff related could be a problem, but then again if you cut off the service you don't need from them, you'll be safe.
Good thread. I already disabled the services using your backup text.
I got a question, though. How can I re-enable all those services I disabled?? That's in case if something weird starts to happen*
*For ex: Google Play Music started to annoy me with a notification.
NaminatoR1254jaime.sier said:
Good thread. I already disabled the services using your backup text.
I got a question, though. How can I re-enable all those services I disabled?? That's in case if something weird starts to happen*
*For ex: Google Play Music started to annoy me with a notification.
Click to expand...
Click to collapse
To revert back you should follow the rule number one on XDA: Backups first. Or, as you used the *.txt i've attached (I'll upload a new one) you can undo by hand one by one of the services disabled, which are listed.
It's kinda strange the error you're getting, if you don't mind, please post an screenshot or tell me what it says and i'll try to reproduce it.
Take care.
CM17X said:
To revert back you should follow the rule number one on XDA: Backups first. Or, as you used the *.txt i've attached (I'll upload a new one) you can undo by hand one by one of the services disabled, which are listed.
It's kinda strange the error you're getting, if you don't mind, please post an screenshot or tell me what it says and i'll try to reproduce it.
Take care.
Click to expand...
Click to collapse
Its not an error. More of an annoyance. I couldnt reproduce it but its something small haha.
It was a Google notification, the classic triangle with the ! and it said: "Service disabled. An app needs this service" and the app was Google Play Music
I did a backup txt before disabling services, so no need to worry. I hadnt had anything wrong apart from that small notification
But thanks for your concern and for the new txt
is this mod really work and i want to know without gaming ,watch online video and surfing Facebook and other social network , did it survive a day?
ali_ge said:
is this mod really work and i want to know without gaming ,watch online video and surfing Facebook and other social network , did it survive a day?
Click to expand...
Click to collapse
There are some pictures in the first post which show a battery life of about 2 days and 5 hours on screen. I do gaming sometimes and for long part of the day my tablet is on standby.
All depends the use you givento the tablet, a sustained use with optimized mode will not give you more than 6 hours on screen with low brightness, and with battery saver mode it could be more; neverthelesse you will not get 12 hours or 24 in screen with this device, just because the battery is tiny.
First post updated with the *.txt file lollipop based.
If you're having problems importing the file with Disable Service, just open the txt file and with the app of your choice, disable the services listed.
Greetings.
this may help you dude
https://youtu.be/zbl0sUs4xnA
Can you update this for MM?
I get roughly 30 minutes every 5%.
[Delete]
I tried excluding Gmail (and Google Photos) from doze using adb and it stayed excluded even after device restart.
Code:
adb shell dumpsys deviceidle whitelist +com.google.android.gm
adb shell dumpsys deviceidle whitelist +com.google.android.apps.photos
(Use minus sign instead of plus to remove package from list)
Verify:
Code:
adb shell dumpsys deviceidle whitelist
I attempted the same on Android 9 before but it always got lost shortly after reboot. On Android 10, it seems like it sticks (and works - based on my first few tries).
I also noticed that com.android.settings.Settings$HighPowerApplicationsActivity no longer lists system apps. OnePlus also removed the more aggressive power saving option.
moneytoo said:
I tried excluding Gmail (and Google Photos) from doze using adb and it stayed excluded even after device restart.
(Use minus sign instead of plus to remove package from list)
Verify:
I attempted the same on Android 9 before but it always got lost shortly after reboot. On Android 10, it seems like it sticks (and works - based on my first few tries).
I also noticed that com.android.settings.Settings$HighPowerApplicationsActivity no longer lists system apps. OnePlus also removed the more aggressive power saving option.
Click to expand...
Click to collapse
Nice findings and thx for sharing it with us
Great! Thanks for sharing
Edit:
Gmail notifications are still delayed by around 10min.
Isn't it true that whitelisting only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface?
And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
wgraz said:
Isn't it true that whitelisting only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface?
And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
Click to expand...
Click to collapse
Nope, via settings do not work, i disabled battery optimization as a whole but i have delays on sms and alarms, unless i wake up manually the phone, then the sms and alarms arrived all together.
Confirm that the setting is permanent, i'm using android 11 (custom rom), see the last two entries added to the system.
Code:
E:\Adb>adb shell dumpsys deviceidle whitelist
system-excidle,com.android.providers.calendar,10134
system-excidle,com.android.providers.downloads,10124
system-excidle,com.android.messaging,10183
system-excidle,com.qualcomm.qti.telephonyservice,1001
system-excidle,com.qualcomm.qcrilmsgtunnel,1001
system-excidle,com.android.cellbroadcastreceiver,10133
system-excidle,com.android.proxyhandler,10121
system-excidle,com.android.cellbroadcastreceiver.module,10205
system-excidle,com.android.shell,2000
system-excidle,com.android.deskclock,10182
system-excidle,com.qualcomm.atfwd,10197
system-excidle,com.android.providers.contacts,10132
system,com.android.providers.downloads,10124
system,com.android.messaging,10183
system,com.qualcomm.qti.telephonyservice,1001
system,com.qualcomm.qcrilmsgtunnel,1001
system,com.android.cellbroadcastreceiver,10133
system,com.android.cellbroadcastreceiver.module,10205
system,com.android.shell,2000
system,com.android.deskclock,10182
system,com.qualcomm.atfwd,10197
user,com.android.messaging,10183
user,com.android.deskclock,10182
When I added com.google.android.gm and com.google.android.apps.messaging, adb shell dumpsys deviceidle whitelist shows them in the "user" section, not the "system" section. Did I do something wrong? I notice the other apps in the "user" section are the ones I set to "Never Optimize" under battery preferences. I feel like adding these two are not going to make any difference since the "Never Optimize" setting doesn't help.
xda6969 said:
When I added com.google.android.gm and com.google.android.apps.messaging, adb shell dumpsys deviceidle whitelist shows them in the "user" section, not the "system" section. Did I do something wrong? I notice the other apps in the "user" section are the ones I set to "Never Optimize" under battery preferences. I feel like adding these two are not going to make any difference since the "Never Optimize" setting doesn't help.
Click to expand...
Click to collapse
No, is ok, the change is at user level. I disabled doze in the settings too under battery management.
In my case they do a huge different, i do not have anymore the delay on notifications, expecially sms and clock alarms.
kd276 said:
No, is ok, the change is at user level. I disabled doze in the settings too under battery management.
In my case they do a huge different, i do not have anymore the delay on notifications, expecially sms and clock alarms.
Click to expand...
Click to collapse
In my case, this didn't help. Gmail notifications are delayed randomly, sometimes like 7 minutes, other times until I unlock the phone. I have a Pixel 5a. Now I'm gonna try to the turn off doze altogether. I know this method requires it to be redone every reboot. Incidentally, I was able to reverse the whitelisting by using...
adb shell dumpsys deviceidle whitelist -com.google.android.gm
xda6969 said:
In my case, this didn't help. Gmail notifications are delayed randomly, sometimes like 7 minutes, other times until I unlock the phone. I have a Pixel 5a. Now I'm gonna try to the turn off doze altogether. I know this method requires it to be redone every reboot. Incidentally, I was able to reverse the whitelisting by using...
adb shell dumpsys deviceidle whitelist -com.google.android.gm
Click to expand...
Click to collapse
Sorry this trick didn't help your case, i'm on Poco X3 Pro.
Turned of Doze totally using...
adb shell dumpsys deviceidle disable
... and now notifications work correctly. This disable both deep doze and light doze.
Yes it seems like whitelisting com.google.android.gm isn't enough to keep it awake. There must be other package(s) that need to be whitelisted as well.
Hello everyone, I put a small tutorial to maximize the battery life of our Oneplus 9. As I describe, I have my unit configured.
If you want you can go reporting in the thread what results your terminal now show you with this configuration.
Greetings.
1.- DEACTIVATE AUTOMATIC UPDATES.
In this way we will avoid that the mobile is constantly looking for updates and therefore consuming battery.
1.1- We go to the Play Store and in Settings / General / Automatically update applications, we mark "do not update applications automatically".
1.2- Once this is done, we go to the Oxygen OS updates. We follow the path Settings / System / System Updates, we give the little wheel that is at the top right and deactivate “Automatic download in Wifi”.
2.- DEACTIVATE THE WIFI ASSISTANT.
This option allows the mobile to automatically change the network, without us having to be aware of it, but it uses the battery unnecessarily. We are going to configure it to do it manually.
We follow the route Settings / Wifi and Mobile Networks / Wifi / Wifi Preferences / Inside we go and deactivate “Select the best Wifi network intelligently”.
3.-DEACTIVATE THE PRINTING SERVICES.
We have these services to connect to printers active all the time and the phone will be constantly looking for printers so that we can connect.
We go to Settings / Bluetooth and device connection / Printing / Default printing services, when pressing it it opens, once inside we deactivate it, we will see that on the screen below, we have a red bar with a text that says "searching for printers" This way we prevent it from being in constant search.
4.- DEACTIVATE EXPERIENCE IMPROVEMENT PROGRAMS.
We follow the route Settings / System / Experience improvement programs and deactivate the four options:
“Oneplus Notifications”, “User Experience Program” and “System Stability Program” and “Embedded Application Update”.
5.- BATTERY OPTIMIZATION.
We follow the route Adjustment / Battery / Battery optimization. Click on the three dots on the top right and Advanced Optimization will appear. Once inside we will activate the three options that we find, "Activate adaptive battery", "Optimization of standby at rest" and "Optimize energy consumption of applications".
6.- OPTIMIZATION OF THE GOOGLE ACCOUNT.
We go to Settings, select Accounts and inside we go to the Google account and open it, once inside we choose "Synchronization", we deactivate the following options:
Google Fit data / People data / Drive / Google Play Movies / Save Play Games in the cloud / Tasks in Calendar.
If you use any of these options, don´t deactivate it or if you don´t use any of the others, deactivate it.
7.- OTHER ADJUSTMENTS.
In addition to the above settings I also have the following:
Screen, dark mode, manual brightness at 85-90%, touch sounds, screen lock sounds, capture sounds, keyboard sounds, all off, vibration off.
In Developer Options:
"Registry Buffer Size", I have it set to 1Mb.
Window Animation Level / Transitions Animation Level / Transitions Duration Level. All three are by default at 1x, I lowered all three to 0.5x.
Hi, just some quick notes:
- the search for new version of apps doesn't stop with the process you mentioned, the auto download and install process will, and in a few days or weeks you will still be forced to update to the new version as the old one won't work. Overall good option to have.
- the printing service uses a negligible amount of power and I think it even does that when you are in it, and it's idle when not using, but I might be wrong (I use it so I won't turn it off)
- be careful with battery optimisation, Oneplus already is quite known for killing apps and then you aren't getting any notifications from these (happens to my WhatsApp all the time until I remember to add it to the ignore list and for some reason it doesn't like SwiftKey as it always says its draining battery even if I use it for typing).
- point 7 has a lot in. First, your MAIN battery drainer, ask anyone, is your screen, that's why they do all these "screen on" tests, and auto brightness will use a small amount of power to have the sensor on, but it will save you much more while decreasing your brightness from 85% when not needed. The power to make the touch sound etc is so, so small it's neglected (even Nokia 3310 would last a week with them on). Registry bigger size (you mean logger?) is an option how long the buffer is, either way those messages are being recorded and sent, I doubt it makes a difference. Don't fully understand how decreasing the animation speed will save battery, probably you don't have to wait the other millisecond for the animation to finish when you do something and finish sooner what you wanted to do and then turn the screen off?
Sorry, it might seem I am really mean here, and I am sorry if it seems that way, but some don't make sense, specially the brightness. You can uninstall unused apps or use adb to disable them but your radios (like turning off 5G if not used or WiFi when not used) and your screen uses 90% of the battery. Also check your app permissions, specially GPS as that is a real hog too so if an app gets your location in the background that takes a lot
Thanks for answering.
Regarding the first, at no time do I say that the process of searching for updates stops, we stop it from installing them without us noticing, so we decide whether to update or not.
Regarding stopping the printing service, spend little or spend a lot, it uses battery. That is why it is not a single point, there are several, among all they drain the battery. If it continues to consume battery even if we deactivate it, the problem would already be Oneplus that would be lying to us and in settings it would not be giving us options even if it says so, I do not think Oneplus does that.
Point 5 is Battery optimization, it may be that Oneplus kills the applications, that is already up to each one, I try to obtain a lower battery consumption but maintaining logical use options of a smartphone. Neither in the Oneplus 8T, nor in the Oneplus 8 Pro, nor in the Oneplus 9 I have noticed that when activating this the phone kills the applications in a drastic way.
Regarding point 7 I know that the battery brightness consumes a lot of battery, more brightness more consumption. Even so I do not like to put it automatic because it does not fit my needs correctly, I like to put it with a brightness of 85-90% because where I live there are many hours of daylight and a lot of sun in this way I always see it well, but this of course this is a personal decisión. I also know that removing the tactile sound, vibration ... etc, does not remove much consumption, but between this and all the other points added everything we will achieve greater autonomy and less battery consumption and that is what it is about. It is as if all the faucets in the house leak, a faucet does not lose much water, but if we put them all together we will surely fill a big bucket.
As for increasing the size of the registration buffer, if we increase the registration buffer it is because by having a larger record size we achieve that the CPU is more freed by having less load, with this we make the CPU available for other tasks and We will be faster when playing a video or when browsing the Internet, if we must be careful and not increase the registration buffer too much because we could suffer a higher latency between audio and video in streaming videos, for example. With this we get our phone to be a little faster, without increasing battery consumption.
In the end, with all these adjustments, we achieve with each one of them small battery savings that when put together all give us greater autonomy with a longer use time before recharging our Oneplus 9, I think that is what we all want. Thank you for your interest, I hope I have been able to solve your doubts. Greetings.
Did those point but still draining battery....
OP, on my Samsung's using any power management as you described will cause erratic behavior and even a permanent increase of battery usage.
Find the battery hogs and deal with each on a case by case basis.
Try temporarily disabling Google play Services when not needed.
Disable all cloud apps. Take out the trash; FB, WhatsApp, Twitter etc shouldn't be installed as apps and are malware.
Using a package disabler or adb edits is the only way to kill some of the unneeded parasite apps on a stock phone.
Use this edit to block ads globally:
{
"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"
}
I am running OOS 10.3.8 (rooted) on my OP 7Pro. I run the following command to force a certain app into the "ACTIVE" App Standby Bucket ...
am set-standby-bucket package.name active
After doing this, how long will the app remain in that "ACTIVE" bucket under this version of OOS? Will it live there forever because of the fact that I put it there with the above command? Or will the OS eventually take over and perhaps move it to a different bucket? All the docs I could find about this topic state that each OS has its own way of managing the placement of apps into these buckets. I'm wondering whether anyone knows specifically how OOS 10.3.8 does this.
I want that particular app to always live in the "ACTIVE" bucket, and so if the OS eventually moves it, I will have to periodically put it back into "ACTIVE", which I can easily do via Tasker.
Thank you in advance for any thoughts about this.
On Samsung's if power management is disabled all app buckets stay in the active state.
If you do not enable power management the bucket state will not alter.
Note 10+/Android 9 or 10
{
"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"
}
blackhawk said:
On Samsung's if power management is disabled all app buckets stay in the active state.
If you do not enable power management the bucket state will not alter.
Note 10+/Android 9 or 10
Click to expand...
Click to collapse
Thank you very much. Does anyone know how this functions specifically in Oxygen OS on an OP 7Pro? There is nothing in the settings for that OS called "Power Management".
(This XDA forum is for "OnePlus 7 Pro Questions & Answers".)
HippoMan said:
Thank you very much. Does anyone know how this functions specifically in Oxygen OS on an OP 7Pro? There is nothing in the settings for that OS called "Power Management".
(This XDA forum is for "OnePlus 7 Pro Questions & Answers".)
Click to expand...
Click to collapse
Interesting.
Samsung customizes their UI heavily. Not sure how other manufacturers handle this. Lol, using power management in my case on Samsung's leads to erratic behavior and heavier power consumption even after days
If all buckets show as active and if trying to reset their bucket state will not take (change state, close Developer options then reopen to see if it took), then nothing more should need to be done. The apps apps are already running in their active bucket state which is the default setting.
That doesn't mean they're continously running full bore; Android will generally manage them effectively and efficiently in this state from what I've observed. I deal with power hogs on a case by case basis without power management.
Turning off battery background use in individual apps does not alter the bucket state, at least on my devices.
Play with it... see how it behaves.
blackhawk said:
Interesting.
Samsung customizes their UI heavily. Not sure how other manufacturers handle this. Lol, using power management in my case on Samsung's leads to erratic behavior and heavier power consumption even after days
If all buckets show as active and if trying to reset their bucket state will not take (change state, close Developer options then reopen to see if it took), then nothing more should need to be done. The apps apps are already running in their active bucket state which is the default setting.
That doesn't mean they're continously running full bore; Android will generally manage them effectively and efficiently in this state from what I've observed. I deal with power hogs on a case by case basis without power management.
Turning off battery background use in individual apps does not alter the bucket state, at least on my devices.
Play with it... see how it behaves.
Click to expand...
Click to collapse
Thank you. In my case, OOS doesn't put all apps into the "ACTIVE" bucket. It has some sort of algorithm for deciding between the various states, and different apps appear in different buckets.
That's what the docs about Android's App Standby Buckets say is supposed to happen, and these docs also state that each OS can manage the decisions differently about which apps to put into which buckets, and when to do so.
These docs also state that an app in the "ACTIVE" bucket is supposed to behave as if it's in the foreground, which means that it has normal network priority. Samsung might override this behavior of "ACTIVE" apps, but if so, it would be a deviation from the specs.
I am already playing around with this on my device. I'm just not sure whether an app will stay "ACTIVE" forever after I do the following ...
Code:
am set-standby-bucket package.name active
... or whether at some point after I issue that command, the OS will take over. Eventually I'll figure it out. I'm just asking here in this OnePlus forum in case anyone who is familiar with the inner workings of OnePlus devices and OOS already knows the answer.
HippoMan said:
Thank you. In my case, OOS doesn't put all apps into the "ACTIVE" bucket. It has some sort of algorithm for deciding between the various states, and different apps appear in different buckets.
That's what the docs about Android's App Standby Buckets say is supposed to happen, and these docs also state that each OS can manage the decisions differently about which apps to put into which buckets, and when to do so.
These docs also state that an app in the "ACTIVE" bucket is supposed to behave as if it's in the foreground, which means that it has normal network priority. Samsung might override this behavior of "ACTIVE" apps, but if so, it would be a deviation from the specs.
I am already playing around with this on my device. I'm just not sure whether an app will stay "ACTIVE" forever after I do the following ...
Code:
am set-standby-bucket package.name active
... or whether at some point after I issue that command, the OS will take over. Eventually I'll figure it out. I'm just asking here in this OnePlus forum in case anyone who is familiar with the inner workings of OnePlus devices and OOS already knows the answer.
Click to expand...
Click to collapse
I read the whole Google bucket explanation. In the end I went with what works best real world.
Lol, I played with this a lot a while back.
Google will keep improving something until they screw it up.
After looking around on the web I think you may have similar power management apps on that device ie battery optimization. There could be more on drop down menus as well.
I wouldn't alter the bucket state with abd. If it's already set as active it's probably the optimized already. I use standby apps just to double check that power management isn't active as I've seen first hand the mess it can cause.
blackhawk said:
I read the whole Google bucket explanation. In the end I went with what works best real world.
Lol, I played with this a lot a while back.
Google will keep improving something until they screw it up.
After looking around on the web I think you may have similar power management apps on that device ie battery optimization. There could be more on drop down menus as well.
I wouldn't alter the bucket state with abd. If it's already set as active it's probably the optimized already. I use standby apps just to double check that power management isn't active as I've seen first hand the mess it can cause.
Click to expand...
Click to collapse
I understand, but mine is a special case.
The OnePlus devices and their OOS operating system are particularly bad concerning push-notifications. They over-do the Doze-related, battery-saving procedures so much that many push-notifications don't even get delivered to apps at all until the app is opened up in the foreground, which could be many minutes or even hours after the notification was originally sent.
Turning battery optimzation off for those apps has no effect. Nor do any of the many different Doze profiles that I have tried. And "whitelisting" the apps is simply what happens when battery optimization is turned off, and it therefore has no effect.
I have to put those apps into the "ACTIVE" bucket, and only then do they reliably receive those otherwise highly delayed push-notifications at the time that they are sent.
I have spent a lot of time trying to correct this problem, and I only came up with two solutions: (1) Use Tasker to periodically open those apps in the foreground for a few seconds, so they can repeatedly get caught up with any pending, undelivered push-notifications; or (2) put the apps in question into the "ACTIVE" bucket.
Obviously, the second alternative is less intrusive to my everyday use of my device.
I have not experienced any negative consequences of putting those apps into the "ACTIVE" bucket.