Giter Club home page Giter Club logo

oneplus_battery_saver's Introduction

OnePlus Battery Saver

Introduction

This app aims to improve OnePlus battery life by managing the refresh rate.
In particular situations (Power saving mode, certain battery percentage reached), this app sets the screen frame rate to 60Hz
And then bring it back to 90Hz when everything goes back to normal
This is my first project in Android, and i would like to thank Samuele794 for mentoring me during the development of this app.

Supported Devices

Device Name Model
OnePlus Nord AC2001, AC2003
OnePlus 8 IN2013, IN2017
OnePlus 7T Pro McLaren Edition HD1925
OnePlus 7T Pro HD1911, HD1913, HD1910
OnePlus 7T HD1901, HD1903, HD1900, HD1907, HD1905
OnePlus 7 Pro 5G GM1925
OnePlus 7 Pro GM1911, GM1913, GM1917, GM1910, GM1915

Features

  • Changes the refresh rate when energy saver is enabled
  • You can set a battery percentage for triggering the refresh rate change
  • Notifies you when the refresh rate changes
  • In-App Auto Updater

Installation

  1. Install it on your phone (first check the Supported Devices section)

  2. Enable developer tools (Settings -> About Phone -> Click on "Build number" several times)

  3. Enable USB debugging (Settings -> System -> Developer options -> USB Debugging)

  4. Install & set up ADB (Tutorial Here)

  5. Plug your device in your computer and allow USB Debugging

  6. Open terminal and run this command

# Windows
adb shell pm grant com.collez.opbatterysaver android.permission.WRITE_SECURE_SETTINGS

# Linux & MacOS
./adb shell pm grant com.collez.opbatterysaver android.permission.WRITE_SECURE_SETTINGS

Special Thanks

I would like to thank 2 awesome guys that helped me a lot with this project

Name Role Github LinkedIn
Samuele794 Mentor & Developer Samuele's GitHub Samuele's LinkedIn
Ludovico Besana Designer Ludovico's GitHub Ludovico's LinkedIn

Todos

  • Add support for OnePlus 8 Pro
  • Add in-app auto updater | Added in 1.0.1
  • Support more languages

Changelogs

Click here for see the changelogs

Supported Languages

  • English
  • Italian
  • German
  • French

Contacts

You can contact me on Discord, my name is Collez#4514

Disclaimer

I do not take responsibility for any damage caused by my application, use it at your own risk

License

Apache License 2.0

© Marco Colletti 2020

oneplus_battery_saver's People

Contributors

ilcollez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

edomango05

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.