9

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 ?

2 Answers 2

21

This worked for me, no need for root.

adb shell "cmd uimode night yes"

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .