Commit 6bbe0f07 authored by topjohnwu's avatar topjohnwu

Only load modules and repos if Magisk is installed properly

parent bd3e0b93
......@@ -37,12 +37,6 @@ public class SplashActivity extends BaseActivity {
} catch (PackageManager.NameNotFoundException ignored) {}
}
// Magisk working as expected
if (Shell.rootAccess() && Config.magiskVersionCode > 0) {
// Load modules
Utils.loadModules();
}
// Set default configs
Config.initialize();
......@@ -55,9 +49,13 @@ public class SplashActivity extends BaseActivity {
// Setup shortcuts
Shortcuts.setup(this);
if (Networking.checkNetworkStatus(this)) {
// Repo update check
new UpdateRepos().exec();
// Magisk working as expected
if (Shell.rootAccess() && Config.magiskVersionCode > 0) {
// Load modules
Utils.loadModules();
// Load repos
if (Networking.checkNetworkStatus(this))
new UpdateRepos().exec();
}
app.init = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment