adb shell input keyevent 224 # 点亮屏幕 adb shell input keyevent 223 # 熄灭屏幕 # 点击屏幕 adb shell input tap <X> <Y> # x,y为坐标位置 # 滑屏 起始点x坐标 起始点y坐标 结束点x坐标 结束点y坐标。 adb shell input swipe 300 1000 300 500 # 向上滑动 adb shell input swipe 300 100 30...
adb shell input text"insert%stext%shere" 注意:%s表示空格。 使用adb shell input tap命令来模拟屏幕点击事件,例如: 代码语言:javascript 代码运行次数:0 复制 Cloud Studio代码运行 adb shell input tap5001450 表示在屏幕上(500,1450)的坐标点上进行一次点击。 使用adb shell input swipe命令来模拟手势滑动事件,...
rem 执行滑动操作 adb shell input swipe%startX%%startY%%endX%%endY%rem 等待一段时间 timeout/t2/nobreak>nul rem 检查是否还能继续滑动set/a checkY=startY-500adb shell input swipe%startX%%startY%%endX%%checkY%timeout/t2/nobreak>nul adb shell dumpsys input_method|findstr/c:"mInputShown=false"...
adb shell swip <起点x> <起点y> <终点x> <终点y> <滑动时长> adb shell input swipe 520 331 520 1017 2000 2000为滑动时间,单位是毫秒 - 返回键 adb shell input keyevent 4 - 返回home键(置应用于后台) adb shell input keyevent 3 - 音量放大 adb shell input keyevent 24 - 音量缩小 adb sh...
方法1: 使用input swipe命令 input swipe命令可以模拟滑动手势,从而实现滚动效果。你需要指定滑动的起始点和终止点的坐标,以及滑动的持续时间。 示例 假设你想从屏幕的中间向上滑动,以实现向下滚动的效果: 代码语言:javascript 复制 adb shell input swipe50015005005001000 ...
adb = 'adb shell input swipe %s %s %s %s '%(x,y,x1,y1) os.popen(adb) # 模拟按键 def keyevent(self,k): adb = 'adb shell input keyevent %s'%k os.popen(adb) if __name__ == '__main__': adb = input() adb.text(1111) ...
adb shell pm list packages -3 #三方应用 adb shell pm list packages | findstr bluetooth #过滤应用 管道符进行搜索,Linux下使用grep 2).查看应用的Activity信息 adb shell dumpsys package com.android.bluetooth #查看系统应用蓝牙的包名信息 adb shell dumpsys activity activities #查看所有的活动程序包名 ...
三、adb shell终端 1.进入和退出 2.input keyevent 3.input tap 4.input swipe 6.screencap命令 7.获取手机屏幕分辨率 5.同linux文件系统 (1)ls (2)pwd (3)cd (4)rm (5)mkdir (6)touch (7)cp (8)mv 四、总结 1.截图并传输到电脑上
adb shell input keyevent 87 # 播放下一首 adb shell input keyevent 88 # 播放上一首 adb shell input keyevent 126 # 恢复播放 adb shell input keyevent 127 # 暂停播放 1. 2. 3. 4. 5. 6. 点亮/熄灭屏幕 可以通过上 模拟电源键 来切换点亮和熄灭屏幕,但如果明确地想要点亮或者熄灭屏幕...
adbshell adb常用命令 1.模拟点击 adb shell input tap 100 100 2.滑动 adb shell input swipe x1 y1 x2 y2 adb input touchscreen swipe x1 y1 x2 y2 100 adb shell input swipe 100 100 400 100 300 #左往右 adb shell input swipe 400 100 100 100 300 #右往左 ...