1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-30 19:31:26 +00:00

Fixed Xposed check

This commit is contained in:
M66B 2018-01-12 07:26:24 +01:00
parent e21e6c9c3e
commit a064ed66e4
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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;