Giter Site home page Giter Site logo

battery-shutdown-manager-for-android's Introduction

Battery-Shutdown-Manager-for-Android

An alternative to Battery Shutdown Manager Xposed Module I had published it here:https://xdaforums.com/t/xposed-battery-shutdown-manager.3105014/post-86652591 but i can't apport modifications so i will put updates here

In brief, this module is to replace the old Xposed Battery Shutdown Manager: when battery reaches 5% it will set battery on charging even if no cable is connected freezing the battery state, then when you will connect the charger you can press the battery reset shortcut to bring battery state to normal.

To set it up, import "Battery_Shutdown_Manager.macro" and "Battery_reset.macro" into Macrodroid, then create a shortcut to the home screen for the Battery_reset.macro. In case like me your rom refuses to run the Battery_Shutdown_Manager.macro command from inside the macro you can instead import the "Battery_Shutdown_Manager_DerpFest.macro" which executes a script in /data/local/tmp with the command, to setup this script:

adb push batteryshutdown.sh /data/local/tmp

adb shell

su

cd /data/local/tmp

chown root:root batteryshutdown.sh

chmod 777 batteryshutdown.sh

chmod +s batteryshutdown.sh

this will give the script the maximum power possible, while it may not be necessary i would do it, technically just "chown root:root batteryshutdown.sh && chmod +x batteryshutdown.sh" should do the trick but if you want to unlock the script max power i gave you a way.

battery-shutdown-manager-for-android's People

Contributors

skorpion96 avatar

Watchers

 avatar

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.