摘要:
MTK BatteryWarning在mediatek/external/batterywarning下,会编译生成一个可执行文件:batterywraningmain()函数中,会间断读取 /sys/devices/platform/mt-battery/BatteryNotify 文件(该文件中记录的当前电池所处的环境),根据读取的值来判断电池所处的环境:CHARGER_OVER_VOLTAGE1BATTER_OVER_TEMPERATURE2OVER_CURRENT_PROTECTION4BATTER_OVER_VOLTAGE8SAGETY_TIMER_TIMEOUT16根据读取的值来启 阅读全文