15 展訊Sprd設定-電池-電池溫度除錯
阿新 • • 發佈:2018-11-26
1. 展訊平臺電池溫度
1.1 開啟溫度除錯
adb shell "cat /sys/class/power_supply/battery/debug_jeita_enable"
adb shell "echo 1 > /sys/class/power_supply/battery/debug_jeita_enable"
1.2 溫度值模擬設定
adb shell "cat /sys/class/power_supply/battery/debug_jeita" adb shell "echo 1000 > /sys/class/power_supply/battery/debug_jeita"
備註
debug_jeita_enable設定值:900,則對應溫度 temperature為 -100,即 -10 攝氏度
debug_jeita_enable設定值:990,則對應溫度 temperature為 -10,即 -1 攝氏度
debug_jeita_enable設定值:1000,則對應溫度 temperature為 0,即 0 攝氏度
debug_jeita_enable設定值:1010,則對應溫度 temperature為 10,即 1 攝氏度
debug_jeita_enable設定值:1100,則對應溫度 temperature為 100,即 10 攝氏度
1.3 檢視電池廣播 adb shell dumpsys battery
C:\Users\fadi.su>adb shell dumpsys battery Current Battery Service state: AC powered: false USB powered: true Wireless powered: false Max charging current: 500000 Max charging voltage: 5000000 Charge counter: 2325000 status: 2 health: 2 present: true level: 93 scale: 100 voltage: 4312 temperature: 0 technology: Li-ion
2. MTK平臺的溫度除錯
2.1 MTK adb shell 檢視電池溫度
adb shell "cat /sys/devices/platform/battery/Battery_Temperature"
2.2 MTK adb shell 設定電池溫度
adb shell "echo 55 > /sys/devices/platform/battery/Battery_Temperature"