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:
parent
e21e6c9c3e
commit
a064ed66e4
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue