如何阻止充电编程Android设备?设备、Android

2023-09-05 06:22:45 作者:莫名的被吸引。眼眸扦着妳

是否有停止充电,即使身体充电是在Android API?

解决方案   

是否有停止充电,即使物理上充电呢?一个Android API

AFAIK没有。

理由:

android.intent.action.BATTERY_CHANGED 是只能由系统发送一个受保护的意图。因此,你不能复制或覆盖的功能。

Is there an Android API for stop charging even though physically the charging is on?

解决方案

Android Studio Android Studio Android开发环境 v3.2.0 官方版 起点软件园

Is there an Android API for stop charging even though physically the charging is on?

AFAIK no.

Justification:

android.intent.action.BATTERY_CHANGED is a protected intent that can only be sent by the system. Therefore you cannot duplicate or override the functionality.