adb am startservice命令启动android服务:
adb shell am startservice -n 包名/类名
adb am startservice命令启动android服务并传递参数:
adb shell am startservice -n 包名/类名 --ei aaa 30
参数解释:--ei 设置int类型的extra值
aaa 参数名
30 参数值
adb am startservice命令启动android服务:
adb shell am startservice -n 包名/类名
adb am startservice命令启动android服务并传递参数:
adb shell am startservice -n 包名/类名 --ei aaa 30
参数解释:--ei 设置int类型的extra值
aaa 参数名
30 参数值