Root needed for Set Power Save, CPU, Doze?

38 views
Skip to first unread message

RGeB

unread,
Feb 8, 2026, 5:43:10 PM (2 days ago) Feb 8
to Automate for Android
Thank you for all the work on Automate. It is a great app.

I am using a non-rooted Lenovo M8 (gen 2, Android 10), with Developer options > USB debugging on.

I installed Automate 1.50.0 from Playstore, and legacy extension from Llama.

I am using a flow to automate connection of my car OBD reader (OBDLink SX). That works well (thanks again).

I am also using an OTG Y cable for simultaneous power in and data out. With 15 kohms between microUSB pins 4 & % that also works well. But the M8 retains 'Plugged In' status, even when the external power is disconnected. The screen still 'sleeps' as usual.

So to get back to low battery usage while the screen sleeps, I am trying to use any of Automate Blocks:
Power save mode set state (Enable)
CPU speed set (On demand) or
Device doze mode et state (Activate)

I have set the required permissions (priveleged or full (superuser) access to device features and storage is available via Device Settings > Apps > Automate > Permissions > Additional permissions; even though the device is not rooted). Automate reports that start method is 'None'. I have even tried Automate > Settings > Priveleges > execute shell commands; and Workarounds > Power save mode workaround > Priveleged service (no solution for me).

I have not been asked for (nor sent) any ADB command from PC.

I tested each block alone (Flow beginning > Test Block). In each case, I get: 
Failed to start priveleged service.
java.lang.UnsupportedOperationException: Priveleged service disabled, see settings
java.util.concurrent. TimeoutException: Service startup timeout

Does this mean it needs a rooted device? Or an abd command from PC? 
It is not explicit in the Block documentation.

Henrik "The Developer" Lindqvist

unread,
Feb 8, 2026, 8:38:15 PM (2 days ago) Feb 8
to Automate for Android
You need to setup a "Privileged service start method" in Automate settings.

RGeB

unread,
Feb 8, 2026, 10:01:51 PM (2 days ago) Feb 8
to Automate for Android

Thanks.

 I choose Android Debug Bridge (ADB) as Privileged service start method (device is not rooted). There was a popup notification but no further on-screen instruction.

 I connected the device to PC, executed the shell command adb tcpip 5555,  disconnected the USB cable, restarted Automate, allowed Automate and adb to pair (in a pop-up box) and set the Default/Select USB configuration to No data transfer in system Developer settings.

 WIFI is off in the device.

 Now starting the flow gives: android system:Errnoexception: open failed: EACCES (Permission denied).

 Then I rebooted the device and restarted Automate (had to resend adb tcpip5555 from the PC). Error as above.

 Do I need to do something else?

RGeB

unread,
Feb 8, 2026, 10:12:07 PM (2 days ago) Feb 8
to Automate for Android
Checked further, CPU speed set gives that error, but Power save mode set Doze set now work!

Thanks again for the lead, I can survive without CPU speed set if Power save does the job.

RGeB

unread,
Feb 8, 2026, 10:31:58 PM (2 days ago) Feb 8
to Automate for Android
Alas, Automate Power save mode set state (Enable) does nothing when the M8 thinks it is plugged in.

I suspect that Automate Device doze mode set state (Activate)will also do nothing then.

Any ideas on how to get CPU speed set (On demand) working?

мJ Zкxy

unread,
Feb 9, 2026, 9:07:46 AM (yesterday) Feb 9
to Automate for Android
I may be a feature that require Privileged service both and root service and differ to each phone the developer need to test it manually.

RGeB

unread,
Feb 9, 2026, 4:17:50 PM (24 hours ago) Feb 9
to Automate for Android
Thank you for the feedback. 
It sounds like I may be out of luck with Automate CPU set in a non-rooted Lenovo M8.
I will try another "Y" cable and experiment with resistance values between micro-USB pins 4 & 5 to see if there is a hardware solution to the underlying "Plugged In" problem.
I am not too hopeful though, it may be a Lenovo quirk.

Henrik "The Developer" Lindqvist

unread,
Feb 9, 2026, 4:56:11 PM (23 hours ago) Feb 9
to Automate for Android
The popup notification shows the instructions. But "Wireless debugging", which it relies on, only works on Android 11 and higher.
The CPU block will probably not works without root, but the Power mode set state and Device doze mode set state blocks should.

RGeB

unread,
Feb 9, 2026, 9:22:26 PM (18 hours ago) Feb 9
to Automate for Android
In case it helps, in Android 10 I got a popup notification saying I should follow the on-screen instructions, but n there were no further instructions.
I just used adb as usual (as described above) and that seems to have worked (in Android 10).
I can confirm you advice about which blocks work (for me) without root.
Thanks again.

Henrik "The Developer" Lindqvist

unread,
1:50 PM (2 hours ago) 1:50 PM
to Automate for Android
On Android 10 and lower it should instruct the user to enable "Developer options", the "USB debugging" option, execute adb tcpip 5555, then try to pair.
Reply all
Reply to author
Forward
0 new messages