本文共 1340 字,大约阅读时间需要 4 分钟。
下面介绍命令的传递参数
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.
列出系统所有的服务,但是这里不包含第三方应用的服务,例如我们可以导出文件查看
adb shell service list > C:\Users\fadi.su\Desktop\ListService.txt
Found 153 services:0 GpuAppSpectatorService: [com.mediatek.GpuAppSpectatorService]1 carrier_config: [com.android.internal.telephony.ICarrierConfigLoader]2 phoneEx: [com.mediatek.internal.telephony.IMtkTelephonyEx]3 phone: [com.android.internal.telephony.ITelephony]4 imtksms: [com.mediatek.internal.telephony.IMtkSms]5 iphonesubinfoEx: [com.mediatek.internal.telephony.IMtkPhoneSubInfoEx]6 mtksimphonebook: [com.mediatek.internal.telephony.phb.IMtkIccPhoneBook]7 isms: [com.android.internal.telephony.ISms]8 iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo]9 simphonebook: [com.android.internal.telephony.IIccPhoneBook]10 telecom: [com.android.internal.telecom.ITelecomService]
转载地址:http://twjti.baihongyu.com/