mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-13 05:37:47 +02:00
Support stub APK upgrades
This commit is contained in:
@ -37,7 +37,9 @@ public class DelegateApplication extends Application {
|
||||
// If 9.0+, try to dynamically load the APK
|
||||
DelegateComponentFactory factory = (DelegateComponentFactory) this.factory;
|
||||
MANAGER_APK = DynAPK.current(this);
|
||||
MANAGER_APK.getParentFile().mkdir();
|
||||
File update = DynAPK.update(this);
|
||||
if (update.exists())
|
||||
update.renameTo(MANAGER_APK);
|
||||
if (MANAGER_APK.exists()) {
|
||||
ClassLoader cl = new DynamicClassLoader(MANAGER_APK, factory.loader);
|
||||
try {
|
||||
|
Reference in New Issue
Block a user