System Settings Android 5.0+ Risk: READ_ONLY

Get Keep Screen Awake on Charge

Queries whether display remains awake while connected to USB charger.

Command Syntax

adb shell settings get secure stay_on_while_plugged_in
Generic Syntax: settings get secure stay_on_while_plugged_in

Real-World Usage Examples

Execute command
Queries whether display remains awake while connected to USB charger.
adb shell settings get secure stay_on_while_plugged_in