Doze in accessibility? What's that? - G4 Q&A, Help & Troubleshooting

Wandering in my LG G4 settings I was in "accessibility" options and I found at the bottom of the screen the "doze" option. What's that?

Which version of Android are your phone running? Mine is running Marshmallow and there is no "Doze" option found in "Accessibility".

Maybe it's a fake application from playstore.
Because Marshmallow versions have a new feature called Doze.
Android Marshmallow has changes deep in the operating system that can allow your phone (or tablet) to get better battery life. We see this mentioned with every operating system update from every company that makes smart devices, but this time they mean it.
Enter Doze. If the name reminds you of a pleasant nap while nothing pressing is going on, you've figured out what it is. It's a set of changes and rules that will put your phone to sleep when it's idle, which means you're not using as much of that precious juice from your battery. It sounds simple (and it is) but there are a few things to know.
You won't have to do anything to use the new Doze feature. There are no switches or settings you need to toggle, and once you've updated to Marshmallow it just works. That is, when it's supposed to work.
And that's the thing. You won't see any benefit from Doze while your phone is in your pocket and you're working or at school. Things need to be idle, and that means really idle.
For Doze to kick in, your phone needs to be sitting still with the screen off, and not connected to a charger. That means no moving around and nudging the gyro or other motion sensors, no touching the screen or the buttons and no waving your hand around in front of it if you're using a phone like the new phones from Motorola that have motion detection on the front bezel. Set it down, and leave it alone.
After a while, everything goes to sleep. Well, almost everything. You'll still get notified when "high-priority" apps need your attention. That means things like phone calls or SMS messages can get through (and thus waking up your dozing phone) as well as any app that declares itself as high-priority. Other things, like email notifications or Clash of Clans telling you your gold mine has leveled up aren't going to come in and wake your phone up.
And yes, this sounds like there is potential for abuse by developers who want to declare their app as high-priority. But Google has thought of this, and has a pretty good way to curtail any devious developers — high-priority notifications that aren't part of your carrier network (calls and texts) have to come through a Google Cloud Messaging server. When they find someone abusing the system, and subsequently keeping your phone from dozing as intended, they can take action. We assume this means those notifications can no longer come through as high-prioity, but we also hope there is tar and feathers involved.
Sent from my Lenovo A7010a48 using XDA-Developers mobile app

I also noticed the feature right at the bottom of accessibility?

Celi911 said:
I also noticed the feature right at the bottom of accessibility?
Click to expand...
Click to collapse
Friends no idea what are you talking about. But in Android marshmallow there have a hidden settings for doze but we can't get it or saw in any settings . it's automatically loading when our device standby clearly ( running no sensors, running no media players,) a idle means correct ideal phone stayed in a table. So the option will automatically make other programs deep sleep excluding our priority setted application
Sent from my Lenovo A7010a48 using XDA-Developers mobile app

I'm sorry for necro-posting, but it's for future generations.
I believe you guys have installed this third-party app, named "Doze" (which is, of course, unrelated to the real Doze, implemented in the Android framework).
It provides an accessibility service, which then appears in the Accessibility settings. I'd say it's a bit unfortunate that it's not made clear that it comes from a third-party app. Of course, the service being named simply "Doze", same as an Android feature, doesn't help.
For maximum googlability, here's how the service describes itself when clicked in Settings:
Enabling Doze accessibility service helps aggressive mode work better.
You may receive warning of potential privacy risks. Please rest assured as it is a regular warning when you enable any accessibility service.
Doze does NOT collect your private information ever and forever.
Click to expand...
Click to collapse
Whether you trust the developer or not is up to you.

Related

A Root Battery Saver App (By Moi)

I've lately got into developing mobile apps and even though i've promoted this as beta, people seem to be using it, but nobody's reporting back! - same goes for all of my apps, i don't get it...
Anyway, i need real feedback and I was wondering if any folks here with a rooted android could help test this app out, it was made on Kitkat, so while yes, it works fine for me, it may not for you... I've had one feedback comment saying that his modem data was not switching off on lollipop, so i added support for that now allowing him or her to use the app as intended, but after replying via the playstore, nothing was heard of him since... almost suspicious lol
http://www.youtube.com/watch?v=YpsPnMRO86w
Find it on Android's Playstore... Craig's Battery Saver ROOT
https://play.google.com/store/apps/details?id=saver.battery.craigs.craigsbatterysaver :good:
How it works..... read on
How it works, if you're interested!
2 things use up battery power
1. apps that are CPU intensive, eg constantly repeating to connect (this would only happen under malware, as most apps would never do this, it would see the socket it closed/dead and stop and wait until user input, malware would constantly reconnect.. but 99/100 apps will just stop and then do nothing meaning all genuine apps should 'idle' not really using up cpu time....
2. Hardware services, bluetooth, mobile data, wifi, gps, these services are all hardware, so your cpu will switch on each of these services and each one has a significant drain on your battery, go bed at 11pm, by 9am it may have drained 30 - 40% or more... with this app, it will have drained under 1 - 3% depending on your battery (tablets for example should run for days with this app if rooted)
So this app does 2, it first remembers which hardware was on before the screen goes off, so no confusing switch wifi on when wifi's already on (as i've seen on other apps?!) reason why i wrote this because all the other apps i came across sucked really, almost but not quite etc etc..
With this tool, if you're a light user you could quite easily see 60% battery improvement! the bonus side affect of this app is also interesting, for 1, it charges quicker! if you accidentally fall asleep, it will conserve as much power as possible, obviously sms,telephone/mobile network is still running in the background so you can't completely stop a device from draining...
the other bonus side affect was, it kills dead all facebook notifications, twitter, well it would as it disables wifi, modem. 3g, bt when the screen goes off! :good:
1 more feature, if you drop your phone? then what?... take where's my droid, i sms it asking for location... it replies "GPS OFF" and "modem off" simple, send the text message to your phone with "on" without the " " around on, and the app will disable itself so it does not switch off the services and then at the same time it enables Wifi, Modem Data, Gps, Bt pretty useful huh... then on where's my droid, you'll get GPS combined with AGPS data from mobile data giving you pin point accuracy, as soon as you get the data of where it is... type in
off (to turn this feature off) or
on (to turn on all your services)
It also disables itself taking calls...
It has a smart check feature too, let's say after you switch the screen on and for some reason wifi failed to switch on ? after 3 seconds it will then check again to see if wifi is indeed on... if it's not on, it attempts to switch it on again...
Feedback is greatly appreciated so i can support a larger range of devices.... thank you for reading! (Suggestions, welcome!)
So basically what your device is and what's not working (along with build version, lollipop/kitkat etc) and i'll see if i can find a way to add it in to support your droid! - one more thing, i've been releasing updates like a crazy woman collecting cats lately and even though it does all this it's only supporting "Extreme power saving option" come tuesday i hope to have that sorted out so that every few minutes it can wake up to check for twitter/facebook messages for all of those who hate the sound of a phone being blissful quiet
if you're rooted and it does not look like that in the video [top of screen] (not the interface, but the services, i've already updated the UI)
anyway, help me to make it better for you...
One more thing, there are no push notifications, no popup adds, no huge banners, all my apps have one tiny advert to help support the countless hours of programming i'm putting into this apps, with each upgrade i aim to make them more stable and more usable, and i really need peoples help and support even if that is criticism - it's "beta" but i'm almost ready to bring it out after i add the wake up services....
Nobody has a rooted device?
Unlike other battery savers... it really does work

Battery optimization

What exactly does that feature do on an individual app? Security apps like cerberus recommend not using it.
Sent from my Nexus 5X using Tapatalk
Hi
km8j said:
What exactly does that feature do on an individual app? Security apps like cerberus recommend not using it.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
During Doze mode (this kicks in when you've not moved or used the phone for a period of time, such as overnight when it's left alone) stops apps from waking the phone or running background tasks, the idea being if the phone isn't being used, it's a waste of power for apps to keep going off on line chattering or receiving notifications and displaying them to the user. Notifications that you might have got immediately, don't ping through until you press the power button the next morning.
I suspect security apps like Cerberus don't want to partake in Doze mode as they want to wake your phone up every few hours regardless and scan it, or be able to download new signatures any time.
Despite setting an app to not be optimised, it still gets stop from waking the phone using alarms during Doze (alarms are something an app can set to say wake the phone up and run the app every 10 minutes or on the hour etc). However the developer of the app can work around this by setting a new type of alarm, for Google this work around is easily detected and it wouldn't surprise me if they start alerting on the Play store about apps that are potential battery drains because they by-pass Doze. Of course some apps have to, for example an alarm clock to wake you in the morning, or something like Tasker that you set to run things at specific times, so it will be up to the developer to explain why and the person downloading to make a decision about it.
Regards
Phil
Hi
PhilipL said:
However the developer of the app can work around this by setting a new type of alarm, for Google this work around is easily detected and it wouldn't surprise me if they start alerting on the Play store about apps that are potential battery drains because they by-pass Doze. Of course some apps have to, for example an alarm clock to wake you in the morning, or something like Tasker that you set to run things at specific times, so it will be up to the developer to explain why and the person downloading to make a decision about it.
Click to expand...
Click to collapse
That was my post in October, this happened to Tasker: http://www.androidpolice.com/2015/1...y-reasons-this-time-its-the-notorious-tasker/
It seems Google has perhaps pulled the plug on Tasker a bit too quickly due to a BETA version, but I think overall this approach is good for Android if it gets rid of battery draining apps, which usually are up to no good downloading ads or sending back data for marketing reasons. Obviously some apps are the exception to this like Tasker, which will need this exception to continue working correctly, as otherwise it will be restricted to one wake-up every 15 minutes only when the phone goes into doze mode.
Regards
Phil
PhilipL said:
Hi
That was my post in October, this happened to Tasker: http://www.androidpolice.com/2015/1...y-reasons-this-time-its-the-notorious-tasker/
It seems Google has perhaps pulled the plug on Tasker a bit too quickly due to a BETA version, but I think overall this approach is good for Android if it gets rid of battery draining apps, which usually are up to no good downloading ads or sending back data for marketing reasons. Obviously some apps are the exception to this like Tasker, which will need this exception to continue working correctly, as otherwise it will be restricted to one wake-up every 15 minutes only when the phone goes into doze mode.
Regards
Phil
Click to expand...
Click to collapse
Interesting reading. The question is why they even allow apps to use permission for ignoring doze, whe it most liley means ban in Play Store. Should be available to system apps only.
Note: Google Play policies prohibit apps from requesting
direct exemption from Power Management features in Android 6.0+ (Doze and App
Standby) unless the core function of the app is adversely affected.
Click to expand...
Click to collapse
Now the question is what authority can JUDGE whether certain app needs it or not.

How to prevent apps from getting killed

