Advertisements

Wednesday, 13 March 2019

Android Q: How to enable system-wide dark mode using ADB

Few hours back Google released Android Q, the next major update with several new features for Pixel phones, but the first beta doesn’t bring system-wide Dark mode as rumored.  'Device Theme' and 'Night Mode' settings from Android Pie have been removed in Android Q. Dark mode is enabled automatically for some, if 'Night mode' is enabled in Android Pie before updating to Android Q. Battery saver in Android Q turns system apps dark, but this disables important notifcations, haptic feedback and several things. However, you can enable dark mode with simple ADB code. Requirements Any Pixel phone running Android Q beta ADB software (For windows) / Android zip file for Mac / Android zip file for Linux auto, enter: adb shell settings put secure ui_night_mode 0 How to enable dark mode Connect the Pixel to your PC / Mac, open command prompt / terminal window in the same directory where ADB binary is stored Enable Dark Mode: adb shell settings put secure ui_night_mode 2     Disable Dark Mode: adb shell settings put secure ui_night_mode 1 Auto Dark Mode: adb shell settings put secure ui_night_mode 0 If you’re using Windows, you need to add .\ before the command. If you’re using macOS or Linux, then add ./ before the command. Reboot your Pixel ...