Giter Club home page Giter Club logo

op-dark-mode's Introduction

+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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.