You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
More fixes, more breaks...
This commit is contained in:
@@ -15,10 +15,10 @@ public class AutoStartReceiver extends BroadcastReceiver {
|
||||
Log.d("Magisk", "Received Boot call, attempting to start service");
|
||||
Intent myIntent = new Intent(context, MonitorService.class);
|
||||
context.startService(myIntent);
|
||||
if (PrefHelper.CheckBool("keep_root_off")) {
|
||||
if (PrefHelper.CheckBool("keep_root_off",context)) {
|
||||
Utils.toggleRoot(false);
|
||||
}
|
||||
if (PrefHelper.CheckBool("enable_quicktile")) {
|
||||
if (PrefHelper.CheckBool("enable_quicktile",context)) {
|
||||
Utils.SetupQuickSettingsTile(context);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import com.topjohnwu.magisk.services.TileService;
|
||||
import com.topjohnwu.magisk.services.TileServiceCompat;
|
||||
|
||||
public class TileReceiver extends BroadcastReceiver {
|
||||
private static final String TAG = "MainReceiver";
|
||||
@@ -18,7 +18,7 @@ public class TileReceiver extends BroadcastReceiver {
|
||||
String action = intent.getAction();
|
||||
|
||||
if (action.equals(Intent.ACTION_BOOT_COMPLETED) || action.equals(Intent.ACTION_USER_PRESENT) || action.equals(Intent.ACTION_SCREEN_ON)) {
|
||||
context.startService(new Intent(context,TileService.class));
|
||||
context.startService(new Intent(context,TileServiceCompat.class));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user