Magisk/src/main/java/com/topjohnwu/magisk/receivers/RebootReceiver.java

15 lines
371 B
Java
Raw Normal View History

2017-11-14 21:39:05 +01:00
package com.topjohnwu.magisk.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.topjohnwu.magisk.utils.Shell;
public class RebootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
2017-11-20 19:11:20 +01:00
Shell.su_raw("/system/bin/reboot");
2017-11-14 21:39:05 +01:00
}
}