Copy APK from external storage in stub

Much faster and easier development
This commit is contained in:
topjohnwu
2021-12-12 23:52:59 -08:00
parent b76a3614da
commit de3747d65e
4 changed files with 48 additions and 19 deletions
@@ -12,17 +12,12 @@ import io.michaelrocks.paranoid.Obfuscate;
@Obfuscate
public class DelegateApplication extends Application {
static boolean dynLoad = false;
private Application receiver;
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
// Only dynamic load full APK if hidden
dynLoad = !base.getPackageName().equals(BuildConfig.APPLICATION_ID);
receiver = InjectAPK.setup(this);
if (receiver != null) try {
// Call attachBaseContext without ContextImpl to show it is being wrapped