yashsingh1/xdaforums huggingface dataset:
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
All right! Can anybody test the magisk module i make? All i do is patch the command into magisk module and this module does is that automatically disable deep idle doze on every boot so you don't has to manually do it on terminal or tasker... I been test it a little bit and seem everything work fine...let me know how it work for you! Also i suggested that you disable adaptive optimize for best!

Credit to OP for founding the command!
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
Just downloaded this morning, I will report back and let you know if this helps. Thanks for your efforts either way.
[OnePlus 6T  Guides, News, & Discussion] Incredible_Culp:
Flash via TWRP or Magisk itself?
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Either way you want! It dont matter..also please feedback if it work for you! Thanks!
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
I flashed via magisk itself. Notifications come right away with the screen on. They still seem delayed with it off though. I will continue testing...
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Well did you turn off adaptive optimize and dont optimize option under battery settings? And sleep optimize under advanced settings?
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
I had all of those already set except for the Sleep optimization. It's off now though.
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Ok let test that see how it work! Thanks for report though!

Edit: forget to mention that you should turn off both deep and sleep optimize!
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
Deep was already off, but good looking out!
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Ok cool let test it how it work imma go home and test it agian...can you tell which app u use is delayed so i can test it too see if we has different results?
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
SMS via Facebook Messenger, and messaging on the Facebook Messenger app.

I also have a garage door opener app that used to notify me right away before, and it's been much slower since the 6T. That one will be more difficult to test, but I'll be able to tell later if this fix helps.
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
The Liftmaster MyQ app is now notifying me as quickly as it used to, with the screen off! Notifications seem to be coming in when they should.
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
What about sms via facebook and fb messenger? I test on fb messenger and it come through all the time but i didn't use SMS via messenger so idk! Good one tho!i probably upload the module to magisk...i think it work on all android 6 and up since we got doze mode at android 6!
[OnePlus 6T  Guides, News, & Discussion] OrganicRobot:
I've tested the SMS a few times this morning an they are also near instant! So far, so good!
[OnePlus 6T  Guides, News, & Discussion] Michalec:
Magisk version works fine, anyone?

I've noticed that FB Messenger notifications sometimes comes with delay...
[OnePlus 6T  Guides, News, & Discussion] Incredible_Culp:
Everything works fine, except my banking app (the only app i continued to have issues with ever since getting the 6t). Which i think would be difficult for you to even test. But once i disabled all the battery savings crap (a long time ago), notifications came in fine except for my banking app (hoping this would fix it, but it doesnt).

Ill do it from what the OP says and see if that works
[OnePlus 6T  Guides, News, & Discussion] dunjamon:
Does this fix effect battery life?
[OnePlus 6T  Guides, News, & Discussion] techlogik:
Overnight my phone lost 5% in scheduled silent mode. I don't think it has any effect personally. That is about normal drain for an 8hr period of doing nothing without the screen on no matter what I've done.

The plus of course, notification issues are fixed completely disabling all that garbage and using PNF Root and SManager and the Disable Doze script upon boot. Works great and as it should now.
[OnePlus 6T  Guides, News, & Discussion] Incredible_Culp:
Can you tell me exactly how you use/apply this, like with step by steps? Never used Tasker before.. Just downloaded it and im lost ha
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
You can click on 3-dot Menu - Data - Backup and then copy my Tasker file to the location....click Data - Restore - User Local Backup and select the file. I would suggest to install Magisk module if you have Magisk installed
[OnePlus 6T  Guides, News, & Discussion] ecompton59:
ambient display is the notification problem mine was off so I changed no issue any more hope this helps everyone
[OnePlus 6T  Guides, News, & Discussion] biggiestuff:
I wonder if this would fix my issue with the Kasa app. I have my doubts because some reason the OP6T is killing the app completely. I'll stop getting notifications from it and when I check the app info for Kasa the force stop option is greyed out because the app was completely killed.
[OnePlus 6T  Guides, News, & Discussion] ..Cory..:
Not sure if you guys are running a custom kernel or not, but I use the EX Kernel manager for my kernel and there is an option within the app (Tools > Scripts) to manage scripts at boot. I simply made the script with the command given here and I set the "Apply on boot" setting to a 10 second delay just to be sure it's not skipped over while the device is starting many other services in the background. So far, it's worked for me on every reboot!

Also, for things to actually be applied at boot, I found that setting the app you're using to apply settings at boot to "Don't optimize" in the OOS battery settings to really get it to apply at boot.

ALSO... lol, be sure to set whatever SU app ur using for root (more than likely magisk) to "Don't optimize" in OOS settings as well and that will help to make sure your scripts run at boot.

The memory management is AGGRESSIVE on this device and found that doing the above fixes a lot of issues re: scripts and allowing SU that I had early into using the OP6T.
[OnePlus 6T  Guides, News, & Discussion] Incredible_Culp:
Ah, ddint even know ex had that functionality in there -- good find! im glad everything worked for you!

Unfortunately, this 100% fix didnt fix my issue.. A few of my apps still didnt notify me in real time.. This is my first oneplus device and prior to moving to this platform, ive never had an issue.. Last week i decided to move on to AOSP [just for s&g's and testing purposes] and all my problems i had (including the few apps i had trouble with) went away.. I'm back to 100% functionality [same exact set up and everything].

I dont see myself coming back to OOS for quite some time now.. Its an OOS issue and the way it aggressively handles the management turns me off (apparently its a 'thing' with all OP devices).

I came from a long time Nexus user (since Nexus 1) and Pixel, so its nice to be back on AOSP.. Its like a "welcome back home" feel lol .. That coupled with the 6t's performance, im 100% satisfied.

Not to mention that the AOSP rom im using embedded the OP gestures [i was afraid i would lose that functionality] , so im not missing anything from OOS :good:
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
Check the other thread. I've discovered a fix for memory management issues. I had apps being killed really horribly to the point where music would be killed while in use and fitness apps killed while in middle of a workout. And the even missing phone calls because of it.

https://xdaforums.com/oneplus-6t/how-to/background-processes-killing-problematic-t3893961
[OnePlus 6T  Guides, News, & Discussion] LoGaY:
It should set the adb in every phone restarting?

---------- Post added at 10:37 PM ---------- Previous post was at 10:36 PM ----------

It should set the adb in every phone restarting?

Or just for one time
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
There is Tasker profile and Magisk module to execute this on every reboot... you can use either one
[OnePlus 6T  Guides, News, & Discussion] Incredible_Culp:
Like i said, ive moved on to aosp and no longer have any problems..

thanks for sharing that link, im sure other people will find it useful :highfive:
[OnePlus 6T  Guides, News, & Discussion] LoGaY:
Hi, i'm very newbie for using tasker application.

I have already get the XML file for tasker in page.7 for disable doze in every 15sec after reboot.

But i dont know how to put that XML into tasker, any spesific link for the tutorial or any simple tutorial for it?
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
Fine then
[OnePlus 6T  Guides, News, & Discussion] djmarco83:
can it be done without a ROOT?

Wysłane z mojego ONEPLUS A6013 przy użyciu Tapatalka
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
Details can be found in previous page... If you have magisk, I Prefer to use Magisk module..
[OnePlus 6T  Guides, News, & Discussion] twinsen.net:
This is not working in OP5. Regardles of those switches are on or off, my notifications are not coming until I will wake up the device. This is the issue with almost ALL Oneplus. I will create the topic with OP5 too, but just saying this here, to highlight the issue is just in rather in OOS, than in specific Oneplus model.
[OnePlus 6T  Guides, News, & Discussion] Nixer:
Is this integrated with Magisk repo/Magisk module download list? Couldn't find it in there.
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Nah not atm but ill update today maybe
[OnePlus 6T  Guides, News, & Discussion] Spaumi10:
Sorry to ask this but is there a way to verify that the task is running. I did the following:

1. clicked on the 3 dot menu, clicked data and then backup. (I wasn't entirely sure what to do here, so I created the backup. I

then

copied your Tasker file to the Tasker/configs/user/ folder)

2. I then did your second part and clicked on the 3 dot menu, data, restore, user local backup and selected

your

file (the TaskerDisableDoze).

Not sure if that was right or not. But nothing shows up in profiles or tasks. I restarted my phone and didn't see anything happen. Not sure if there is anyway to verify whether this is running.

Thanks for any help.

*I have a OnePlus 6T, running 9.0.12. I bought the Tmobile version and then did the conversion (or whatever it was called) to the international version. I am otherwise completely stock, no root.*
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
You should see the profile created... Try restoring again if you don't see the profile
[OnePlus 6T  Guides, News, & Discussion] Dragbike Racer:
When I select the xml file, it will open up a new tab and show the code, but I cannot find a way to download the xml file. When I press and hold on the xml file, I get options for the link.

Sorry if this is a stupid newb problem.
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
You can then select Download in Chrome
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
Correct, it was there on the OnePlus 3 as well. The solution there was to modify the build.prop file to increase allowed amount of apps to run in the background. That solution still works to this day. Thats why custom roms, don't have the issue, as well as a most custom kernels as they are less aggressive about killing background apps.
[OnePlus 6T  Guides, News, & Discussion] _Masked_:
There's another way to do this, this is only for rooted devices (this does not use a pc).

Download and Install Terminal Emulator on the Google Play Store.

Open the app

Type the command

su

and give it SuperUser permissions.

Type the command

dumpsys deviceidle disable

Close the session/app
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
You have to do this after every restart... I would suggest to use the Magisk module
[OnePlus 6T  Guides, News, & Discussion] twinsen.net:
I cannot change anything in build.prop, as I don't use root. I do use Google Pay extensively, so I don't to play games like having root+ Magisk and cheating. But having 8GB of RAM like in my case should be enough to run all apps in background. I don't get OOS devs point. In my phone, even the Lux Brightness app doesn't survive more than half a day. But, maybe I can somehow change that parameters in the file, then unroot?
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
You don't need root to adjust the build.prop. Just custom recovery. I don't root my phone at all anymore either but I adjust the build.prop
[OnePlus 6T  Guides, News, & Discussion] RicardoDimm:
Can someone please explain in easy language step by step how to let this script start at boot? And do i need to be rooted?

---------- Post added at 04:01 PM ---------- Previous post was at 03:06 PM ----------

Can you please explain step by step hoe non rooter users can get your script to start at boot?
[OnePlus 6T  Guides, News, & Discussion] eslonim:
6T 9.012, no root

When I run the task in tasker, it shows: E shell: no root

E result: stop task (error)

so the task aborts

Does this function require root, or am I missing something? (Permissions for tasker perhaps - I gave it modify system settings and storage)?

After I turn off the "use root" option in the action, it fails with "Permission Denial: can't dump DeviceIdleController pid=xxx, uid=yyy due to missing android.permission.DUMP permission"
[OnePlus 6T  Guides, News, & Discussion] eslonim:
So I gave net.dinglisch.android.taskerm Dump permission, and then it fails with DEVICE_POWER permission which I can't grant through ADB.

So is there a way without root?
[OnePlus 6T  Guides, News, & Discussion] twinsen.net:
To have custom recovery, should I unlock bootloader? Then, if I would, the Google Pay will work, as well as automatic updates?
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
You must unlock bootloader yes.

So what you are describing is my exact situation. I need perfect reliability and perfect functionality. Including google pay and several apps that check safety net.

Installing any custom kernel, fixes and covers up unlocked bootloader and seems to be reliable always. I don't root or anything. I simply run unlocked bootloader, custom kernel, and tweak the build.prop file. Everything works perfectly and reliably. I feel this might be the best way to run Android these days and you don't have to worry about root stuff.
[OnePlus 6T  Guides, News, & Discussion] luxandroid:
What's the name of magisk module , can't find it
[OnePlus 6T  Guides, News, & Discussion] ram4ufriends:
https://xdaforums.com/oneplus-6t/how-to/guide-notification-fix-100-t3865551/page7
[OnePlus 6T  Guides, News, & Discussion] Royal King:
I've noticed that after applying the fix, my notifications work flawlessly. Although, after this fix, my Google Play Services loses it's mind. Battery stats shows usage above 40-50%. I know there might be apps that are pushing some stuff via GPS, but is there any conclusive way to find out which app is causing my troubles?
[OnePlus 6T  Guides, News, & Discussion] eslonim:
Is it just me? After the 9.0.13 update, Whatsapp and other notifications appear to work fine, even though I stopped setting dumpsys deviceidle disable a few days ago

(I do have Adaptive battery off and battery optimization off for whatsapp)
[OnePlus 6T  Guides, News, & Discussion] elanandkumar:
i won't suggest to do this because it will impact the battery life. Though, oxygen os has an option to disable Deep optimisation. Try that if it helps. I did not try because I am fine with the way it gets delivered. Less disturbance.

To disable, Deep optimisation, go to Settings->Battery->Battery optimisation->3 dots menu -> advanced optimisation -> disable Deep optimisation.

Hope this helps.
[OnePlus 6T  Guides, News, & Discussion] eslonim:
I spoke too soon - going back to deviceidle disable.

This is really the only real fault that I have with my 6T
[OnePlus 6T  Guides, News, & Discussion] M3drvr:
Thanks for reading the thread. Not! :laugh::laugh::laugh:
[OnePlus 6T  Guides, News, & Discussion] xplozia:
Not working for me. PixelExperience version 20181207.

"C:\Users\Cristian>cd /adb

C:\adb>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

xxxxxxxx device

C:\adb>adb devices

List of devices attached

xxxxxxxx device

C:\adb>adb shell dumpsys deviceidle disable

Deep idle mode disabled

Light idle mode disabled

C:\adb>

"
[OnePlus 6T  Guides, News, & Discussion] eslonim:
Very helpful thread, thanks.

1) Can this be done using the settings database editor by 4A, directly on your phone (if it is given WRITE_SECURE_SETTINGS permission by adb)? I can't find a matching setting name.

