Skip to content

Commit

Permalink
Merge pull request #99 from pylerSM/patch-18
Browse files Browse the repository at this point in the history
Fake also development options status
  • Loading branch information
devadvance committed Jul 31, 2016
2 parents 4c8a865 + aff8b65 commit e24a4d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/main/java/com/devadvance/rootcloak2/RootCloak.java
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,20 @@ private void initSettingsGlobal(final LoadPackageParam lpparam) {
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {

String setting = (String) param.args[1];
if (setting != null && Settings.Global.ADB_ENABLED.equals(setting)) { // Hide ADB being on from an app
if (setting == null) return;
if (Settings.Global.ADB_ENABLED.equals(setting)) { // Hide ADB being on from an app
param.setResult(0);
if (debugPref) {
XposedBridge.log("Hooked ADB debugging info, adb status is off");
}
}

if (Settings.Global.DEVELOPMENT_SETTINGS_ENABLED.equals(setting)) { // Hide development options being on from an app
param.setResult(0);
if (debugPref) {
XposedBridge.log("Hooked development options info, development options status is off");
}
}
}
});
}
Expand Down

0 comments on commit e24a4d0

Please sign in to comment.