介绍
用来管理电源控制,无线数据,WIFI,蓝牙的电源开关,注意需要root权限。
使用说明
svc主要功能集
#svc
Available commands:
help Show information about the subcommands
power Control the power manager
data Control mobile data connectivity
wifi Control the Wi-Fi manager
usb Control Usb state
nfc Control NFC functions
#svc help #查看命令的使用
svc power子功能集
#svc power #电源控制
usage: svc power stayon [true|false|usb|ac|wireless]
Set the 'keep awake while plugged in' setting.
svc power reboot [reason]
Perform a runtime shutdown and reboot device with specified reason.
svc power shutdown
Perform a runtime shutdown and power off the device.
#svc power stayon 禁止休眠,不管电源适配和usb是否插入
#svc power root "" 设备重启
#svc power shutdown 设备关机
svc data子功能集
#svc dat