C:\Users\Administrator>adb version
Android Debug Bridge version 1.0.41
Version 30.0.4-6686687
Installed as E:\platform-tools\adb.exe
C:\Users\Administrator>adb devices
List of devices attached
127.0.0.1:7555 device
C:\Users\Administrator>adb get-serialno
127.0.0.1:7555
C:\Users\Administrator>adb shell getprop ro.product.model
Xiaomi
C:\Users\Administrator>adb shell wm size
Physical size: 1440x810
C:\Users\Administrator>adb shell cat /sys/class/net/wlan0/address
08:00:27:7e:49:9c
C:\Users\Administrator>adb logcat
C:\Users\Administrator>adb shell dumpsys battery
Current Battery Service state:
AC powered: true
USB powered: false
Wireless powered: false
Max charging current: 2000000
status: 2
health: 2
present: true
level: 72
scale: 100
voltage: 4036
temperature: 326
technology: Li-poly
C:\Users\Administrator>adb shell ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 2732 1272 ep_poll 08126b35 S /init
root 2 0 0 0 kthreadd 00000000 S kthreadd
root 3 2 0 0 smpboot_th 00000000 S ksoftirqd/0
root 5 2 0 0 worker_thr 00000000 S kworker/0:0H
C:\Users\Administrator>adb shell top
C:\Users\Administrator>adb install douyin.apk
Performing Push Install
C:\Users\Administrator>adb -s 127.0.0.1:7555 install douyin.apk
Performing Push Install
C:\Users\Administrator>adb install -r douyin.apk
Performing Push Install
C:\Users\Administrator>adb uninstall douyin.apk
C:\Users\Administrator>adb uninstall -k douyin.apk
C:\Users\Administrator>adb shell pm list packages
package:com.rxgx.xx.ldzw
package:com.tanwan.h5.xrxhj
package:com.xinxin.mobile.dsfh
package:com.xinxin.mobile.llwg
package:com.android.providers.telephony
package:com.xinxin.H5.jbdfhyc
package:com.ss.android.ugc.aweme
C:\Users\Administrator>adb shell dumpsys package com.ss.android.ugc.aweme | findstr activity
ad29111 com.ss.android.ugc.aweme/com.ss.android.sdk.activity.BootstrapActivity
C:\Users\Administrator>adb shell am start -n com.ss.android.ugc.aweme/com.ss.android.sdk.activity.BootstrapActi
vity
Starting: Intent { cmp=com.ss.android.ugc.aweme/com.ss.android.sdk.activity.BootstrapActivity }
C:\Users\Administrator>adb shell screencap /sdcard/screen.png
adb shell screenrecord [保存路径]
C:\Users\Administrator>adb shell screenrecord /sdcard/demo.mp4
adb push 文件名 手机端SDCard路径
C:\Users\Administrator>adb push douyin.apk sdcard/douyin.apk
adb pull [手机上文件路径]
C:\Users\Administrator>adb pull sdcard/douyin.apk
adb shell input tap x坐标轴 y坐标轴
C:\Users\Administrator>adb shell input tap 500 1450
adb shell input swipe 开始x轴 开始y轴 结束x轴 结束y轴 过程持续时间毫秒
C:\Users\Administrator>adb shell input swipe 100 500 100 1450 100
adb shell input keyevent [key值]
C:\Users\Administrator>adb shell input keyevent 25
db shell input text [字符串信息]
%s是空格
C:\Users\Administrator>db shell input text "insert%stext%shere"
adb shell am broadcast -a "broadcastactionfilter"
C:\Users\Administrator>adb shell am broadcast -a "broadcastactionfilter"
adb shell am start -a [浏览器包名] -d [网址]
C:\Users\Administrator>adb shell am start -a "android.intent.action.VIEW" -d "https://www.google.com"
adb vivoroot
C:\Users\Administrator>adb vivoroot
adb remount
C:\Users\Administrator>adb remount
C:\Users\Administrator>adb reboot
重启手机到recovery
C:\Users\Administrator>adb reboot recovery
重启到bootloader界面
C:\Users\Administrator>adb reboot bootloader
C:\Users\Administrator>adb kill-server
C:\Users\Administrator>adb start-server