diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index c3c33597..e9b4f34d 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -130,7 +130,7 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences } // Check for Xposed - if (Util.isPlayStoreInstall(this) && Util.hasXposed(this)) { + if (Util.hasXposed(this)) { Log.i(TAG, "Xposed running"); super.onCreate(savedInstanceState); setContentView(R.layout.xposed); diff --git a/app/src/main/java/eu/faircode/netguard/Util.java b/app/src/main/java/eu/faircode/netguard/Util.java index 8d3ad891..94e674a2 100644 --- a/app/src/main/java/eu/faircode/netguard/Util.java +++ b/app/src/main/java/eu/faircode/netguard/Util.java @@ -429,6 +429,8 @@ public class Util { } public static boolean hasXposed(Context context) { + if (!isPlayStoreInstall(context)) + return false; for (StackTraceElement ste : Thread.currentThread().getStackTrace()) if (ste.getClassName().startsWith("de.robv.android.xposed")) return true;