Search code examples
androidadb

command to hide developer options


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.


Solution

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

    adb shell pm clear com.android.settings