tommasoberlose / op-dark-mode

Dark mode toggle for OnePlus devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

+1 Dark Mode

Get one of the best Android 10 features with some custom automatic trick.

OnePlus devices are missing a fundamental Android 10+ feature: the dark mode.
Get a quick settings tile and enable a few automatic tricks to get the best from the Dark Theme.

Help me developing with feedback and support me on how you can.


Grant the permission WRITE_SECURE_SETTINGS

  1. Enable Developer Options.

Go to the system settings, open the device info screen (where there is the Android version), then tap 7 times on Build Number.

  1. Enable USB Debugging

Open the Developer Options setting and enable USB Debugging.
Connect your phone to the computer via USB cable. If a popup is displayed on your device, click Allow.

  1. Download ADB

Download ADB (Android Drive Bridge) from here and install it on your computer.

  1. Grant the permission

Open a terminal and move to the folder where you have installed the ADB.
Then run the follow command:

./adb shell pm grant com.tommasoberlose.darkmode android.permission.WRITE_SECURE_SETTINGS

Based on your OS you'll need to execute the command ./adb [...] or .\adb [...].

  1. Restart the app

If everything worked you can restart the app and start using the Dark Mode on your device.


License

Copyright (C) 2017-2020 Tommaso Berlose (http://tommasoberlose.com)

Another Widget binaries and source code can be used according to the MIT Licence.

About

Dark mode toggle for OnePlus devices

License:MIT License


Languages

Language:Kotlin 100.0%