Enables Dark mode on MIUI 10

  1. Configure on-device developer options .
  2. Go to Settings > Developer Options.
  3. Turn on Developer options.
  4. Turn on USB debugging.
  5. Turn on USB debugging (Security settings).
  6. Connect your phone with PC via a USB cable.
  7. In your PC, Go to ADB binary path where is C:\Program Files (x86)\Android\android-sdk\platform-tools.
  8. Type CMD in this folder address bar and hit Enter.
  9. Type or copy the following code into console according to your needs :
  10. Enable Dark Mode - adb shell settings put secure ui_night_mode 2
  11. Disable Dark Mode - adb shell settings put secure ui_night_mode 1
  12. Dark Mode in automatic - adb shell settings put secure ui_night_mode 0
  13. Reboot your phone to get the system-wide Dark Mode.


Note : Before enabling the Dark Mode, you need to change your phone’s theme to the classic version.