mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-21 09:11:29 +00:00
Only load modules and repos if Magisk is installed properly
This commit is contained in:
parent
bd3e0b9336
commit
6bbe0f07d4
@ -37,12 +37,6 @@ public class SplashActivity extends BaseActivity {
|
|||||||
} catch (PackageManager.NameNotFoundException ignored) {}
|
} catch (PackageManager.NameNotFoundException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Magisk working as expected
|
|
||||||
if (Shell.rootAccess() && Config.magiskVersionCode > 0) {
|
|
||||||
// Load modules
|
|
||||||
Utils.loadModules();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set default configs
|
// Set default configs
|
||||||
Config.initialize();
|
Config.initialize();
|
||||||
|
|
||||||
@ -55,8 +49,12 @@ public class SplashActivity extends BaseActivity {
|
|||||||
// Setup shortcuts
|
// Setup shortcuts
|
||||||
Shortcuts.setup(this);
|
Shortcuts.setup(this);
|
||||||
|
|
||||||
if (Networking.checkNetworkStatus(this)) {
|
// Magisk working as expected
|
||||||
// Repo update check
|
if (Shell.rootAccess() && Config.magiskVersionCode > 0) {
|
||||||
|
// Load modules
|
||||||
|
Utils.loadModules();
|
||||||
|
// Load repos
|
||||||
|
if (Networking.checkNetworkStatus(this))
|
||||||
new UpdateRepos().exec();
|
new UpdateRepos().exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user