mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-28 23:07:23 +00:00
15 lines
373 B
Java
15 lines
373 B
Java
package com.topjohnwu.magisk.receivers;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
import com.topjohnwu.superuser.Shell;
|
|
|
|
public class RebootReceiver extends BroadcastReceiver {
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
Shell.su("/system/bin/reboot").submit();
|
|
}
|
|
}
|