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
|
|
|
}
|
|
|
|
}
|