Setting Android 10 Dark theme on and off with adb shell - how to do it without reboot? 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 ?
On root devices
To Enable Dark Mode:
adb shell &quot;su 0 cmd uimode night yes&quot;

To Disable Dark Mode:
adb shell &quot;su 0 cmd uimode night no&quot;

For Auto Dark Mode:
adb shell &quot;su 0 cmd uimode night auto&quot;