Is there any kernel or rom that reduces or eliminate the DOZE feature? I hate delayed notifications and i have been through every setting 6743324 times since i got this phone in the beginning of June? I am currently unrooted but am willing to root. Samsung Pay doesn't bother me because i have a gear s3 that i can use to pay
MobyDck said:
Is there any kernel or rom that reduces or eliminate the DOZE feature? I hate delayed notifications and i have been through every setting 6743324 times since i got this phone in the beginning of June? I am currently unrooted but am willing to root. Samsung Pay doesn't bother me because i have a gear s3 that i can use to pay
Click to expand...
Click to collapse
You can just run an adb command to disable doze, I don't think root is required but could be wrong:
dumpsys deviceidle disable
But I would recommend you leave doze as it is...just whitelist the apps you want notifications from:
dumpsys deviceidle whitelist +[com.packagename.here]
Sent from my SM-G955F using Tapatalk
RuggedHunter said:
You can just run an adb command to disable doze, I don't think root is required but could be wrong:
dumpsys deviceidle disable
But I would recommend you leave doze as it is...just whitelist the apps you want notifications from:
dumpsys deviceidle whitelist +[com.packagename.here]
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
But wouldn't the restrictive background networking still be enabled. I mean wouldn't there still be a delay in messages because of "no network activity" when the screen is off?
I'm not sure. The only app I've wanted to whitelist is Tasker. You'll have to try it out and see. If it's not what you want, then run the disable command.
Sent from my SM-G955F using Tapatalk
Related
Step 1: Enable Stamina mode and Low battery mode.,
Step 2: Set both of them to only activate when battery level is below 1%
Step 3: Don't let your battery level drop below 1%
That should take care of those 2 notifications. If anyone has figured out how to get rid of all the other annoying Sony notifications, please post.
There is another way to stop it
If these stamina notification fade in you can use two fingers on this notification and pull it down...
there is a checkbox you can deselect to hide these upcoming notifications
tsc.smith said:
There is another way to stop it
If these stamina notification fade in you can use two fingers on this notification and pull it down...
there is a checkbox you can deselect to hide these upcoming notifications
Click to expand...
Click to collapse
Like every notification on Android, you go in the Application menu, you search for the app concerned and uncheck "show notifications"
Gregz78 said:
Like every notification on Android, you go in the Application menu, you search for the app concerned and uncheck "show notifications"
Click to expand...
Click to collapse
Have you actually tried this? Which application is responsible for the power management tips notifications? Post a screenshot.
yeah_mike said:
Have you actually tried this? Which application is responsible for the power management tips notifications? Post a screenshot.
Click to expand...
Click to collapse
I thought every app having the permission to post a notification was in the app listing with the possibility to disable the notifications. Eco mode Control have his checkbox greyed out.
Apparently, the "real" apps involved are “SemcPowerSaveModule.apk , Settings.apk and SuperStamina.apk” and I don't see them in the app list so forget my quote :silly:
tsc.smith said:
There is another way to stop it
If these stamina notification fade in you can use two fingers on this notification and pull it down...
there is a checkbox you can deselect to hide these upcoming notifications
Click to expand...
Click to collapse
Thank you so much. Worked on my Z5c. Great hint.
Gregz78 said:
I thought every app having the permission to post a notification was in the app listing with the possibility to disable the notifications. Eco mode Control have his checkbox greyed out.
Apparently, the "real" apps involved are “SemcPowerSaveModule.apk , Settings.apk and SuperStamina.apk” and I don't see them in the app list so forget my quote :silly:
Click to expand...
Click to collapse
OK: Interesting bit of knowledge, which in this case doesn't help much, but might still be nice to know:
If you don't see an app in the listing or if it's checkbox is greyed out, use this:
Code:
adb shell
pm hide com.package.name
to reverse it, replace "hide" with "unhide".
This hides the app from the system, including in the drawer. It is similar to "disabling" system apps. Not recomended for things you actually use, e.g. com.android.settings or com.sonymobile.superstamina. They will not work afterwards. It works very well with the annoying "low storage" notification though. Package name is com.sonymobile.storagechecker. Just try it out, you can always unhide, and the changes are instantaneous.
ADB is great.
You can for example find packages by
Code:
adb shell
pm list packages searchterm
so for example
Code:
pm list packages settings
produces a list of all packages with "settings" in the name.
Code:
pm list packages -s settings
shows only system apps with "settings" in the name.
If you want to play around in ADB by yourself, use a questionmark after a command to see all the avaliable options for this command. The two basic commands are am (activity manager) and pm (package manager)
Code:
adb shell pm ?
So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
duraaraa said:
So to work around these issues, the only way to do it is to disable Doze.
Click to expand...
Click to collapse
Have you also tried selecting the Performance plan?
Performance setting still won't work.
Sent from my HUAWEI NXT-AL10 using XDA Premium 4 mobile app
Maybe it can help.
{
"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"
}
Sent from my HUAWEI NXT-L29 using Tapatalk
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
How did you get in that setting? I can't find it in my phone 'setting'
snugroho3 said:
How did you get in that setting? I can't find it in my phone 'setting'
Click to expand...
Click to collapse
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Is greenify working ok without xposed?
sure thing, xposed only enables some extra functions. been using greenify without xposed for a long time now
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
duraaraa said:
So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
Click to expand...
Click to collapse
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
johnweber7375 said:
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
You can check using adb.
I don't have the phone now (it's bricked) so I'm sorry to say I can't be sure the command is right, but I think you should see something like disabled if you run
adb shell dumpsys deviceidle
Then you will know that it worked.
greyhulk said:
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
Click to expand...
Click to collapse
I spend a LOT of time figuring it out, but it was definitely Doze.
The dead giveaway is that Hangouts (high priority message so Doze doesn't matter) worked fine.
I'm happy it works for you. Let's hope Huawei fixes this. Most Chinese users don't really care about Google Cloud Messaging and get their notifications through other services which Doze doesn't affect, so I'm thinking they're not likely to fix it, but we'll see.
Anyone that disabled doze can check how big of an impact it is on battery life?
Also anyway to fix without root?
I solve this issue by giving priority to the important apps notification and all warking perfect now
My device is L29 with kangvip rom
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks mate it helped me solving the notification issue without needing to root my phone.
This does indeed work. Have a look at this thread as well.
http://forum.xda-developers.com/android/apps-games/root-doze-settings-editor-android-t3235130
I wonder if there is some parameter in an apk or in the kernel I can edit so when you flash a ROM doze is disabled by default.
Thanks buddy for that doze thread!
I disabled hangouts and the battery life got much much better
Other notifications I have set via the settings--->notification panel---->notification manager and set according to the app use
bibiner said:
Anyone that disabled doze can check how big of an impact it is on battery life?
Click to expand...
Click to collapse
No difference at all for me. Standby time is just as good. Huawei's own "Doze" still works if you want it to, also.
bibiner said:
Also anyway to fix without root?
Click to expand...
Click to collapse
Yes you can run that command with ADB without root and it will work just as well. Just be sure to have USB debugging enabled in developer options. The part about root is so that you can use Tasker to automate the process instead.
somboons said:
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks for the greenify hint mate!
Hi. Is there any way to disable Doze mode fully? I am sick of refreshing gmail for important emails.
chainrulez said:
Hi. Is there any way to disable Doze mode fully? I am sick of refreshing gmail for important emails.
Click to expand...
Click to collapse
Hello... You can go here:
Settings > battery > 3 dot menu: optimization > tap on "non optimized" and select "all apps"
You can scroll down, tap on Gmail and choose "don't optimize"
I don't have any problem with Gmail notification though I let doze do its job.
Have you tried wiping Gmail data and cache or wipe, uninstall and reinstall to see if it works? You could also try to just wipe the whole cache from recovery...
Good luck...
5.1 said:
Hello... You can go here:
Settings > battery > 3 dot menu: optimization > tap on "non optimized" and select "all apps"
You can scroll down, tap on Gmail and choose "don't optimize"
I don't have any problem with Gmail notification though I let doze do its job.
Good luck...
Click to expand...
Click to collapse
Yes sir done that 100 times but it won't detach from doze, this is a known issue in nexus series and that's why I wanted to disable it completely. I am using Greenify instead already and it's serving me well.
chainrulez said:
Yes sir done that 100 times but it won't detach from doze, this is a known issue in nexus series and that's why I wanted to disable it completely. I am using Greenify instead already and it's serving me well.
Click to expand...
Click to collapse
Hey sir!
If you wrote the step you used trying to fix the issue, I wouldn't have advised it in the first place...
Anyway... Have you tried a search on Google? I found a command that disable doze completly. At least people report notifications working after that. It seems to work on OnePlus and Huawei devices, so it must be worth to try. If you haven't already...
Open a command prompt and issue:
adb shell dumpsys deviceidle disable
Not sure it survives a reboot.
Good luck... :good:
5.1 said:
Hey sir!
If you wrote the step you used trying to fix the issue, I wouldn't have advised it in the first place...
Anyway... Have you tried a search on Google? I found a command that disable doze completly. At least people report notifications working after that. It seems to work on OnePlus and Huawei devices, so it must be worth to try. If you haven't already...
Open a command prompt and issue:
adb shell dumpsys deviceidle disable
Not sure it survives a reboot.
Good luck... :good:
Click to expand...
Click to collapse
Thanks a million respected sir, I got this message which I assume it worked:
Deep idle mode disabled
Light idle mode disabled
Click to expand...
Click to collapse
:highfive::good:
chainrulez said:
Thanks a million respected sir, I got this message which I assume it worked:
:highfive::good:
Click to expand...
Click to collapse
Wow... Nice. No need to credit me for this. But thanks. As I said, i just found the command with this simple Google search:
"Complete disable doze Android" without quote.
Try to reboot and check if the notification work yet. Or Google the command and see people reports. Hopefully the output you got from the command prompt confirms doze is really off for good. :good:
Cheers...
On my Pixel XL, the screen turns on as soon as I lift the phone and I can just swipe to unlock. On the OP5, it requires you to double tap the screen before you can unlock. The lift-to-wake part works fine and I get that they did it this way to prevent accidental unlocks in your pocket, but the proximity sensor can do that anyway.
I prefer the way it used to work, the way the Pixel works. I have never had a problem with my phone waking in my pocket. Is there any way to get it back to where it will unlock with a swipe after you lift it up? It would be nice if it was at least an option you could toggle. I can see why some people would prefer it this way to prevent accidental pocket unlocks.
Use Tasker. Make a Gesture event context. Your task only needs one action, Run Shell:
input keyevent 6
Make sure Use Root is checked and an the following condition:
If %SCREEN ~ off
Sent from my SM-G955F using Tapatalk
RuggedHunter said:
Use Tasker. Make a Gesture event context. Your task only needs one action, Run Shell:
input keyevent 6
Make sure Use Root is checked and an the following condition:
If %SCREEN ~ off
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
I'm trying this out now. Thanks for the tips here. How are you getting Tasker to recognize root? Mine is not prompting me. I'm using Magisk.
xgerryx said:
I'm trying this out now. Thanks for the tips here. How are you getting Tasker to recognize root? Mine is not prompting me. I'm using Magisk.
Click to expand...
Click to collapse
Uncheck Use Root and change the Run Shell like this:
su
input keyevent 6
Or you can install the supersu apk.... even though you don't use it tasker will see that you're rooted.
Sent from my SM-G955F using Tapatalk
RuggedHunter said:
Uncheck Use Root and change the Run Shell like this:
su
input keyevent 6
Or you can install the supersu apk.... even though you don't use it tasker will see that you're rooted.
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
Something still isn't working it seems. Do I need to create a gesture event and record the lifting of the phone? The screen off IF function is red also. I dunno, maybe a little over my head. Tasker always kinda confused me.
xgerryx said:
Something still isn't working it seems. Do I need to create a gesture event and record the lifting of the phone? The screen off IF function is red also. I dunno, maybe a little over my head. Tasker always kinda confused me.
Click to expand...
Click to collapse
Yes, exactly. When creating the gesture, lay your phone on a flat surface. Longpress a volume key to start recording and immediately pick your phone up, then longpress volume again to stop recording. Make the gesture. Then link it to a task containing a Run Shell action with this code:
su
input keyevent 6
You should also go to Tasker Preferences > Monitor tab > Accelerometer > Yes
Edit: Also, your If condition is checking if the screen is off.... so it should be red any time you look at it in tasker, since obviously the screen is on while you're looking at it.
Sent from my SM-G955F using Tapatalk
RuggedHunter said:
Yes, exactly. When creating the gesture, lay your phone on a flat surface. Longpress a volume key to start recording and immediately pick your phone up, then longpress volume again to stop recording. Make the gesture. Then link it to a task containing a Run Shell action with this code:
su
input keyevent 6
You should also go to Tasker Preferences > Monitor tab > Accelerometer > Yes
Edit: Also, your If condition is checking if the screen is off.... so it should be red any time you look at it in tasker, since obviously the screen is on while you're looking at it.
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
I think I have it all correct now but this red bar next to the linked task seems to be causing no profile to be active. Or root still is not working.
Looks perfect. Check the Run long and see of the profile is firing.
Sent from my SM-G955F using Tapatalk
Hi,
I already turned off the Ambient Display in Display settings, but when I get notifications, it still lights up and activates the screen periodically. I'm on December 1st 2017 security patch.
Anyone have the same issue?
If you guys have the same issue, please vote my report in MI forums, so they can take the action when there is enough attention. VOTE HERE
I do have same issue. With the option off the screen still powers on when a notification arrives. Did you found any fix?
Try to run this shell command using root access
Code:
settings put secure doze_enabled 0
mnirun said:
Try to run this shell command using root access
Code:
settings put secure doze_enabled 0
Click to expand...
Click to collapse
oh.. not going to disable doze. doesn't disabling it affect negatively the battery?
luminoso said:
oh.. not going to disable doze. doesn't disabling it affect negatively the battery?
Click to expand...
Click to collapse
It's only turn off screen ambient mode. I'm using command line from AOSP source code. You can verify this code from here DeviceSetup.java