Hi all,
I'm running several apps that should run all the time (AdGuard, Network Speed Meter) or for a long time (speed trap warner,...) but OxygenOS kills them after a certain period. Some of them restart automatically, some don't. Of course all of these apps are 'not battery optimized'. Is there any chance to prevent OxygenOS from killing them?
Are there custom ROMs that can overcome this problen?
I'm on the latest OxygenOS Pie Beta, but the behavior was similar on Android O...
Thanks a lot,
W
Did you try locking the app via recents menu?
Thank for the info, didn't know that.
Unfortunately it doesn't help, Adguard and the network monitor don't appear in recents. The speed trap warner automatically starts and stops when I'm in the car, i don't want to open recents manually every time.
Battery - Battery optimisation - Don't optimise
safwankatharudheen said:
Battery - Battery optimisation - Don't optimise
Click to expand...
Click to collapse
This is not changing anything,e ven with disable battery disabled, even with adaptative battery disabled.
I have the same problem. I have not found any solution whatsoever. This is really frustrating. I've made sure apps aren't optimized. Advanced optimization is disabled. Developer options background limit is at standard. I've pinned the apps in recent apps and it still happens. Apps get killed all the time.
For example,
1. I use Google Fit to start tracking a run. Within 10 minutes of tracking, the app is closed and workout not tracked. Its not even like i touched the phone and opened other apps during this.
2. I have VoIP account setup in the default dialer. Calls come through only 50% of the time cause the dialer is closed.
3. YouTube Music, constantly gets closed if i simply pause the music. Within 2 minutes, the app is closed.
4. Trying to transfer 15GB of files through Explorer app from phone to file server, never succeeds if i don't watch the app and keep the screen on.
5. Plex gets closed and therefore my photos don't auto backup with the phone is plugged in.
This is absolutely ridiculous! Why the hell a phone with 8GB of RAM is killing apps is beyond me!
Custom ROM on the same phone, like Lineage OS, no issues. Can have optimization on, battery manager on and all. In fact, battery life is better on custom when its not killing the apps! Seems to be the only solution until OOS can stop killing apps so aggressively.
M3drvr said:
I have the same problem. I have not found any solution whatsoever. This is really frustrating. I've made sure apps aren't optimized. Advanced optimization is disabled. Developer options background limit is at standard. I've pinned the apps in recent apps and it still happens. Apps get killed all the time.
For example,
1. I use Google Fit to start tracking a run. Within 10 minutes of tracking, the app is closed and workout not tracked. Its not even like i touched the phone and opened other apps during this.
2. I have VoIP account setup in the default dialer. Calls come through only 50% of the time cause the dialer is closed.
3. YouTube Music, constantly gets closed if i simply pause the music. Within 2 minutes, the app is closed.
4. Trying to transfer 15GB of files through Explorer app from phone to file server, never succeeds if i don't watch the app and keep the screen on.
5. Plex gets closed and therefore my photos don't auto backup with the phone is plugged in.
This is absolutely ridiculous! Why the hell a phone with 8GB of RAM is killing apps is beyond me!
Custom ROM on the same phone, like Lineage OS, no issues. Can have optimization on, battery manager on and all. In fact, battery life is better on custom when its not killing the apps! Seems to be the only solution until OOS can stop killing apps so aggressively.
Click to expand...
Click to collapse
My app is not killed when i lock it in the switch app menu
There's a whole website regarding that issue on several devices, maybe it helps: dontkillmyapp(dot)com/general#user-solution

Apps won't stay in the background

Hi all,
Just converted from Huawei to this beauty which I already love dearly
Though, having big issues with two apps I really *need* to stay active in the background. Both apps do have the option "Run in background" which are activated. I've also made sure those two apps are not Battery Optimized. I've also made sure they have all needed Access Rights (Camera, Mic, etc etc). Still - when the lid are closed and a while after, the two apps stops receiving notifications. Also, the two apps stop sending information back to the systems telling that I have the apps active and are monitoring/on watch. Opening the lid are enough to wake the apps up enough to receive notifications. I can honestly not use this phone unless I find the cause of this whatever are killing the apps. The notifications are alarms from two different monitoring systems.
Are there any other places/settings I can look to find out why the apps stop responding?
Also, where are now the setting where I can tell that these two apps should autostart on boot?
In advance, thx.
Br,
Stigh
Maybe turning this on would help maintain a stable connection: settings>apps & notifications>Special app access>Unrestricted data
I also have a Huawei, unfortunately the option of AutoStart apps isn't available in this phone as far as I know.
Can I ask if you are also having background 'clicks' from the earpiece when talking on the phone?
My wife is having same issue with her lg stylo 6, I say it's ram issues since she's using 99% ram all the time. Hers will close apps even if recent button was hit and went right back to the same one. If you find a fix lmk, also check ram and usage.
Yoni160 said:
Maybe turning this on would help maintain a stable connection: settings>apps & notifications>Special app access>Unrestricted data
I also have a Huawei, unfortunately the option of AutoStart apps isn't available in this phone as far as I know.
Can I ask if you are also having background 'clicks' from the earpiece when talking on the phone?
Click to expand...
Click to collapse
Hi, thx for the feedback, I will test this setting and see - and report back Though, as it works as long as the phone do not fall into Deep Sleep, how can it be unrestricted data? To me, it seems Android go into some Deep Sleep state some time after you close the phone - I suspect this is a Motorola-thing, not Android 10.
No, I have no 'clicks' in the backround when using phone itsself or BT headset. Have not tested the original cabled earpiece though.

Question Prevent apps from being killed?

Is there a way to prevent an app from ever being killed? I have 2 examples:
1) Fitbit app (background sync service, specifically) - when this stops running, some features on my watch quit working until I launch the app and sync manually.
2) Battery monitor app - I've tried AccuBattery (my preferred app), GSam, and BBS, but they all get killed and restart, and therefore give inaccurate information. BBS doesn't die as often as the others, but I don't like it as well. All 3 have persistent notifications, so I can tell when they last restarted.
I've set Battery Optimization to "Don't Optimize" for all of these. I've tried turning off all 3 of the settings under Advanced Optimization (probably unnecessary, no noticeable difference). I've also Locked each of these from recent apps. Are there any other settings I'm missing that could prevent an app from being killed? Possibly something new to Android 11? Fitbit and AccuBattery worked fine on my previous OP7P with Android 10.
terlynn4 said:
Is there a way to prevent an app from ever being killed? I have 2 examples:
1) Fitbit app (background sync service, specifically) - when this stops running, some features on my watch quit working until I launch the app and sync manually.
2) Battery monitor app - I've tried AccuBattery (my preferred app), GSam, and BBS, but they all get killed and restart, and therefore give inaccurate information. BBS doesn't die as often as the others, but I don't like it as well. All 3 have persistent notifications, so I can tell when they last restarted.
I've set Battery Optimization to "Don't Optimize" for all of these. I've tried turning off all 3 of the settings under Advanced Optimization (probably unnecessary, no noticeable difference). I've also Locked each of these from recent apps. Are there any other settings I'm missing that could prevent an app from being killed? Possibly something new to Android 11? Fitbit and AccuBattery worked fine on my previous OP7P with Android 10.
Click to expand...
Click to collapse
I have try to to go to developer mode and go to standby application. go inside and set the app you want to always on to active and remember still set battery to don't Optimize and locked the app. Do not click the clear all button.
fifasax said:
I have try to to go to developer mode and go to standby application. go inside and set the app you want to always on to active and remember still set battery to don't Optimize and locked the app. Do not click the clear all button.
Click to expand...
Click to collapse
Interesting, I haven't seen that before. Thanks for introducing me to something new. All of the apps in question are currently grayed out and say Exempted, so they shouldn't ever be put into standby.
Disable all power management*, Android does fine without it. Address any remaining power hogs individually on a case by case basis.
Power management will cause erratic behavior and can even increase battery usage even after its lame "adjustment" period.
To check if it is fully disabled go to Developer options>Standby apps, all buckets should show to be in their active state (and can't be manually assigned), if not power management is enabled.
Make sure allow background usage isn't disabled on the apps you want to run.
*yeah turn all those optimizing toggles OFF.
Only fast charging should be toggled on if you use it.
blackhawk said:
Disable all power management*, Android does fine without it. Address any remaining power hogs individually on a case by case basis.
Power management will cause erratic behavior and can even increase battery usage even after its lame "adjustment" period.
To check if it is fully disabled go to Developer options>Standby apps, all buckets should show to be in their active state (and can't be manually assigned), if not power management is enabled.
Make sure allow background usage isn't disabled on the apps you want to run.
*yeah turn all those optimizing toggles OFF.
Only fast charging should be toggled on if you use it.
Click to expand...
Click to collapse
How does one disable all power management? I don't see any sort of global switch for that. Turning it off entirely seems drastic, but I agree that power management is generally more trouble than it's worth.
I did verify that the apps in question are allowed to run in the background and use unlimited data.
terlynn4 said:
How does one disable all power management? I don't see any sort of global switch for that. Turning it off entirely seems drastic, but I agree that power management is generally more trouble than it's worth.
I did verify that the apps in question are allowed to run in the background and use unlimited data.
Click to expand...
Click to collapse
It seems like you're setting up right. Check the Stand by apps status.
When you first load Accubattery it gives an option to disable task killing in settings, Pro version.
Uninstalling then reinstalling it sometimes works for me; clearing its data does not. I was getting the same error message until I just reinstalled it
Just don't take Accubattery too seriously... it's useful up to a point.
I'm on Pie. Google really screwed up 10 and especially 11... so yeah it could something new as Google insists on changing things even if they're already nearly perfect
If that fails check with Accubattery for guidance with 11. They are responsive to emails.
They may also be punching out an update.

Categories

Resources