Developer Options can be enabled by tapping 7 times on build number. I am using
adb shell input tap x y command to tap on build number. is there any adb command to tap on build number 7 times?
Developer Options can be enabled by tapping 7 times on build number. I am using
adb shell input tap x y command to tap on build number. is there any adb command to tap on build number 7 times?
much easier way:
adb shell settings put global development_settings_enabled 1
adb shell settings put global development_settings_enabled 0
but it doesn't work –
Puma Android 11
and Android 12 Beta
. But note that as @ childno͡.de mentioned Developer options
have to be enabled at least once for device to be recognised by the computer and the above command can then be executed for disabling/enabling the options. –
Clipboard adb shell
prefix. –
Deist That info is stored in a shared preference of the settings app. Which is located at: /data/user_de/0/com.android.settings/shared_prefs/development.xml it has a boolean named show stored, if set to true, developer options is shown, gone otherwise.
If device IS ROOTED, you could do:
adb root
adb shell sed -i -e 's/false/true/g' data/user_de/0/com.android.settings/shared_prefs/development.xml
adb shell chown system:system data/user_de/0/com.android.settings/shared_prefs/development.xml
adb shell cat data/user_de/0/com.android.settings/shared_prefs/development.xml
adb shell am force-stop com.android.settings
This is the explanation for each command:
false
to true
. There is only this value stored in that XML, in that sense it's save for now.If device is NOT rooted, I can not think of a way to accomplish this.
Even if we have a rooted device, this method is way longer than doing 7 keyevents through adb (after a swipe to the end). So I think you're better off with your current method. (Sorry to say)
FYI cannot enable developer option since device will not be connected with the pc.hence, adb command wont work if developer options is off. Although you can disable it using
" adb shell settings put global development_settings_enabled 0 "
© 2022 - 2024 — McMap. All rights reserved.