电量只有百分之三强制关机
frameworks/base/services/java/com/android/server/BatteryService.java
@@ -289,7 +289,7 @@ public final class BatteryService extends Binder {
private void shutdownIfNoPowerLocked() {
// shut down gracefully if our battery is critically low and we are not powered.
// wait until the system has booted before attempting to display the shutdown dialog.
- if (mBatteryProps.batteryLevel == 0 && !isPoweredLocked(BatteryManager.BATTERY_PLUGGED_ANY)) {
+ if (mBatteryProps.batteryLevel == 3 && !isPoweredLocked(BatteryManager.BATTERY_PLUGGED_ANY)) {
mHandler.post(new Runnable() {
@Override
public void run() {
mediatek/platform/mt6582/lk/mt_battery.c
@@ -24,7 +24,7 @@
/*****************************************************************************
* Type define
****************************************************************************/
-#define BATTERY_LOWVOL_THRESOLD 3450
+#define BATTERY_LOWVOL_THRESOLD 3500
/*****************************************************************************