adb shell "dumpsys window | grep mCurrentFocus"

结果

adb命令 常用命令记录

 

查看栈信息

adb shell dumpsys activity activities

app启动时间

adb shell am start -W packagename/activityname

查看当前设备全部包名

adb shell pm list packages

查看指定包名的全部信息

adb shell dumpsys package 包名

录制视频

adb shell screenrecord --size 400x800 /sdcard/demo.mp4

截图

adb shell screencap -p /sdcard/screen.png

Ping网络

adb shell ping www.baidu.com

格式

ping[-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] [hop1 ...] destination

一些公共地址

        final String dns114 = "114.114.114.114";
        final String dnsAli = "223.5.5.5";
        final String dnsBaidu = "180.76.76.76";
        final String dnsGoogle = "8.8.8.8";
        final String dnsOpen = "208.67.222.222";

 

 

 

end

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2021-09-28
  • 2021-01-29
猜你喜欢
  • 2021-11-14
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-11-14
相关资源
相似解决方案