How to add whatsapp whitelist doze android pie ? - Android Q&A, Help & Troubleshooting

i have xiaomi mi9t android pie. When phone going to deep sleep on lock screen doze i cant get notification . i tired everything on phone but its not work .
i want to whitelist whatsapp in doze.
i tried this commands on adb server
dumpsys deviceidle enable light
dumpsys deviceidle enable deep
dumpsys deviceidle whitelist +com.whatsapp +com.google.android.gms
Click to expand...
Click to collapse
but this command not work on pie. this commanda work on andorid 7. anyone can help me how to do this ?
i want whatsapp always work background
i dont want close all doze. i only want whatsapp whitelist

when i do this command adb server its working fine . but this is closing all doze for phone. i need only close for whatsapp
adb shell dumpsys deviceidle disabled all
Click to expand...
Click to collapse

hulyahulya said:
i want whatsapp always work background
Click to expand...
Click to collapse
Hi, did you find a solution for this issue? Would be great if you could share your experience.
I have almost same problem: I cannot get any notifications from telegram application, whereas whatsapp works fine.
When I ran special seach utility which is capable of searching certain string in files' contents, I found that 'com.whatsapp' can be seen in some xml-files which are inside of power management application of my phone. I tried to edit such apk in order to add 'org.telegram.messenger' but I failed. So, I could not get telegram working as correctly as whatsapp works.
I'm not sharing the name of apk I tried to edit as it seems a propriatory apk of nasty QIKU vendor so it is highly unlickly anybody has same apk on his phone.

Related

[Q]Stop Greenify when Wifi is on

Hello.First of all,I am sorry if this question has been asked before,but I was not able to find it.
Is there any way turn Greenify on only when Wifi is turned off,and then if I turn Wifi on,Greenify to stop?
Thank you very much!
chris_b0ss said:
Hello.First of all,I am sorry if this question has been asked before,but I was not able to find it.
Is there any way turn Greenify on only when Wifi is turned off,and then if I turn Wifi on,Greenify to stop?
Thank you very much!
Click to expand...
Click to collapse
Use Tasker or similar app.
Thank you for answering !
is Tasker compatible with Greenify ? I ask,because I've never used Tasked,and I don't know a lot about it
chris_b0ss said:
Thank you for answering !
is Tasker compatible with Greenify ? I ask,because I've never used Tasked,and I don't know a lot about it
Click to expand...
Click to collapse
Yes, Greenify has a plugin for Tasker.
This is misleading wrong information.
The plugin for tasker only lets you wake up an app or hibernate one app or all greenified apps. It does not let you 'pause', 'stop', 'resume' or 'start' greenify.
Edit:
Tasker could be used to kill it and restart it later, but in my quick testing it looks like greenify doesn't like being killed.
Tasker *could* be used alongside Secure Settings (yet another app) or using command line code to disable greenify's package (the whole app will disappear) when Wi-Fi is connected, and then re-enable it when Wi-Fi is disconnected. This would need you to have a rooted device. This method would be quite complicated, but do-able. It works in my quick testing, but explaining how to achieve it would need a full tutorial. It would remove your home screen shortcuts whenever the app is disabled. Disabling is easy. Enabling is complicated. You'd have to set tasker to unlock your screen using whichever lock screen method you have, and then open greenify, click on the message at the bottom that says the service is not running, then close greenify and lock your screen again. There could be unexpected side-effects of doing this. I cannot get into a deeper explanation than this because it would be a time sink.
Sukarn said:
This is misleading information........
Click to expand...
Click to collapse
The proper word would have been "wrong" not "misleading".
" Misleading" has a bad connotation implying that the info was supplied with the knowledge that it was not true. The fact is that I don't use Tasker and presumed (may be wrongly) that since Greenify has a plugin, it should be possible to hibernate and unhibernate apps enmasse.
Please be careful in usage in future.
The correct way to disable auto-hibernation is to disable the "CleanerService" of Greenify.
As shell command (requires root):
Code:
su -c pm disable com.oasisfeng.greenify/.CleanerService
To restore:
Code:
su -c pm enable com.oasisfeng.greenify/.CleanerService
su -c am broadcast -a android.intent.action.BOOT_COMPLETED com.oasisfeng.greenify
oasisfeng said:
The correct way to disable auto-hibernation is to disable the "CleanerService" of Greenify.
As shell command (requires root):
Code:
su -c pm disable com.oasisfeng.greenify/.CleanerService
To restore:
Code:
su -c pm enable com.oasisfeng.greenify/.CleanerService
su -c am broadcast -a android.intent.action.BOOT_COMPLETED com.oasisfeng.greenify
Click to expand...
Click to collapse
Thank you. I couldn't find an obvious way to disable a service without disabling the whole package. I knew how to disable a package using command line but not a service.

