查看帮助信息
>adb shell service
Usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 INT | s16 STR] ...
Options:
i32: Write the integer INT into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
查看Service列表
>adb shell service list
Found 1 services:
0 phone: [com.android.internal.telephony.ITelephony]
检查Service是否存在
>adb shell service check phone
Service phone: found
使用Service
>adb shell service call phone 2 s16 "10086"
android 4.4手机,上述不能使用,提示:
C:\Users\weborn@cinc.com>adb shell service
Usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 INT | s16 STR] ...
Options:
i32: Write the integer INT into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
本文介绍了如何使用 ADB shell service 命令来查看 Android 设备上的服务列表、检查服务是否存在以及调用服务。包括了具体的命令格式与选项说明,并提供了实例演示。
2351

被折叠的 条评论
为什么被折叠?



