File tree Expand file tree Collapse file tree
app/src/main/java/com/devadvance/rootcloak2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments