Skip to content

Commit e24a4d0

Browse files
authored
Merge pull request #99 from pylerSM/patch-18
Fake also development options status
2 parents 4c8a865 + aff8b65 commit e24a4d0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

app/src/main/java/com/devadvance/rootcloak2/RootCloak.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,20 @@ private void initSettingsGlobal(final LoadPackageParam lpparam) {
606606
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
607607

608608
String setting = (String) param.args[1];
609-
if (setting != null && Settings.Global.ADB_ENABLED.equals(setting)) { // Hide ADB being on from an app
609+
if (setting == null) return;
610+
if (Settings.Global.ADB_ENABLED.equals(setting)) { // Hide ADB being on from an app
610611
param.setResult(0);
611612
if (debugPref) {
612613
XposedBridge.log("Hooked ADB debugging info, adb status is off");
613614
}
614615
}
616+
617+
if (Settings.Global.DEVELOPMENT_SETTINGS_ENABLED.equals(setting)) { // Hide development options being on from an app
618+
param.setResult(0);
619+
if (debugPref) {
620+
XposedBridge.log("Hooked development options info, development options status is off");
621+
}
622+
}
615623
}
616624
});
617625
}

0 commit comments

Comments
 (0)