当前位置:网站首页>Nocturnal simulator: ADB command
Nocturnal simulator: ADB command
2022-04-22 05:52:00 【Ha! Xiaobai wants to grow!】
Learn more about , visit :CSDN Blogger Dongs The article of adb Download, install and use
List of articles
Common command
start-up adb server command :adb start-server
stop it adb server command :adb kill-server
Query connected devices / Simulator :adb devices
adb devices Commands often have the following problems :
offline —— Indicates that the device is not connected successfully or is not responding ;
device —— The device is connected ;
no device —— No equipment / Simulator connection ;
List of devices attached The back is empty —— equipment / Simulator is not connected to adb Or no response
1、 Connect the night God Simulator
adb connect 127.0.0.1:62001
2、 Connection check :
adb devices
list The content in the list indicates that the connection is successful

3、 Close the connection
When a port is already occupied by a connection , No new connections can be opened on this port , You need to turn off the program that used to occupy this port first
# See what process is using the port
netstat -aon | findstr " Port number "
# View the task name of the process
tasklist | findstr " Process number "
# Turn off the process
taskkill /f /pid Process number
other
#push File to mobile
adb push D:\czg\mobileData\czgQrCode.jpg /sdcard/czgDownload
adb push F:\1.png storage/emulated/legacy/DCIM/Camera/
#push Directory to phone mobileData This directory copy--》 To collect sd Card czgDownlaod Catalog
adb push D:\czg\mobileData /sdcard/czgDownload/
adb push D:\czg\czgDownload /sdcard/
#pull Mobile phone files to the computer ( Pay attention to git Bash The command line cannot be used )
adb pull /sdcard/czgDownload/EnMicroMsg.db d:/czg/
# Opening service
am startservice -n com.zan.input/com.zan.input.service.ImageService
# Connecting hosts [:PORT] adopt TCP/IP Connect to device [ Default port =5555] - For example, Huawei cloud mobile phones
adb connect 127.0.0.1:1234
# Update mobile gallery
high
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/emulated/0/DCIM/Camera/
low
adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///storage/emulated/legacy/DCIM/Camera/
#adb shell How to select a specific device
adb devices # Show which devices are connected
adb -s emulator-5556 shell {
command} Send the specified command
#ADB Very powerful , Remember some ADB Commands help improve efficiency
https://zmywly8866.github.io/2015/01/24/all-adb-command.html
see Android Mobile phone arm edition
# see cpu
adb shell getprop ro.product.cpu.abi
# Other information
adb shell cat /system/build.prop
adb shell cat /proc/cpuinfo
# See if it is armeabi-v7a etc.
getprop|grep arm
版权声明
本文为[Ha! Xiaobai wants to grow!]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220536391564.html
边栏推荐
猜你喜欢
随机推荐
excel的相对引用和绝对引用
Full Permutation (backtracking) template
AcWing 1096. 地牢大师(三维 BFS)代码详细注释
Niuke practice match 97
0 / 1 knapsack problem (dynamic programming + dynamic programming optimization)
数据挖掘——数据预处理
Force buckle 876 Intermediate node of linked list
Basic usage and common exceptions of homebrew
Force buckle 237 Delete specified node list
最大连续子序列和(枚举+分治+在线处理)
LeetCode 1591. 奇怪的打印机 II --判断排序
Circular linked list 2
imencode 源码解读
等腰三角形-第九届蓝桥省赛-C组
Data processing code record
判断链表是否有环(集合&快慢指针)
cookie 和 session 的区别
How to use on duplicate key update in MySQL
Pseudo code block writing (for paper writing)
蓝桥杯31天冲刺 Day16









