# Enabling Night Mode on Android Nougat

DevFeed: [Enabling Night Mode on Android Nougat](<https://devfeed.tech/articles/enabling-night-mode-on-android-nougat-25106.md>)

Original publisher: [Read original article](<http://michaelevans.org/blog/2016/08/23/enabling-night-mode-on-android-nougat/>)

Author: Michael Evans

Published: 2016-08-23T22:27:01Z

Content type: tutorial

Language: en

Sources: [Gadget Habit](<https://devfeed.tech/sources/gadget-habit.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Code](<https://devfeed.tech/topics/code.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [App](<https://devfeed.tech/topics/app.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [adb](<https://devfeed.tech/tags/adb.md>), [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [feature](<https://devfeed.tech/tags/feature.md>), [play-store](<https://devfeed.tech/tags/play-store.md>), [source](<https://devfeed.tech/tags/source.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to restore access to Night Mode settings on Android Nougat by launching the System UI Tuner activity with the appropriate intent extra through adb. It also presents a Play Store app that performs the process with a single button.

## Source excerpt

If you're like me, you loved the Night Mode feature that was added to the Nougat Developer Preview a few months ago. You might have been disappointed when you found out that it was missing in later preview builds, and was probably going to be removed because it wasn't ready. When the source code for Nougat was released this morning, my friend Vishnu found this interesting snippet in the SystemUI source (better known to end users as the System UI Tuner): 1 2 3 4 5 boolean showNightMode = getIntent().getBooleanExtra( NightModeFragment.EXTRA_SHOW_NIGHT_MODE, false); final PreferenceFragment fragment = showNightMode ? new NightModeFragment() : showDemoMode ? new DemoModeFragment() : new TunerFragment(); Long story short, if you pass the right extras to this activity, and you'll get access to the Night Mode settings (as well as the infamous Quick Tile!). Fortunately for us, this is pretty trivial to accomplish with adb via adb -d shell am start --ez show_night_mode true com.android.systemui/.tuner.TunerActivity, but not everyone who wants this feature is familiar with adb. So I published an app to the Play Store that does exactly that - click one button, and get access to those settings! You can find the app on the Play Store here.