Skip to content

Android ADB Service Control Cheatsheet


Power Manager Control

svc power            

Set 'Keep Awake While Plugged In' Setting

svc power stayon [true|false|usb|ac|wireless]

Reboot the Device with the Specified Reason

svc power reboot [reason]

Power Off the Device

svc power shutdown

Force the System into Suspend, Ignoring All Wakelocks

svc power forcesuspend -t <milliseconds>

Set the Current USB Function

If the function is blank, it sets to charging.

svc usb setScreenUnlockedFunctions [function]

Get the List of Currently Enabled USB Functions

svc usb getFunctions

Reset the USB Gadget

svc usb resetUsbGadget

Get the Current USB Speed

svc usb getUsbSpeed

Get the Current Gadget HAL Version

svc usb getGadgetHalVersion

Get the Current USB HAL Version

svc usb getUsbHalVersion

Reset the Specified Connected USB Port

svc usb resetUsbPort [port number]

NFC Control

svc nfc              

System Server Process

svc system-server

Enable NFC

svc nfc enable

Disable NFC

svc nfc disable

Enable Wi-Fi

svc wifi enable

Disable Wi-Fi

svc wifi disable