Battery & Power Android 5.0+ Risk: MODIFIES_DEVICE

Mock / Override Battery Level (0-100)

Simulates a specific battery percentage to test low-power modes and battery warnings.

Command Syntax

adb shell dumpsys battery set level
Generic Syntax: dumpsys battery set level <0-100>

Options & Parameters

Flag Description
<0-100> Simulated battery percentage.

Real-World Usage Examples

Simulate critical 5% low battery
Mocks battery to 5%.
adb shell dumpsys battery set level 5