2) Is there a way to disable only deep idle, and see if that does the trick? (to extend battery)

thanks
[OnePlus 6T  Guides, News, & Discussion] BigLisy:
If what you're experiencing is some apps (namely system apps as they are omitted from the battery optimization apps list) having delayed notifications / notifications arrive when you unlock the phone, then there's a very simple fix, and it's just forcing said system apps (gmail, YouTube, etc) to not be optimized, via mail module OnePlusGmailBatteryFix, which will do just that, override the optimize option that you couldn't normally touch. It works for Gmail as default, but you can edit the zip to adapt it to any system app you like, I did it for YouTube and now my notifications arrive without a delay.
[OnePlus 6T  Guides, News, & Discussion] techlogik:
Does this work on 9.0.13?

When I run the script on Beta 8/9 no problem, it runs and says it disabled it.

Run this same command on 9.0.13...nothing.

Deep idle mode disabled

Light idle mode disabled

Says: "deep not available" and "light not available" like it can't figure out how to run on a rooted Magisk phone with Elemental X kernel. As I said, same setup on Beta works fine.

EDIT: The shell/batch file should be:

#!/system/bin/sh

dumpsys deviceidle disable

Save that as a file with smanager, set to Boot/SU on run, execute to see it work normally...then good to go.
[OnePlus 6T  Guides, News, & Discussion] RicardoDimm:
Is this problem solved with the One Plus 7 Pro?
[OnePlus 6T  Guides, News, & Discussion] vuckovic_stefan:
Hi, thanks for this module. I'm using it on some other device, on Pie ROM, I guess it's universal?

