0

Samsung Galaxy s7 edge 7.0, (rooted)

I am looking for an adb command to hide developers options (i.e. remove the developer options completely). I have reviewed all threads touching on the issue (enabling, mainly) on this and other forums. the closest thing I have found is

Is there any adb command to enable developer options?

I have tried inverting both methods listed with no success- someone else there asks about disabling also (no answer). In practice, I assume what I want to do is clear data at the point

I assume such a command would also immediately? deactivate the adb shell.

Any guidance appreciated.

deficineiron
  • 3
  • 1
  • 4

1 Answers1

1

Please try this, not sure if it works on non-rooted devices:

adb shell pm clear com.android.settings
Cao Minh Vu
  • 1,900
  • 1
  • 16
  • 21
  • Thanks - This did it - Developer Options menu is no longer present (until I bring it back). Is clearing those settings likely to have any other effects? (is this the same as clearing the – deficineiron Jan 29 '18 at 11:35
  • Yes, basically, Developer Options data will be stored in a shared preference file of Setting application, the command will clear this file. As a result, the feature is gone. – Cao Minh Vu Jan 30 '18 at 03:31
  • @deficineiron, if it is ok, please mark it as the correct answer – Cao Minh Vu Jan 30 '18 at 07:15