使用adb shell
或设备上的终端仿真器,进入这将清除所有通知(需要su
)在哪里可以找到关于Android“服务调用”shell命令的信息?
service call notification 1
这将发送短信(不需要su
)
service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText"
在哪里可以我了解更多关于service call
?我发现this question,并感谢答案的细节,以什么意思。但我在哪里可以找到关于notification 2
可能试图呼叫的方法的信息?
运行service call
不完整,印刷这种用法:
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 list
,它与我的设备78级的服务,包括isms
和notification
和大多数服务回来后会打印什么似乎是一个命名空间( com.android.internal.telephony.ISms
对于isms
和android.app.INotificationManager
对于notification
)。我怎样才能使用这些信息来了解我可以用这些服务做些什么?
也问在http://android.stackexchange.com/q/57778/1302 –
是的,由我。我不确定哪个社区能够更好地回答我的问题。我认为两个社区都可以从中受益。 –