Disable doze not working? - Microsoft Surface Duo Questions & Answers

Is it possible to disable doze on the Duo without root? I have tried the ADB command to do so but it doesn't seem to have an effect. An app that I need to stay running is still getting killed, despite setting battery at unrestricted for it.
Unlocked model fully updated to Android 12.

Related

Cannot activate automatic hibernation - "secure key-guard" is activated

Hi,
I cannot activate the automatic hibernation for Greenify on my Honor 7 because "secure key-guard" is activated.
How can i desactivate it ?
At the same time, i cannot activate the accessibility service of greenify. Each time i activate it, it turns to desactivated. I could activate it for other apps such as Automate but not for Greenify.
Maybe these two problems are related to the same problem.
I have Lollipop 5.0.2 EU
Can you help me ?
Thanks.
medtun said:
Hi,
I cannot activate the automatic hibernation for Greenify on my Honor 7 because "secure key-guard" is activated.
How can i desactivate it ?
At the same time, i cannot activate the accessibility service of greenify. Each time i activate it, it turns to desactivated. I could activate it for other apps such as Automate but not for Greenify.
Maybe these two problems are related to the same problem.
I have Lollipop 5.0.2 EU
Can you help me ?
Thanks.
Click to expand...
Click to collapse
Secure keyguard is the screen unlocking option in device settings. You can disable that and use the swipe unlock feature.
The Accessibility service will stay enabled for Greenify if you are using it in non root mode. In any other mode it is not required and even if checked, will automatically uncheck itself after some time.
tnsmani said:
Secure keyguard is the screen unlocking option in device settings. You can disable that and use the swipe unlock feature.
The Accessibility service will stay enabled for Greenify if you are using it in non root mode. In any other mode it is not required and even if checked, will automatically uncheck itself after some time.
Click to expand...
Click to collapse
But, actually i'm using Greenify in a non root mode. Though i cannot activate the Accessibility service.
medtun said:
But, actually i'm using Greenify in a non root mode. Though i cannot activate the Accessibility service.
Click to expand...
Click to collapse
I am out of ideas. I think only the Dev can solve your problem.

Doze disables portable hotspot

Currently when Doze activates (not sure if light or deep idle, my guess would be deep) the portable hotspot stops working, it doesn't turn off, so in order to get it working again you have to turn it off and then on again. Because of this there is no way to share your internet access indefinitely if you let our phone idle. Is this an oversight from Google in the way that doze activates? I see no reason why you would want your phone to doze while hotspot is active.
And in accordance to the "Android Compatibility Definition Document" OEMs are not allowed to alter Doze, meaning that this problem carries over to almost all phones in the west.
The way I've been doing it now is disabling doze when I turn on hotspot using tasker. Unfortunately this requires root. Not a problem on my 6P, but a much bigger problem if I decide to get the S8 (trigger KNOX = no Samsung pay, probably).
What would be the best way to get Google to fix this? Am I the only one that cares for portable hotspot? Does this work differently for others?
Any sort of response would be much appreciated.

Does Android have different levels of sleep? (SManager can't wake network)

I'm using SManager to run a very simple shell script on a regular schedule; all it does is run a ffmpeg command line to save an audio stream from a URL. If I run the script manually, it works great. If I schedule it for, say, 15 minutes ahead, then put the device to sleep, it works great. But if it's been sleeping for hours, like overnight, the script runs but ffmpeg reports that it can't access the network. Only difference that I can see is how long the device has been asleep, but I haven't done enough tests yet to figure out how long it has to be asleep before the network becomes unwakeable.
Does this make sense to anyone; ideas about how to solve it?
Device is a rooted 5th generation Amazon Fire tablet with Nexus ROM. In SManager, my scripts are marked to run as root, with wakelock enabled.
You can try to disable doze, or whitelist in greenify. Also, in kernel adiutor mod you can go to the power category and disable level 4 of sleep.
Cool, thanks. I'll check out Greenify and Kernel Audiutor
Forgot to specify that my ROM is Lollipop, which I believe predates doze.
Well, still out of luck.
Nothing doing with Doze; my ROM is Lollipop, which predates Doze.
Looks like if I were using Greenify to save battery, I would need to whitelist SManager so that Greenify doesn't block its network access in order to save battery ... but I haven't had any need for a battery saver app, so am not using Greenify.
Kernel Audiutor sounds promising, but for some reason it won't start up properly on my device; it starts to load up and then gets stuck at the initial self-configuration stage!

[GUIDE] Disable Cellular Radio On AOSP Based Roms (WiFi Only)

I brought my old LG-G3 back to life to use strictly as a media player with a prop edit to disable the cellular radio (I was using my old Samsung GS3, but it finally died after all these years!). Running LOS 09/01 nightly w/xdabbeb's 35b bootstack and everything is buttery smooth. Performance is really top notch for this device running LOS 14.1 - no complaints here. If anyone wants to use their device as a mini tablet (wifi only/disable radio) this is what you do via a root adb shell on a pc:
Code:
adb shell
Code:
su
Code:
setprop persist.radio.noril 1
That command removes the cellular radio portion from the OS. There will no longer be a signal bar in the status bar. Wifi will still work so the device is basically now a mini tablet. You will gain a major increase in battery life. A couple of things to note:
-Root required. Flash Lineage's SU addon (I couldn't get Magisk to work, and I no longer use SuperSU so I can't comment on that). Enable root for apps & adb in Developer Options.
-The radio is disabled, but the OS is still built as a phone. In the Battery section it'll still show "phone idle" as draining battery. Ignore it, it's a false reading.
-On this device there is an odd side effect where the GPS becomes disabled too. Apparently LG ties some GPS hardware to the device's RIL. This doesn't happen on other phones for future reference. It doesn't bother me, I would have turned location off anyways - after all, I'm just listening to music from my 128gb microSD. The GPS will still be available in the system, but it simply will not find any satellites. Just turn off the GPS so it's not searching and draining your battery.
-You can also do it from a terminal app or Lineage's built in terminal (you have to enable the terminal in Developer Options).
-To revert and restore the radio, do the same thing, but replace the "1" with a "0" in the command.
-The radio disable will remain when dirty flashing an update (no need to run the command again).
-If you play any Kanye West, your phone will make a vomit sound and immediately self destruct....you've been warned!
-Revert Command:
Code:
setprop persist.radio.noril 0
Just curious - how is this better than disabling mobile networks and leaving the phone in airplane mode?
syborg said:
Just curious - how is this better than disabling mobile networks and leaving the phone in airplane mode?
Click to expand...
Click to collapse
Disabling mobile networks still causes the system to ping and look for telephony related services (aka battery consumption). Airplane mode would be a better comparison, though the data signal is still "alive" on the system. Doing this removes your RIL completely. So services that would normally ping won't because there is no RIL/data and those services will only begin pinging when on Wifi (like a data only tablet). This method is the more battery friendly than airplane mode.
annoyingduck said:
I brought my old LG-G3 back to life to use strictly as a media player with a prop edit to disable the cellular radio (I was using my old Samsung GS3, but it finally died after all these years!). Running LOS 09/01 nightly w/xdabbeb's 35b bootstack and everything is buttery smooth. Performance is really top notch for this device running LOS 14.1 - no complaints here. If anyone wants to use their device as a mini tablet (wifi only/disable radio) this is what you do via a root adb shell on a pc:
Code:
adb shell
Code:
su
Code:
setprop persist.radio.noril 1
That command removes the cellular radio portion from the OS. There will no longer be a signal bar in the status bar. Wifi will still work so the device is basically now a mini tablet. You will gain a major increase in battery life. A couple of things to note:
-Root required. Flash Lineage's SU addon (I couldn't get Magisk to work, and I no longer use SuperSU so I can't comment on that). Enable root for apps & adb in Developer Options.
-The radio is disabled, but the OS is still built as a phone. In the Battery section it'll still show "phone idle" as draining battery. Ignore it, it's a false reading.
-On this device there is an odd side effect where the GPS becomes disabled too. Apparently LG ties some GPS hardware to the device's RIL. This doesn't happen on other phones for future reference. It doesn't bother me, I would have turned location off anyways - after all, I'm just listening to music from my 128gb microSD. The GPS will still be available in the system, but it simply will not find any satellites. Just turn off the GPS so it's not searching and draining your battery.
-You can also do it from a terminal app or Lineage's built in terminal (you have to enable the terminal in Developer Options).
-To revert and restore the radio, do the same thing, but replace the "1" with a "0" in the command.
-The radio disable will remain when dirty flashing an update (no need to run the command again).
-If you play any Kanye West, your phone will make a vomit sound and immediately self destruct....you've been warned!
-Revert Command:
Code:
setprop persist.radio.noril 0
Click to expand...
Click to collapse
Even if this is an old thread, it was exactly what I searched for. It works perfect and pushes my "S6 Edge-iPod" to new battery levels. Holds days and drops only a few percent. (Running Android 11 custom Rom)
Thank you for giving that information, I googled a long time to finally find this.

Permanent Wifi on Unrooted Device

I just found an interesting solution to prevent wifi getting disabled on a device without root. I am just beginning to test this now, so this may have battery consequences, but it seems to work as desired on my fossil sport. If there is the key "cw_disable_wifimediator=1" in global settings, then the wifi will never turn off. The user can change the setting to disable wifi, but this will have no effect on wifi connectivity. Same with airplane mode. Interesting. This change also survives device restarts.
To add this setting, you can do
adb shell settings put global cw_disable_wifimediator 1
I don't know if you can do it from an app (maybe with write_system_settings), but I'll keep testing this in the future.
Yep, can be done at least with granted permission WRITE_SECURE_SETTINGS.
Settings.Global.putInt(contentResolver, DISABLE_WIFI_MEDIATOR_KEY, 1)
I did it accidentally... I moved my watch from one phone to another (guide online). But it stuffed up Bluetooth so it only connected via wifi. Battery was worse so I just reset the watch like you're supposed to.
so good
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
GalaxyA325G said:
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
Click to expand...
Click to collapse
Code:
adb shell settings get global cw_disable_wifimediator
to get the status. Whether or not the feature works as intended, I don't know - I'm going to test it myself.
Code:
adb shell settings get global cw_disable_wifimediator 0
to disable this feature and re-enable the auto setting.
GalaxyA325G said:
I just found this thread searching for a solution to this problem...
Android 12 Developer options adb "Wireless debugging" option keeps turning off
The question I'd like to ask those who tried this ... is...
Q: Is there any way to KNOW (after the fact) that you've permanently turned off the ability to turn off the Wi-FI?
How do you turn it back on if you need to?
Click to expand...
Click to collapse
I have the same issue you have, have you got it to work yet as intended?

Categories

Resources