Copy APK from external storage in stub

Much faster and easier development
This commit is contained in:
topjohnwu
2021-12-13 04:05:42 -08:00
parent b76a3614da
commit de3747d65e
4 changed files with 48 additions and 19 deletions
@@ -3,7 +3,6 @@ package com.topjohnwu.magisk;
import static android.R.string.no;
import static android.R.string.ok;
import static android.R.string.yes;
import static com.topjohnwu.magisk.DelegateApplication.dynLoad;
import static com.topjohnwu.magisk.R2.string.dling;
import static com.topjohnwu.magisk.R2.string.no_internet_msg;
import static com.topjohnwu.magisk.R2.string.relaunch_app;
@@ -49,12 +48,16 @@ public class DownloadActivity extends Activity {
private String apkLink = BuildConfig.APK_URL;
private Context themed;
private ProgressDialog dialog;
private boolean dynLoad;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
themed = new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault);
// Only download and dynamic load full APK if hidden
dynLoad = getPackageName().equals(BuildConfig.APPLICATION_ID);
// Inject resources
loadResources();