4

To Enable Dark Mode:

adb shell settings put secure ui_night_mode 2

To Disable Dark Mode:

adb shell settings put secure ui_night_mode 1

For Auto Dark Mode:

adb shell settings put secure ui_night_mode 0

and then

adb reboot

My question is how to change Dark mode without abd reboot ?

3

On root devices

To Enable Dark Mode:

adb shell "su 0 cmd uimode night yes"

To Disable Dark Mode:

adb shell "su 0 cmd uimode night no"

For Auto Dark Mode:

adb shell "su 0 cmd uimode night auto"
0
3

This worked for me, no need for root.

adb shell "cmd uimode night yes"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.