gpt4 book ai didi

adb - 使用 adb shell 的短信不起作用

转载 作者:行者123 更新时间:2023-12-01 00:47:11 34 4
gpt4 key购买 nike

我正在尝试通过 adb shell am 和 adb shell service call 发送短信。我都收到错误消息。
a) 我正在尝试按照 adb shell am 命令发送短信

adb shell am start -a android.intent.action.SENDTO -d sms:"phoneNumber" --es   sms_body "SMS BODY GOES HERE" --ez exi
t_on_sent true adb adb shell input keyevent 66

我收到错误 -
Starting: Intent { act=android.intent.action.SENDTO dat=sms:xxxxxxxxxxxx pkg=BODY (has extras) }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.SENDTO dat=sms:xxxxxxxxxxxx flg=0x1000
0000 pkg=BODY (has extras) }

b) 当通过服务单元发送时
adb shell service call isms 5 s16 "phonenumber" i32 0 i32 0 s16 "BodyText"

结果-
Result: Parcel(
0x00000000: ffffffff 00000061 006f0043 00790070 '....a...C.o.p.y.'
0x00000010: 006e0069 00200067 0065006d 00730073 'i.n.g. .m.e.s.s.'
0x00000020: 00670061 00200065 006f0074 00490020 'a.g.e. .t.o. .I.'
0x00000030: 00630063 0020003a 0065004e 00740069 'c.c.:. .N.e.i.t.'
0x00000040: 00650068 00200072 00730075 00720065 'h.e.r. .u.s.e.r.'
0x00000050: 00320020 00300030 00200030 006f006e ' .2.0.0.0. .n.o.'
0x00000060: 00200072 00750063 00720072 006e0065 'r. .c.u.r.r.e.n.'
0x00000070: 00200074 00720070 0063006f 00730065 't. .p.r.o.c.e.s.'
0x00000080: 00200073 00610068 00200073 006e0061 's. .h.a.s. .a.n.'
0x00000090: 00720064 0069006f 002e0064 00650070 'd.r.o.i.d...p.e.'
0x000000a0: 006d0072 00730069 00690073 006e006f 'r.m.i.s.s.i.o.n.'
0x000000b0: 0052002e 00430045 00490045 00450056 '..R.E.C.E.I.V.E.'
0x000000c0: 0053005f 0053004d 0000002e '_.S.M.S..... ')

但是我的设备上没有短信。

请帮我弄清楚这两种情况下都缺少什么。

谢谢 !!!

最佳答案

可能号码有问题。尝试不加引号。
你有没有试过这个:

adb shell am start -a android.intent.action.SENDTO -d sms:+1-222-333-4444
adb shell input text "sampletexthere"
adb shell input keyevent 66

关于adb - 使用 adb shell 的短信不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33562519/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com