mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 03:20:46 -05:00
Use AppComponentFactory to replace ClassLoader
This commit is contained in:
@@ -118,8 +118,7 @@ public class DownloadActivity extends Activity {
|
||||
File apk = dynLoad ? DynAPK.current(this) : new File(getCacheDir(), "manager.apk");
|
||||
request(apkLink).setExecutor(AsyncTask.THREAD_POOL_EXECUTOR).getAsFile(apk, file -> {
|
||||
if (dynLoad) {
|
||||
DynLoad.setup(this);
|
||||
runOnUiThread(onSuccess);
|
||||
// TODO
|
||||
} else {
|
||||
var receiver = APKInstall.register(this, BuildConfig.APPLICATION_ID, onSuccess);
|
||||
APKInstall.installapk(this, file);
|
||||
|
||||
Reference in New Issue
Block a user