[GUIDE] Getting notifications back after GMS install hack on Huawei phone

[GUIDE] Getting notifications back after GMS install hack on Huawei phone
This is the method that I used to get notifications back on my P40Pro+ after a GMS hack install. I am not saying it will work for everyone and indeed if you need Google location tools on all the time, dont follow this but if your not too worried, then have a read. It has been taken from other guides out there and a little bit of my own for testing. It can be reversed and backed out of it you dont like it but as I keep getting questions on Facebook about how I done it, I thought I would share it with you too.
In this method you will need :
Huawei multitool V8 from here
Push Notification Tester from Playstore here or wherever you get your apps from
Disabling GSF
Disable Google Services Framework (GSF) using Huawei Multitool v8.
Using this tool on a Windows PC, you will find a section in the Modifications section for disabling apps on a adb connected phone to the app. Connect your phone and select show system apps and look for 'com.google.android.gsf' and select 'disable'.
See image below attached 'Multitool V8 Disabled app'
I disable (GSF) using this as it is easier for me than to use icebox or other freezer apps.
To test notifications are now working
Once disabled check that you can now receive notifications by opening Push Notification Tester installed from Playstore before starting this, will allow you to test notifications. With GSF disabled, they should now work as they should. See attached screen shots below 1-4.
Another way to test them is to just send your self an email. Just make sure you have notifications set in the setting menu first. You can try the notification tester in Outlook but does time out a lot but perseverance can prove it works but an email to your self is just as good. See screen shots 6 and 7 for where this is in the outlook help pages. Screenshot 8 shows Outlook notifications working.
The reason this works I believe is that most apps relying on GMS, their notifications work through GSF and with the GMS hack, they can't, so by disabling GSF, they can use their own default route again, through themselves.
The downside is that with GSF disabled, Google Playstore no longer works and also Google location history, there may be more but it has no real affect unless you rely on them (I dont). Maps still work with directions, Waze too but not your history or phone location via Google. Find you phone via Huawei still works obviously, so you still have other options. Of course, you can use Aurora Playstore instead or any other playstore option and if you have paid apps through Googles Playstore, then you can go to GSF in settings/apps on your phone and enable GSF (see screen shot 5 below) or via the Multi tool V8 again, download your paid app update etc and then disable it via multitool v8 after to get notifications back.
Thanks for the guide, wierd issue for me. Once my phone is conencted, and i disable the service via the Multi Tool, i still have access to the Playstore.
Going to apps -> system prcoesses, it doesnt have the disabled text next to the process. if i click on it, it says "Enable" and "Force Stop". Which initially leads me to think this has been disabled. Then once i go to Push Notification Tester, it fails on step 3 - Register for Push Notifications.
You should not have Playstore access. You dont have any work accounts installed? They have 2 gsf's etc. I would use the muti tool to check for disabled apps. It should show gsf.
May be re do?
I am able to enable and use Playstore, then disable it again to get notifications back at will, so you should too.
Sathelp said:
You should not have Playstore access. You dont have any work accounts installed? They have 2 gsf's etc. I would use the muti tool to check for disabled apps. It should show gsf.
May be re do?
I am able to enable and use Playstore, then disable it again to get notifications back at will, so you should too.
Click to expand...
Click to collapse
I think I know the issue. I have installed GSM the old way (which used to work). If you look at the start of this video he shows two devices ( both with GSM) one which fails the notification tester app, and one which passes. He then uses the icebox method to grt notifications on the phone which passes the tests
https://youtu.be/A4889MUA9EQ
I think I may have to factory reset and use this new method ??
Good luck and if you do, please let us know what method is currently working.
Can you please check for me, if it's possible to install the game jw alive with this method? Offer 5€ via Paypal for this. Just write your Email via PM
Sathelp said:
[GUIDE] Getting notifications back after GMS install hack on Huawei phone
This is the method that I used to get notifications back on my P40Pro+ after a GMS hack install. I am not saying it will work for everyone and indeed if you need Google location tools on all the time, dont follow this but if your not too worried, then have a read. It has been taken from other guides out there and a little bit of my own for testing. It can be reversed and backed out of it you dont like it but as I keep getting questions on Facebook about how I done it, I thought I would share it with you too.
In this method you will need :
Huawei multitool V8 from here
Push Notification Tester from Playstore here or wherever you get your apps from
Disabling GSF
Disable Google Services Framework (GSF) using Huawei Multitool v8.
Using this tool on a Windows PC, you will find a section in the Modifications section for disabling apps on a adb connected phone to the app. Connect your phone and select show system apps and look for 'com.google.android.gsf' and select 'disable'.
See image below attached 'Multitool V8 Disabled app'
I disable (GSF) using this as it is easier for me than to use icebox or other freezer apps.
To test notifications are now working
Once disabled check that you can now receive notifications by opening Push Notification Tester installed from Playstore before starting this, will allow you to test notifications. With GSF disabled, they should now work as they should. See attached screen shots below 1-4.
Another way to test them is to just send your self an email. Just make sure you have notifications set in the setting menu first. You can try the notification tester in Outlook but does time out a lot but perseverance can prove it works but an email to your self is just as good. See screen shots 6 and 7 for where this is in the outlook help pages. Screenshot 8 shows Outlook notifications working.
The reason this works I believe is that most apps relying on GMS, their notifications work through GSF and with the GMS hack, they can't, so by disabling GSF, they can use their own default route again, through themselves.
The downside is that with GSF disabled, Google Playstore no longer works and also Google location history, there may be more but it has no real affect unless you rely on them (I dont). Maps still work with directions, Waze too but not your history or phone location via Google. Find you phone via Huawei still works obviously, so you still have other options. Of course, you can use Aurora Playstore instead or any other playstore option and if you have paid apps through Googles Playstore, then you can go to GSF in settings/apps on your phone and enable GSF (see screen shot 5 below) or via the Multi tool V8 again, download your paid app update etc and then disable it via multitool v8 after to get notifications back.
Click to expand...
Click to collapse
As of today, i can confirm that this method works for notifications, just make sure to restart your device after disabling / enabling.
As for the push notifications, gmail not working for me, outlook works. other apps works too, but from time to time it doesnt push properly, maybe battery optimisation or something i dont know. any idea for this issue?
anyone have any updates on this? I too have the problem - random notifications come in (usually a bunch coupled together)....Trying to figure out a real solution. Any one have any luck?
Sathelp said:
[GUIDE] Getting notifications back after GMS install hack on Huawei phone
[ ... ] Of course, you can use Aurora Playstore instead or any other playstore option and if you have paid apps through Googles Playstore, then you can go to GSF in settings/apps on your phone and enable GSF (see screen shot 5 below) or via the Multi tool V8 again, download your paid app update etc and then disable it via multitool v8 after to get notifications back.
Click to expand...
Click to collapse
@Sathelp -> When you say this at the previous quote message, you really can tell that I can disabled and then enable GSF to receive notifications and then use Play Store ?? Right ??
Will have message issues that "Google requires an action ... etc" and I must reinstall all GMS if I enable GSF again ??
My guide was based on A10 at launch. I used the G app with a back date to get my GMS before it was blocked. Using that at the time worked fine. Disable GMS using adb command enabled notifications as they worked through HMS. I just enabled GMS to run playstore, get and update apps and then disable it for normal use.
As I have not downgraded or used googlefyer etc, I can't say how it will work with these newer methods.
The idea of the workaround to deactivate GSF for receiving push notifications emerged in April or Mai 2020. Over half a year has passed now... Maybe there is a better solution now to have GSF activated and get all push notifications? It would still be great to have a working play store and the notifications!
Any progress in that matter? Any new ideas?
jediknight23 said:
The idea of the workaround to deactivate GSF for receiving push notifications emerged in April or Mai 2020. Over half a year has passed now... Maybe there is a better solution now to have GSF activated and get all push notifications? It would still be great to have a working play store and the notifications!
Any progress in that matter? Any new ideas?
Click to expand...
Click to collapse
We're looking for something at this thread, we can keep GSF unfrozen and get push notificacions ... but after 12 hours Play Protect errors started to appear.
There are at least two users that they haven't this issue and all it works fine ...
How to get notification without freezing GSF
Below is a third version of the guide (ok, it's 3.5). As of January, 15th I've added great finding by @Seresseran1. Thanks man! The below guide will provide you with fully working Google services, play store will work, push notifications will...
forum.xda-developers.com
This sounds great, thx
And because this doesn't work on all devices yet:
Maybe another possible solution could be to let the desired apps only *think* that GSF is not available. So that they try using their own default route again...
But hot could that be accomplished. Maybe via App Cloner?
[QUOTE = "jediknight23, publicación: 84352697, miembro: 5844526"]
[/CITAR]
Maybe ... You can add this reply there ... Any suggestions are welcome !!!
the notification tester failed by register for push notifications and Connection to server.
whats my problem?
chrishess said:
the notification tester failed by register for push notifications and Connection to server.
whats my problem?
Click to expand...
Click to collapse
same here !

I found another way to boost TicWatch performance (this time around 2.5 times)

Do not worry, this is not the old TicSystem trick - this is better
/!\ Only for TicWatch Users /!\
Hello,
While attempting to change my Wear OS accent color via ADB, I discovered a way to speed up the watch around 2.5 times (measurements done lazily, could be wrong. Still makes it faster, though.) - It does not cripple the watch at all (I have not tested battery life)
While everyone knows the one with disabling TicSystem (for you curious souls, it does not cripple the watch at all), I believe I may be the first one to do this. It revolves around Mobvoi's Wear OS overlay. Doing this trick made my watch really fast. The watch is around 2.5 times more responsive now and no matter what I do, I can not get the watch performance to slow, as it normally would.
It runs even better if you disable TicSystem too (Bottom power menu - you can literally use the top power menu instead, if you remove TicSystem)
Here is a step by step instructional tutorial:
1.) Enable Developer Options
---
2.) Disable All Animations (you can enable those again later)
---
3.) Enable ADB Debugging
---
4.) Hook your Watch up to your computer with ADB and all that stuff (I really do not want to go in depth on how to hook up your watch to your PC, You can google that)
---
5.) Type "adb devices" to connect your watch and start daemon
---
6.) Type "adb shell cmd overlay list"
---
7.) If there is a com.mobvoi.ticwatch.jupiter.home (or something containing the same words in a different order) continue with this guide. If there is not, leave this guide
---
8.) Type "adb shell cmd overlay disable com.mobvoi.ticwatch.jupiter.home"
(or however else your overlay is called)
---
9.) Type "adb reboot"
to reboot the watch
---
OPTIONAL 10. Enable animations again)
---
That is it, the watch now runs very much faster without any usability difference. To be honest, I am still not exactly sure why it works, but it works.
I have been doing a lot of testing and I just can not find anything that went wrong when I disabled it. There simply seems to be nothing. Everything works.
If some issue does come up, please let me know. Also, if there is an issue, you can just reproduce all the steps here, but replace the command in step #8 with "adb shell cmd overlay enable com.mobvoi.ticwatch.jupiter.home"
(Also, if any other fellow android developers are reading this, please help me understand why in the world uninstalling the package itself slows the watch down again. I have been scratching my head at this for a while now. Maybe it is placebo?)
(Disclaimer: I am not responsible for any damage to your watch. Even if this is unlikely to cause any damage, you are responsible for anything that might happen)
I don't have those mobvoi overlay, only google's
Code:
com.google.android.gms
[x] com.google.android.wearable.overlay.gms
com.google.android.wearable.app
[x] com.google.android.wearable.overlay.home
I don't feel lag actually since the first I use ticwatch E, of course after disable most system app. The latest change only to disable ticsystem which render the battery life longer, approx 20%.
You most likely just disabled the Jupiter home app. This guide is directed at people, who do not want to get rid of the whole Mobvoi experience, but still want a faster watch
I only disabled these
com.mobvoi.companion.aw
com.mobvoi.wear.account.aw
com.mobvoi.wear.fitness.aw
com.mobvoi.wear.health.aw
com.mobvoi.wear.heartrate.aw
com.mobvoi.wear.social.aw
com.mobvoi.wear.system.aw
It seems the jupiter home app only available in ticwatch pro, not in my ticwatch e.
Thanks for the sharing.
with your method. i lost esential mode
Clarification
I am just adding an update here.
There is no correlation between essential mode and the Jupiter app. The person who said this was simply making it up.
Thank you.
Honza368 said:
I am just adding an update here.
There is no correlation between essential mode and the Jupiter app. The person who said this was simply making it up.
Thank you.
Click to expand...
Click to collapse
Confirmed.
I can't seem to find mobvoi overlay on my ticwatch S
In something unrelated, I wanted to ask if anyone could share the latest ticpulse apk, as my one doesn't update through the play store anymore
I've deleted all from com.mobvoi packages, and lost essential mode/second screen with always on display on TicWatch PRO3. Anyone konw how's called a packgage which controls essential/second screen.
Thanks
Tried on Ticwatch pro 3 GPS - significant change in responsiveness! Thank you
On my Ticwatch Pro 3 GPS there is no option to switch on ADB over WiFi.....only via Bluetooth.
Where did you find it?
bikerhammer said:
On my Ticwatch Pro 3 GPS there is no option to switch on ADB over WiFi.....only via Bluetooth.
Where did you find it?
Click to expand...
Click to collapse
First enable developer options. Then you should see.
Developer options are enabled in settings/system/information/build version. You have to tap on build version 5 times or more.
I know and I did it. But there is no option for this.....
There only is a switch for ADB-Debugging and another for Debugging over bluetooth.
Thats weird. Never the less, why don't you try to do it via bluetooth?
How to do this?
Luciano_Hradsky said:
Tried on Ticwatch pro 3 GPS - significant change in responsiveness! Thank you
Click to expand...
Click to collapse
did you use the charger cable to run the commands via pc or over wifi? because when i do that my pc only charges the watch , i can't see it under adb devices. thanks.
Thanks man, definitely faster now
Good find, but this doesnt need dev options nor ADB. Goto Settings > Apps and Notifications > App Info > System Apps; find com.mobvoi.ticwatch.jupiter.home and disable it there.
Bazzeil said:
Good find, but this doesnt need dev options nor ADB. Goto Settings > Apps and Notifications > App Info > System Apps; find com.mobvoi.ticwatch.jupiter.home and disable it there.
Click to expand...
Click to collapse
After disabling com.mobvoi.ticwatch.jupiter.home via adb, a restart resulted in it enabled again. Maybe i did something wrong this way?
Following quoted method was permanent after restart.

Galaxy Tab S7 randomly takes pictures

My Tab 7 will randomly take multiple pictures without any input from me - I have deleted as many as 900 pictures of the inside of the case and been woken at night by the shutter sound going off continuously.
I have tried removing permissions for Camera to disable it but now get multiple notifications that I need to allow permissions in order for Camera to take pictures (46 notifications when I opened the tablet just now).
Can anyone tell me how to prevent either of these behaviours?
I am seriously considering switching to an iPad.
fircroftstar said:
My Tab 7 will randomly take multiple pictures without any input from me - I have deleted as many as 900 pictures of the inside of the case and been woken at night by the shutter sound going off continuously.
I have tried removing permissions for Camera to disable it but now get multiple notifications that I need to allow permissions in order for Camera to take pictures (46 notifications when I opened the tablet just now).
Can anyone tell me how to prevent either of these behaviours?
I am seriously considering switching to an iPad.
Click to expand...
Click to collapse
Remove the case. See if the behavior continues.
Arealhooman said:
Remove the case. See if the behavior continues.
Click to expand...
Click to collapse
No effect - and I still get multiple notifications from Camera about re-instating permissions.
Maybe uninstall and reinstall with ADB?
Pardon my ignorance - ADB?
Android Debug Bridge. Download platform tools. Enable dev options (Google how to). Enable ADB debugging. Connect to PC. Run platform tools in power shel. Do ” adb devices “ to verify your device is connected. Then do “ pm uninstall -k --user 0 package name” replace package name with that apps package name, which you can find using the package name viewer app. Then reinstall with “ pm install-existing package-name “. If you did not get how to start ADB you can Google a better guide, but those commands are how to uninstall and reinstall.

