Don't charge the battery but use connected power to run the phone


Question

Answers to this question Is power consumed from battery to run the phone when charging? explain how charging while phone is in use does both - charging the battery and powering the on going activities.



My question is different — Can I stop charging the battery but use the connected power for ongoing activities?



Why do I want to do this?





and




  • at the same time use the charging power to keep running the phone without any heat stress on battery, thus extending battery life.


  • Also the battery is not drained, enabling me to use the phone for longer time without charging




Edit : I am not looking for dedicated cables or hardware that can possibly do this


Answer

Yes, it's possible if your device is rooted running Advanced Charging Controller-Acc Magisk module
and device kernel supports (see currently known list at the end of answer. For more join telegram
)



  • Battery Idle Mode: To activate this feature at a user defined battery level.


And/Or



  • Custom Charging Voltage Limits: Activates this feature at a user defined voltage level. This method is superior to first method since granular voltage control is possible Keep in mind that battery charge level is not an accurate indication of voltage. Kernels that support this, include support for first mode too.


First step is to configure charging to be stopped at a safe level, in my case, 75%, using the Acc module


Next step is to use the charging power to run the phone only


How does it work?


In either methods (battery idle mode or Voltage based) , the charger is fooled into "believing" temperature conditions aren't good for charging (either the reported battery temperature is too high or too low, so battery charging is discontinued as a safety precaution).


That means the device is drawing power from the external power supply alone - which is exactly what we wanted! And the battery doesn't get drained because it is not being used (of course over a long period of time it would drop a percentage point. As an example I used the device to surf for 4 hours, mostly YouTube videos and lost just 1% of battery)


On my OnePlus 7, battery idle mode is supported by Kirisakura kernel. Interestingly, beta versions of stock ROM have this feature in stock kernel but one doesn't know if it makes it to next stable version (Edit : Stock kernel on 10.3.2 supports idle battery mode as verified by me)


When this feature is running, a low USB equivalent power is fed to the phone and conventional charging indicators show charging with zero power. Note that the second screenshot (Ampere app) shows "not charging" and no word about discharging, so the battery is at status quo. Normally, such apps show a binary status, either charging or discharging. Here, you see the difference


enter image description here


enter image description here


This screenshot below is from ACCA (Acc App, optional companion app of Acc magisk module ) which offers all the command line options (believe me, a ton of them) in a user friendly GUI. It shows battery charging idle mode at 75%


enter image description here




Support Battery Idle Mode



  • Asus Zenfone Max Pro M1

  • Essential Phone

  • Lenovo K5 Pro L38041 (kunlun)

  • Motorola Moto G4 Play

  • OnePlus 7/Pro

  • Xiaomi Redmi 3 (ido)

  • Xiami Redmi Note 8

  • Pixel 4a on Android 11 (not initially but in subsequent updates) and Android 12.


Support Custom Max Charging Voltage



  • Essential Phone

  • Lenovo K5 Pro L38041 (kunlun)

  • Xiami Redmi Note 8
    ...


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes