https://github.com/android/platform_frameworks_base/blob/marshmallow-release/packages/SystemUI/docs/demo_mode.md
adb shell settings put global sysui_demo_allowed 1
adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 0 -e plugged false
2. 發 battery change,但是很容易被改掉
adb shell am broadcast -a android.intent.action.BATTERY_CHANGED --ei level 9
adb shell am broadcast -a android.intent.action.BATTERY_CHANGED --ei level 9
3. 直接改 driver ,利用 存取節點,這個方法的好處是,連系統狀態都會猶如低電量
echo 10 > /sys/class/power_supply/battery/capacity
echo 10 > /sys/class/power_supply/battery/capacity
沒有留言:
張貼留言