首页 > 其他分享 >adb 命令

adb 命令

时间:2023-04-21 11:45:28浏览次数:127  
标签:26 shell keyevent reboot 命令 adb input

重启:adb reboot

关机:adb shell reboot -p

#熄屏
    adb shell input keyevent 26

#检测设备
    adb devices
    sleep 2s
#亮屏
    adb shell input keyevent 26

#解锁手机屏幕

adb shell input keyevent 82

#返回主页
    adb shell input keyevent 3 #HOME事件

#打开软件 180=x 800=y(模拟点击位置 x y 通过打开usb调试-显示指针位置 调试查看)

adb shell input tap 180 800

 

标签:26,shell,keyevent,reboot,命令,adb,input
From: https://www.cnblogs.com/chenglogs/p/17339842.html

相关文章

  • android系统adb对时//京鸿通信/www.kyohoon.com/15507589165
    目录1、远程连接设备2、设置地区3、设置对时服务器4、重启设备5、查看对时服务器是否设置成功1、远程连接设备adbconnectxxx.xxx.xxx.xxx2、设置地区adbshellsetproppersist.sys.timezoneAsia/Shanghai3、设置对时服务器adbshellsettingsputglobalntp_server172.16.......
  • gitlab命令行修改登录页
    现象误操作修改了登录页的url,导致无法登录的问题修改进入gitlab容器dockerexec-itgitlab/bin/bash进入postgresql数据库命令行gitlab-psql执行更改语句UPDATEapplication_settingssethome_page_url='';重启gitlabgitlab-ctlrestart执行截图......
  • GDB多进程调试(调试命令+调试演示)
    GDB多进程调试(一)多线程调试命令(1)调试父进程:setfollow-fork-modeparent(缺省值,即默认)(2)调试子进程:setfollow-fork-modechild(3)设置调试模式:setdetach-on-fork[on|off](缺省值on)on:调试当前进程的时候,其它的进程继续运行。off:调试当前进程的时候,其它的进程被gb......
  • FlashFXP命令行
    FlashFXP是一个非常好用的FTP工具,同时也是可以使用命令行进行操作。格式:flashfxp.exe-uploadftp://user:pass@ip:port-localpath="本地路径"-remotepath="远程FTP上的路径"上传使用FlashFXP上传文件(夹)的命令行语法:flashfxp.exe-uploadftp://user:pass@ip:port-localpa......
  • SFTP文件传输基本命令
    以下是sftp的一些基本操作命令1.sftp建立连接[root@localhost~]#sftpusername@remote_ip(orremotehostname),#连接root用户,则可省略"root@".[root@localhost~]#sftp-oport=1000username@remote_ip[root@localhost~]#[email protected]......
  • Docker基础知识和命令使用入门
    Docker基础知识和命令使用入门摘要本文介绍了Docker相关的基础知识和命令的简单使用。基础知识部分包括Docker的用途和意义,Docker的镜像、容器、仓库、Dockerfile和DockerCompose的理解,以及Docker图形管理工具Portainer的基础功能。Docker命令的使用包括镜像使用......
  • 【进阶15】【自学笔记】Python运行cmd命令的几种方式
    一、pathlib的简单介绍pathlib是Python3.4及更高版本中内置的标准库,提供了一种面向对象的方式来处理文件系统路径。它为不同操作系统提供了合适的路径语义,并支持常见的文件和目录操作,比如判断路径是否存在、获取路径的各个部分、创建/删除目录等操作。二、基本操作1、获取......
  • adb 常用命令
    #获取当前activiyadbshelldumpsyswindow|findstrmCurrentFocus#获取启动时间adbshellamstart-W-Sxxx|findstrTotalTime#获取流量数据adbshellps-ef|greppackagenameadbshellcat/proc/pid/net/dev|findstrwlan0#获取内存使用情况adbshell......
  • 【进阶14】【自学笔记】Python运行cmd命令的几种方式
    1、使用os.system()函数importos#运行cmd命令os.system('dir')2、使用subprocess模块importsubprocess#运行cmd命令subprocess.run(['dir'],shell=True)3、使用os.popen()函数importos#运行cmd命令result=os.popen('dir')print(result.read......
  • hive 常用命令
       hive开启命令窗口hive--servicecli; hive--servicemetastore& 开启hivemetastore hive--servicehiveserver-p11000>/dev/null2>&1&   开启远程连接端口 hivesql文件执行方式:1>hive-ffile2hive>sourcefile  ......