1.查看幫助信息
E:\adbTools>adb shell service
Usage: service [-h|-?]
? ? ? service list
? ? ? service check SERVICE
? ? ? service call SERVICE CODE [i32 N | i64 N | f N | d N | s16 STR ]
Options:
? i32: Write the 32-bit integer N into the send parcel.
? i64: Write the 64-bit integer N into the send parcel.
? f:? Write the 32-bit single-precision number N into the send parcel.
? d:? Write the 64-bit double-precision number N into the send parcel.
? s16: Write the UTF-16 string STR into the send parcel.
2?查看Service列表
adb shell service list
E:\adbTools>adb shell service list
Found 133 services:
0? ? ? sip: [android.net.sip.ISipService]
1? ? ? qti.ims.ext: [org.codeaurora.ims.internal.IQtiImsExt]
2? ? ? carrier_config: [com.android.internal.telephony.ICarrierConfigLoader]
3? ? ? phone: [com.android.internal.telephony.ITelephony]
4? ? ? extphone: [org.codeaurora.internal.IExtTelephony]
5? ? ? isms: [com.android.internal.telephony.ISms]
6? ? ? iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo]
7? ? ? simphonebook: [com.android.internal.telephony.IIccPhoneBook]
8? ? ? telecom: [com.android.internal.telecom.ITelecomService]
9? ? ? sms-sec: [com.android.internal.telephony.ISmsSecurityService]
10? ? ? isub: [com.android.internal.telephony.ISub]
11? ? ? cneservice: [com.quicinc.cne.ICNEManager]
12? ? ? contexthub: [android.hardware.location.IContextHubService]
13? ? ? netd_listener: [android.net.metrics.INetdEventListener]
3.?檢查Service是否存在
E:\adbTools>adb shell service check sip
Service sip: found