Root functions not working on LineageOS

Post your questions and help other users.

Moderator: Martin

Post Reply
krishnivas
Posts: 12
Joined: 14 Dec 2015 10:48

Root functions not working on LineageOS

Post by krishnivas » 16 Oct 2017 06:41

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

User avatar
Bingwu
Posts: 114
Joined: 26 Feb 2016 10:26

Re: Root functions not working on LineageOS

Post by Bingwu » 16 Oct 2017 07:04

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

krishnivas
Posts: 12
Joined: 14 Dec 2015 10:48

Re: Root functions not working on LineageOS

Post by krishnivas » 16 Oct 2017 17:05

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

User avatar
Bingwu
Posts: 114
Joined: 26 Feb 2016 10:26

Re: Root functions not working on LineageOS

Post by Bingwu » 16 Oct 2017 17:29

Hello Krishna!

Yes that is correct!

Shutdown = does not work
Reboot = works

Why? = I do not know! :(

Regards
Peter

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Root functions not working on LineageOS

Post by Martin » 16 Oct 2017 18:40

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

User avatar
Bingwu
Posts: 114
Joined: 26 Feb 2016 10:26

Re: Root functions not working on LineageOS

Post by Bingwu » 16 Oct 2017 18:56

Yes Martin and thank you!
LineageOS.png
LineageOS.png (41.21 KiB) Viewed 20667 times
Regards
Peter

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Root functions not working on LineageOS

Post by Martin » 16 Oct 2017 19:06

Does action Execute Root Command: svc power shutdown work on your device?

Regards,
Martin

User avatar
Bingwu
Posts: 114
Joined: 26 Feb 2016 10:26

Re: Root functions not working on LineageOS

Post by Bingwu » 16 Oct 2017 19:17

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Root functions not working on LineageOS

Post by Martin » 18 Oct 2017 19:26

Thanks for testing. The action Shutdown should work again on most devices in the next update of Automagic.

Regards,
Martin

Post Reply