You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Migrate to new endpoints
This commit is contained in:
@@ -4,7 +4,6 @@ import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Build;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
@@ -18,9 +17,8 @@ public class DelegateApplication extends Application {
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
|
||||
// Only dynamic load full APK if hidden and supported
|
||||
dynLoad = Build.VERSION.SDK_INT >= 21 &&
|
||||
!base.getPackageName().equals(BuildConfig.APPLICATION_ID);
|
||||
// Only dynamic load full APK if hidden
|
||||
dynLoad = !base.getPackageName().equals(BuildConfig.APPLICATION_ID);
|
||||
|
||||
receiver = InjectAPK.setup(this);
|
||||
if (receiver != null) try {
|
||||
|
||||
Reference in New Issue
Block a user