mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-13 21:36:58 -08:00
Fix MagiskHide startup issue
This commit is contained in:
@@ -5,6 +5,7 @@ import android.os.Bundle;
|
||||
|
||||
import com.topjohnwu.magisk.components.Activity;
|
||||
import com.topjohnwu.magisk.utils.Async;
|
||||
import com.topjohnwu.magisk.utils.Utils;
|
||||
|
||||
public class SplashActivity extends Activity {
|
||||
|
||||
@@ -17,10 +18,15 @@ public class SplashActivity extends Activity {
|
||||
|
||||
// Init the info and configs and root shell
|
||||
magiskManager.init();
|
||||
boolean boot_done = Utils.itemExist(MagiskManager.MAGISK_MANAGER_BOOT);
|
||||
|
||||
// Now fire all async tasks
|
||||
new Async.CheckUpdates(magiskManager).exec();
|
||||
new Async.GetBootBlocks(magiskManager).exec();
|
||||
if (magiskManager.prefs.getBoolean("magiskhide", false) && !magiskManager.disabled &&
|
||||
magiskManager.magiskVersion > 10.3 && boot_done) {
|
||||
new Async.MagiskHide().enable();
|
||||
}
|
||||
new Async.LoadModules(magiskManager) {
|
||||
@Override
|
||||
protected void onPostExecute(Void v) {
|
||||
|
||||
Reference in New Issue
Block a user