当前位置:网站首页>Analysis of common ADB commands
Analysis of common ADB commands
2022-06-11 02:11:00 【Xiaowu knock code】
Query device list
adb devices
Install application app
adb install xx.apk
Uninstall app app
adb uninstall [-k]
View installed app Package name
adb shell pm list packages
View front desk Activity
adb shell dumpsys activity activities | grep mFocusedActivity
View the currently running APK The package name
adb shell dumpsys window | findstr mCurrentFocus
monkey app Pressure measurement
adb shell monkey -p Package name -v -v -v 200>D:AAlog.txt
app Starting time
adb shell am start com.android.settings/.HWSettings
adopt wifi Connect the phone
adb connect mobile phone IP Address :5555
open wifi Page commands
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
Open the Bluetooth setting interface
adb shell am start -a android.settings.BLUETOOTH_SETTINGS
Turn on the Bluetooth switch
adb shell svc bluetooth enable
Turn off the Bluetooth switch
adb shell svc bluetooth disable
Make a phone call
adb shell am start -a android.intent.action.CALL tel:10086
Hang up
adb shell input keyevent KEYCODE_ENDCALL
adb Designated equipment
adb -s equipment id
Open the mobile card page
adb shell am start -a android.intent.action.MAIN -n com.android.phone/.settings.MobileNetworkSettings
Open the phone call page
adb shell am start -a android.intent.action.MAIN -n com.android.contacts/.activities.TwelveKeyDialer
Enter the mobile network page
adb -s AC9XKK shell am start -a android.intent.action.MAIN -n com.android.phone/com.android.phone.MobileNetworkSettings
Increase the volume :
adb shell input keyevent 24
lower the volume :
adb shell input keyevent 25
Play / Pause :
adb shell input keyevent 85
Stop playing :
adb shell input keyevent 86
Sliding unlocking
adb shell input swipe 300 1000 300 500
Open the phone settings page
adb shell am start com.android.settings/com.android.settings.Settings
Specify program memory usage
adb shell dumpsys meminfo $package
Specify procedures CPU usage
adb shell dumpsys cpuinfo p a c k a g e Pick up closed Of Count According to the flow The amount a d b s h e l l c a t / p r o c / u i d s t a t / package Received data traffic adb shell cat /proc/uid_stat/ package Pick up closed Of Count According to the flow The amount adbshellcat/proc/uidstat/PID/tcp_rcv
Data traffic sent
adb shell cat /proc/uid_stat/$PID/tcp_snd
Specify program power consumption information
adb shell dumpsys batterystats $package | more
Comprehensive power consumption
adb shell dumpsys batterystats | more
Battery information
adb shell dumpsys battery
Check the specified procedure pid
adb shell “ps | grep $package”
Check mobile information
adb shell getprop
Check the mobile phone serial number
adb shell getprop ro.serialno
Check your phone CPU Information
adb shell cat /proc/cpuinfo
Check the phone memory information
adb shell cat /proc/meminfo
Restart the phone
apk adb reboot
Screen capture
adb shell screencap /sdcard/screen.png
record video
adb shell screenrecord /sdcard/demo.mp4
Check the log
adb logcat *:W
Check the process
adb shell ps
View real-time resource usage
adb shell top
Click on Home Button
adb shell input keyevent 3
Input text
adb shell input text hello
Transfer documents to the computer
adb pull /sdcard/test.flv /Users/fin/test.flv
Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !
These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……
If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
边栏推荐
- 【MATLAB】图像变换(傅里叶变换、离散余弦变换)
- [music] playing city of the sky based on MATLAB [including Matlab source code 1874]
- [leetcode] restore binary search tree
- [error record] Android application security detection vulnerability repair (strandhogg vulnerability | set activity component android:taskaffinity= "")
- Understand the role of before and after Clearfixafter clear floating
- [music] playing "over fire" based on MATLAB [including Matlab source code 1875]
- [winning] Title A of the 9th Teddy Cup Challenge
- Xpath Injection
- Task04: String
- [matlab] basic image operation (point operation, arithmetic operation, scaling and rotation)
猜你喜欢

How to reinstall win11 drawing tool when it is missing
![[music] playing blue and white porcelain based on MATLAB [including Matlab source code 1873]](/img/cf/63b04080867e93ab2e00e2e21b37df.jpg)
[music] playing blue and white porcelain based on MATLAB [including Matlab source code 1873]

ASEMI场效应管12N65参数,12N65规格书,12N65特征

5月B站榜单丨飞瓜数据UP主成长排行榜(B站平台)发布

Fallible point--

基于Gin、Gorm实现的在线练习系统之项目梳理

Oracle collects statistics

Programming implementation: input any English month, and output its corresponding Chinese prompt after looking up the month table. Abbreviations can also be found.

flutter_ Swiper carousel map plug-in

爱思唯尔---Elseviewer---预印本在线发表通知
随机推荐
Thoughts on small steamed stuffed bun's dividend
Complete tutorial on obtaining voltage from QGC ground station (APM voltage cannot be obtained from QGC)
Task06: bit operation
[QT] error: qapplication: no such file or directory solution
AI fanaticism | come to this conference and work together on the new tools of AI!
Fb02 edit coding block field
Video compression data set TVD
[leetcode] balanced binary tree
[leetcode] notes on recursive time value transfer and reference transfer
ACM tutorial - heap sorting
5月B站榜单丨飞瓜数据UP主成长排行榜(B站平台)发布
[matlab] image transform (Fourier transform, discrete cosine transform)
Secret
Data and electricity course design: circuit of full adder / subtractor
AI 狂想|来这场大会,一起盘盘 AI 的新工具!
Me11/me12 purchase information record and condition record creation and update bapi:me_ INFORECORD_ MAINTAIN_ MULTI
【MATLAB】图像变换(傅里叶变换、离散余弦变换)
Within one month, the broadcasting volume has increased by 9million, and station B has three traffic growth passwords!
ABAP CDs realizes multi line field content splicing
【MATLAB】图像基本运算(点运算、算术运算、缩放、旋转)