FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[Q] Scheduled Shutdown

10 posts
Thanks Meter: 1
 
By Sagittarius0, Junior Member on 23rd May 2014, 08:08 PM
Post Reply Subscribe to Thread Email Thread
26th May 2014, 04:07 PM |#11  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 873
 
More
Quote:
Originally Posted by cuff21

My guess is that it does exactly what Renate NST is telling you to do - send a shutdown intent - behind the scenes.

Hmm, I don't know. A regular root and su won't work.
You'd either have to have a system-signed app or hack the permission system.

There is no clear info on the difference between an Android shutdown and a Linux shutdown.
Given the choice, I'd go for the Android shutdown.
 
 
26th May 2014, 06:01 PM |#12  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Renate NST

Hmm, I don't know. A regular root and su won't work.
You'd either have to have a system-signed app or hack the permission system.

Well I had a stack overflow link that shows a way to do it, but I can't post links yet. Either way, apparently there is a way with only root. The code from the link was:
Code:
try {
    Process proc = Runtime.getRuntime()
                    .exec(new String[]{ "su", "-c", "reboot -p" });
    proc.waitFor();
} catch (Exception ex) {
    ex.printStackTrace();
}
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes