|
|
|
@ -5,8 +5,6 @@ import android.content.Context;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
|
|
|
|
|
import com.fox2code.mmm.MainApplication;
|
|
|
|
|
import com.fox2code.mmm.installer.InstallerInitializer;
|
|
|
|
|
import com.fox2code.mmm.manager.ModuleManager;
|
|
|
|
|
|
|
|
|
|
public class BackgroundBootListener extends BroadcastReceiver {
|
|
|
|
|
private static final String BOOT_COMPLETED = "android.intent.action.BOOT_COMPLETED";
|
|
|
|
@ -20,17 +18,5 @@ public class BackgroundBootListener extends BroadcastReceiver {
|
|
|
|
|
BackgroundUpdateChecker.doCheck(context);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ModuleManager.FORCE_NEED_FALLBACK &&
|
|
|
|
|
MainApplication.hasGottenRootAccess()) {
|
|
|
|
|
InstallerInitializer.tryGetMagiskPathAsync(new InstallerInitializer.Callback() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onPathReceived(String path) {
|
|
|
|
|
ModuleManager.getINSTANCE().scan();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onFailure(int error) {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|