It just applied that ADB command?

Thanks for answer in advance
[OnePlus 6T  Guides, News, & Discussion] Gungrave223:
Works fine on Tmobile version....not so much for global.
[OnePlus 6T  Guides, News, & Discussion] DaOldMan:
Doesn't work with latest 9.0.14 6T rom . Causes the device to restart to recovery immediately after boot. Weird. I hope this can be fixed... or I will use a batch file :).
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Try this one just got it update to lasted magisk 19 template and i try on my 6t 9.0.14 it working well tryna install busybox if it didn't work for you!
[OnePlus 6T  Guides, News, & Discussion] DaOldMan:
Module is fine now. Thanks a lot.
[OnePlus 6T  Guides, News, & Discussion] mrmhyde:
I have tried so many things to have a functional phone, I followed this guide and many others still I do not get notifications on this piece of crap, so before I try the hammer method, I would like to know if there is a rom or kernel that makes the 6t a phone.
[OnePlus 6T  Guides, News, & Discussion] gettingx:
My solution For Oxygen 9.0.11

*I have no three dots in the battery optimization

1) "don't optimize" apps that you need notifications

2) "use adaptive battery" stays at enable (default)

3) drag up the apps panel from the bottom of the screen(consists of all apps in alphabetical order) and select the app then hold your finger down for 2 second then drag it to the home screen.

