ADB文本输入

ws://127.0.0.1:33332/

接口描述

ADB文本输入

请求参数

application/json
参数名
类型
描述
必填
id
String
自定义传入一个ID 响应数据也会返回相同ID
可选
type
String
例子:adbinput
必填
serial
array
必须要包含:[] ---- 全部设备=[] 指定单个设备=["qeh8ea1s"] 指定多个设备=["qeh8ea1s","r515aaa"] 序列号通过【获取序列号】接口获取
必填
data
json
例子:{"Text":"abc123测试"}
必填
Text
String
例子:abc123测试
必填

响应参数

参数名
类型
描述
必填
state
int
0=成功 非0=失败
必填
message
String
返回错误信息
必填
data
json
{"state":0,"message":"","data":{"172.16.0.180:5555":"Broadcasting: Intent { act=ADB_INPUT_TEXT flg=0x400000 (has extras) }\nBroadcast completed: result=0\n","172.16.0.53:5555":"Broadcasting: Intent { act=ADB_INPUT_TEXT flg=0x400000 (has extras) }\nBroadcast completed: result=0\n"}}
必填

说明 / 示例

**请求示例**:`{"id":"abc123456","type":"adbinput","serial":[],"data":{"Text":"abc123测试"}}` **返回数据**:`{"id":"abc123456","state":0,"message":"","data":{"172.16.0.180:5555":"Broadcasting: Intent { act=ADB_INPUT_TEXT flg=0x400000 (has extras) }\nBroadcast completed: result=0\n","172.16.0.53:5555":"Broadcasting: Intent { act=ADB_INPUT_TEXT flg=0x400000 (has extras) }\nBroadcast completed: result=0\n"}}`