UPDATE: How to ‘sort of’ schedule Dark Theme on Android 10 with Tasker

0

Android 10 has finally arrived to all generations of Google Pixel devices, including the Pixel 3a series. To everyone’s disappointment, the option to schedule the much-awaited Dark Theme is not yet in the public version of Android.

If you have been following me on Twitter, you are most likely already aware of this, but this was one of my most anticipated feature to see on Android for a very long time – and if you’re reading this, chances are… yours too.

So, while I have so far been unable to fully replicate a proper feature to toggle Dark Theme at the same time as Night Light, I have managed to work out something that ‘will do’ for the time being.

If you haven’t already, do make sure to star my ‘Scheduling’ request on Google’s system. It’s been starred by over 94 people and has been assigned to developers to work on it.

UPDATE!

Here’s a proper solution! Kudos to u/andyooo for the suggestion!

You may need to use ADB to give permission to write secure settings. XDA has all the commands in the ‘Requirements’ https://www.xda-developers.com/enable-android-p-dark-theme-night-light/

For this solution to work, you’ll have to set up 2 different profiles, let’s start with the first one.

  1. Make a new profile and call it “Dark theme On”
  2. Choose the State context
  3. Pick the System category
  4. Select the Custom Setting option
  5. For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.

Next

  1. Enter the Task creator (it’s not necessary to give it a name)
  2. Add an Action
  3. Pick “Custom Setting”
  4. For the Type, pick “Secure”. For the Name, enter “ui_night_mode”. For the Value, enter “2”.
  5. Add another Action
  6. Pick “Car Mode” -> For the Set, pick “On”
  7. Add another Action
  8. Pick “Car Mode” -> For the Set, pick “Off” – By turning Driving mode On and Off, it will trigger Dark Theme to toggle
  9. Exit out

Next Profile – basically the same steps, except, we’ll have to disable all of the settings created above

  1. Make a new profile and call it “Dark theme Off”
  2. Choose the State context
  3. Pick the System category
  4. Select the Custom Setting option
  5. For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.
  6. Make sure to Tick the “Invert” box!

Next

  1. Enter the Task creator (it’s not necessary to give it a name)
  2. Add an Action
  3. Pick “Custom Setting” 4. For the Type, pick “Secure”. For the Name, enter “ui_night_mode”. For the Value, enter “1”.
  4. Add another Action 6. Pick “Car Mode” -> For the Set, pick “On”
  5. Add another Action
  6. Pick “Car Mode” -> For the Set, pick “Off” – By turning Driving mode On and Off, it will trigger Dark Theme to toggle
  7. Exit out

You now have Dark theme that works based on when Night Light is enabled!

Original article as follows:

With this, whenever Night Light is enabled the Battery Saver will also toggle on, forcing the Dark Theme to appear practically everywhere in the system and in supported applications.

  1. Make a new profile and call it “Dark theme”
  2. Choose the State context
  3. Pick the System category
  4. Select the Custom Setting option
  5. For the Type, pick “Secure”. For the Name, enter “night_display_activated”. For the Value, enter “1”.

Next

  1. Enter the Task creator (it’s not necessary to give it a name)
  2. Add an Action
  3. Pick System -> Power Mode
  4. For the Mode, select “Toggle”
  5. Exit out
Enable the profile and switch on Night Light -> Battery saver should also toggle on, forcing on the dark theme. Once Night light is turned off, the battery saver will also toggle off, displaying the white theme all around.
If you want to see how this works in practice, I would recommend you to watch the short demo video in this article.
Thanks to the guys at XDA for the first half of this guide. They may be able to come up with a much better short-term solution than me, so be sure to check them out!
I have not yet been able to figure out how to turn on dark mode without using the battery saver, but I guess it’s better than nothing for now. If you happen to find out, let me know on Twitter, so I can update this article with your solution. 

LEAVE A REPLY

Please enter your comment!
Please enter your name here