4) now try sending yourself an email, I'm testing all this using Outlook app on 4G, and it works great, my phone is not rooted got it for $400 off eBay.

***I believe all the apps in the apps panel that sort in alphabetical order is the culprit, by way of them apps putting into deep sleep mode automatically. So if you use any apps often drag them out of the apps panel and put it on 1st , 2nd or 3rd home screen. :fingers-crossed:

---------- Post added at 03:46 AM ---------- Previous post was at 03:31 AM ----------

https://xdaforums.com/showpost.php?p=79790489&postcount=132
[OnePlus 6T  Guides, News, & Discussion] Glaux:
Does this disable doze system-wide?
[OnePlus 6T  Guides, News, & Discussion] DaOldMan:
Looks like the "device is restarting" bug is back in the new 9.0.15 OOS. Had to disable 2.0 :( module. Any updates ?
[OnePlus 6T  Guides, News, & Discussion] Ellipsis_:
I've no idea why but my OnePlus 6T gets instant notifications across any app I need simply by disabling Battery Optimisation for that app and locking the app in the task switcher. My wife's OnePlus 6T however hardly gets any notifications through, using the same procedure as on my phone. I recently did a complete wipe and reinstall of the stock firmware but it didn't fix the problem.

I've installed the Magisk module linked here and it seems, after only half a day's testing, to have solved the problem, fingers crossed it remains that way.

My wife's phone did the same thing (although the wording is actually "Phone is starting"). I left it for a while and it eventually booted however it flashed up very quickly with what looked like the task switcher and something else that was too quick to spot. I rebooted it again and it was fine, subsequent reboots seem fine too. Did you try just waiting?
[OnePlus 6T  Guides, News, & Discussion] DaOldMan:
Your wife's phone DOESN'T do the SAME thing. I wrote explicitly that my phone writes "device is

RESTARTING

". The "phone is

starting

" is something completely different (usually a corrupt app with problems in dalvik-cache). My phone boots and RESTARTS at once showing that dialog. So what do I need to wait for :D ?

Does she use the latest 9.0.15 firmware ?
[OnePlus 6T  Guides, News, & Discussion] Ellipsis_:
Ah OK, sorry, the wording was so similar and with us all doing the same thing on the same device I thought it was just a typo.

Yes, both mine and my wife's 6Ts are on 9.0.15. Only hers has the Magisk module posted here though as mine works fine without any of the fixes mentioned here. As I say, it acted weird on the first reboot but has been fine since.
[OnePlus 6T  Guides, News, & Discussion] DaOldMan:
Ok I reinstalled the module... and for some reason now it works. Fata morgana, hocus pocus no idea :D
[OnePlus 6T  Guides, News, & Discussion] axelryder:
Thanks a lot for the module BГ@ckθut, I had the same problem with my OP7 Pro and since I installed it, the google assistant reminders look like the've been on time for a week now; I'll keep an eye out for another week and make sure to verify if there is a delay in the reception but so far so good!
[OnePlus 6T  Guides, News, & Discussion] ACB369:
Sorry for the Noob question. Can I use this module with xXx_No Limit? With 9.0.16, and smurf kernel
[OnePlus 6T  Guides, News, & Discussion] _BГ@ckθut:
Absolutely I don't see the reason why not...give it a try and see how it work for ya

---------- Post added at 07:34 PM ---------- Previous post was at 07:33 PM ----------

Yep glad that it work for you!
[OnePlus 6T  Guides, News, & Discussion] Mervingio:
anyone is using this on OB17?
[OnePlus 6T  Guides, News, & Discussion] lyall29:
I'm going to try this on my OnePlus 7t and see if it helps. Fingers crossed. I'll post back in a day or 2.