您的位置:首页 > 移动开发 > Android开发

Android adb 命令查看系统Service

2013-09-04 19:39 477 查看
查看帮助信息

>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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