General [WORKAROUND] Delayed/missing notifications on some GSI images

Hey everyone, today i want to share a not so pretty but working workaround about an issue that seems to be happening on some GSI images on this device (and its predecessor as well, the Note 10S which i used to own!), and i also want to collect some data from some more knowledgeable people about this so we could get a proper solution.
The issue is that when the device is left locked and idle for around 5 minutes, apps lose network connectivity so not only you get issues like Spotify not playing anything anymore after the last played song before the phone lost connectivity, but most importantly app notifications can be delayed by a few minutes, sometimes even an hour or more, or just never get to you until you unlock the phone and either wait a bit or open that app yourself. After the device enters Doze, and after it is unlocked to exit it, it takes a bit but not too long before your notifications all come in again. This does NOT happen when the device is connected to a power source.
If you have this issue, a not-so-pretty solution i found at least for now is running the following ADB command from a computer:
adb shell dumpsys deviceidle disable
Click to expand...
Click to collapse
This disables Doze entirely until the next reboot (after every reboot you need to run this again or Doze will kick back in).
Now your device will never enter Doze for your current Android session, battery life doesn't seem to be impacted much if at all, but it's better to have less battery life than not getting important messages.
EDIT: At first i was blaming Doze being broken directly, but this seems to be related to a BPF bug in the MediaTek kernel, and it depends on the device manufacturer if they have merged the fix or not. I tested the same GSI on A12 MIUI, and it still has the bug (along with many other bugs which is why everyone tells you to flash A11 before you flash any GSI), so Xiaomi did not fix it yet.
This bug causes mostly networking issues, some ROMs like LineageOS 20 not having network due to Restricted Network Mode causing no network like that post says (workaround for that too there), Battery Saver completely killing the network and probably this issue. After some thinking, Doze actually is working fine (Spotify only stops playing when it tries to get a new song from the network, the song it already got keeps playing even on Doze), it's just the network in apps while on Doze that dies. I tried the same exact GSI on a SD device, and there are zero issues there. There also were no issues on A11 and A12 GSIs on my old Redmi Note 10s, which is also affected by the same sleep bug on A13!
For this particular issue, you can use that adb command, but be aware that other networking issues like the above might exist.
There are some other workarounds like unlocking the phone ever so often before it exceeds 5 minutes staying locked, which is just painful, or leaving it always connected to a power source which isn't always viable, so those are out of the question.
If anyone with more knowledge knows the cause of this and/or a less "bandaid" fix, feel free to reply here, it would be much appreciated both for me and other users with the same issue!
U are my man. i thought its a problem like that, but i dont figured out how to prevent.
i will test this and report if its working.
isnt it possible to run it as bootscript?
lurchiii said:
U are my man. i thought its a problem like that, but i dont figured out how to prevent.
i will test this and report if its working.
isnt it possible to run it as bootscript?
Click to expand...
Click to collapse
I think it's possible to run it as bootscript but i think it requires root and i don't know how to do either of these yet, sorry. Hopefully someone more experienced can help us
I tried this using termux(with su) and It works for now, I'll write in a few days if it still works
i tried to make a magisk-bootscript and it will be executed (according on magisk log) but when i checked with "adb shell dumpsys deviceidle enabled" it shows "1" but when i executed it manually with termux it shows "0". Idk why it dont worked on boot.
lurchiii said:
i tried to make a magisk-bootscript and it will be executed (according on magisk log) but when i checked with "adb shell dumpsys deviceidle enabled" it shows "1" but when i executed it manually with termux it shows "0". Idk why it dont worked on boot.
Click to expand...
Click to collapse
Hm that is weird, i have no idea. I never tried running the command from the phone itself, i usually just used adb on a computer. The output i got from the command was something along the lines of
"Light idle mode disabled
Deep idle mode disabled"
(may not be exact message but you get the point)
Try running the command from a computer and see if it works, should work fine there.
from pc or from termux its np but from a bootscript it wont work. i think dumsys command can only be executed after boot or something?
it seems im not alone on the whole wide world:
Execute a script at boot
Hello, I'd like to execute a easy script at every boot of the phone so basically I've placed the script in the folder /sbin/.magisk/img/.core/service.d/doze.disable.sh I've tried also putting it in...
forum.xda-developers.com
but i found these interesting commands + module:
Universal GMS Doze - Magisk
Systemlessly prevent unnecessary GMS running in the background, optimized and adjusted with additional modified services.
themagisk.com
lurchiii said:
it seems im not alone on the whole wide world:
Execute a script at boot
Hello, I'd like to execute a easy script at every boot of the phone so basically I've placed the script in the folder /sbin/.magisk/img/.core/service.d/doze.disable.sh I've tried also putting it in...
forum.xda-developers.com
but i found these interesting commands + module:
Universal GMS Doze - Magisk
Systemlessly prevent unnecessary GMS running in the background, optimized and adjusted with additional modified services.
themagisk.com
Click to expand...
Click to collapse
Hm, that module actually looks like it limits some apps in the background, which is what exactly triggers this issue. Basically whenever the OS tries to limit network for some apps, it's bugged due to the kernel and instead of limiting it only for some apps it limits it on all apps and it happens on Doze, battery saver and restrictive network mode. About trying to run it as boot script, i haven't tried, but yeah it probably needs to be ran once the OS is fully booted.
SuperLolMine said:
Hm, that module actually looks like it limits some apps in the background, which is what exactly triggers this issue. Basically whenever the OS tries to limit network for some apps, it's bugged due to the kernel and instead of limiting it only for some apps it limits it on all apps and it happens on Doze, battery saver and restrictive network mode. About trying to run it as boot script, i haven't tried, but yeah it probably needs to be ran once the OS is fully booted.
Click to expand...
Click to collapse
i mean that command under "Troubleshooting"
lurchiii said:
i mean that command under "Troubleshooting"
Click to expand...
Click to collapse
Oh yeah, that still controls doze, but basically the issue with BPF bug is that the OS can't restrict network for only some apps because then all apps lose network connectivity. I'm not sure if adding an app to the Doze whitelist may work, and even if it did you'd have to do it for every app you want notifications for. At least adding to the whitelist is permanent instead of the disable command which is temporary, but i'm not sure it will work, i think the best thing for now is trying to find a way to run the command at boot or at least from the phone itself without needing a computer.
Thanks for the idea though, sadly i can't test the whitelist right now as i'm back on MIUI (probably going back to PE soon)
SuperLolMine said:
Oh yeah, that still controls doze, but basically the issue with BPF bug is that the OS can't restrict network for only some apps because then all apps lose network connectivity. I'm not sure if adding an app to the Doze whitelist may work, and even if it did you'd have to do it for every app you want notifications for. At least adding to the whitelist is permanent instead of the disable command which is temporary, but i'm not sure it will work, i think the best thing for now is trying to find a way to run the command at boot or at least from the phone itself without needing a computer.
Thanks for the idea though, sadly i can't test the whitelist right now as i'm back on MIUI (probably going back to PE soon)
Click to expand...
Click to collapse
to run the command without PC and without repeatedly typing it, i use Script Manager:
Script Manager | F-Droid - Free and Open Source Android App Repository
An application to manage shell scripts!
f-droid.org
Add a new Script and type:
#!/system/bin/sh
dumpsys deviceidle disable
Hit save and apply.. done
lurchiii said:
to run the command without PC and without repeatedly typing it, i use Script Manager:
Script Manager | F-Droid - Free and Open Source Android App Repository
An application to manage shell scripts!
f-droid.org
Add a new Script and type:
#!/system/bin/sh
dumpsys deviceidle disable
Hit save and apply.. done
Click to expand...
Click to collapse
Oh, i didn't know about this application, thank you! I usually had to use a pc when i reboot my phone for whatever reason so it's nice to at least be able to do it from the phone. I wonder if a boot script can be made with maybe another app that runs a little bit after startup
i tried with :"sleep xx" but it wont help.

Categories

Resources