Page 1 of 1
Root functions not working on LineageOS
Posted: 16 Oct 2017 06:41
by krishnivas
Hi.
I recently switched to Lineage OS on my MotoG3 Osprey. Unfortunately I'm unable to get the root functions working. I just tried Shutdown device and apparently the OS is not supported.
Any help is greatly appreciated.
Best regards
Krishna
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 07:04
by Bingwu
Hello Krishna!
The root functions under LineageOS work. (I have two devices with LineageOS 14.)
The Action "Shutdown" does not work with LineageOS. (e. g. "Reboot" works.)
Regards
Peter
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 17:05
by krishnivas
Hi Peter.
Thanks for the reply. If I understand you correctly, you're saying that the Action Shutdown will not work but Action Reboot with parameters will work. Am I correct?
And if yes, why is that?
Best regards
Krishna
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 17:29
by Bingwu
Hello Krishna!
Yes that is correct!
Shutdown = does not work
Reboot = works
Why? = I do not know!
Regards
Peter
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 18:40
by Martin
Hi,
Is there a red label in the action that tells that the action in not supported on the device?
Please try to use action Execute Root Command: svc power shutdown to see if this one works on your devices.
I'll improve the action to automatically select this method when the other method does not work.
Regards,
Martin
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 18:56
by Bingwu
Yes Martin and thank you!

- LineageOS.png (41.21 KiB) Viewed 21047 times
Regards
Peter
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 19:06
by Martin
Does action Execute Root Command: svc power shutdown work on your device?
Regards,
Martin
Re: Root functions not working on LineageOS
Posted: 16 Oct 2017 19:17
by Bingwu
Yes Martin , I've tested it once and it has worked!
(LG Nexus 5, LineageOS, Android 7.1.2 "14.1-20171010-NIGHTLY-hammerhead")
Have a nice evening!
Peter
Re: Root functions not working on LineageOS
Posted: 18 Oct 2017 19:26
by Martin
Thanks for testing. The action Shutdown should work again on most devices in the next update of Automagic.
Regards,
Martin