Discussion Overview
The discussion revolves around the existence of an API to control the "battery protection mode" on Android devices, particularly in the context of a Lenovo tablet. Participants explore the implications of battery management features and potential solutions for controlling charging behavior.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
Main Points Raised
- One participant describes the battery protection mode on their Lenovo tablet, which charges and discharges between 40% and 60% to maximize battery life.
- Another participant asserts that there is no public API for enabling or disabling this mode, noting that Android battery-related APIs are read-only.
- It is mentioned that rooted devices may have access to Magisk modules that can control this feature, while OEM-specific hidden APIs may exist but are not easily discoverable.
- Participants discuss the variability in charging implementations across different brands, with examples of how Samsung devices and an HP laptop manage charging thresholds.
- Some participants propose the idea of creating an external USB-C charging device that could adjust charging profiles based on the target device's charge state.
- Another suggestion involves using a WiFi-controlled smart mains socket to manage charging through an app, allowing for logic-based control of the charging process.
Areas of Agreement / Disagreement
Participants express differing views on the availability of APIs and solutions for controlling battery protection mode, with no consensus reached on a definitive method to achieve this control.
Contextual Notes
The discussion highlights limitations regarding the discoverability of OEM-specific APIs and the reliance on external devices for managing charging behavior.