Move methods

This commit is contained in:
topjohnwu
2019-04-08 15:46:44 -04:00
parent f187213568
commit b72004e9cc
5 changed files with 10 additions and 13 deletions

View File

@@ -20,6 +20,10 @@ public class RootUtils extends Shell.Initializer {
Shell.su(Utils.fmt("(rm_launch %s %s)&", rm, component.flattenToString())).exec();
}
public static void reboot() {
Shell.su("/system/bin/reboot" + (Config.recovery ? " recovery" : "")).submit();
}
@Override
public boolean onInit(Context context, @NonNull Shell shell) {
Shell.Job job = shell.newJob();

View File

@@ -27,7 +27,6 @@ import com.topjohnwu.magisk.R;
import com.topjohnwu.magisk.components.UpdateCheckService;
import com.topjohnwu.magisk.container.Module;
import com.topjohnwu.magisk.container.ValueSortedMap;
import com.topjohnwu.magisk.tasks.CheckUpdates;
import com.topjohnwu.net.Networking;
import com.topjohnwu.superuser.Shell;
import com.topjohnwu.superuser.internal.UiThreadHandler;
@@ -136,10 +135,6 @@ public class Utils {
Config.Value.MULTIUSER_MODE_OWNER_MANAGED);
}
public static void reboot() {
Shell.su("/system/bin/reboot" + (Config.recovery ? " recovery" : "")).submit();
}
public static boolean isCanary() {
return BuildConfig.VERSION_NAME.contains("-");
}