当前位置:网站首页>Use of ADB command [1]
Use of ADB command [1]
2022-04-23 03:12:00 【A happy wild pointer D】
adb:Android Commissioning Bridge , That is, connect your phone and PC End bridge , It allows users to operate the mobile phone on the computer .
1. How to connect
Real machine : Use USB Connect , The phone needs to turn on developer mode ;
Simulator :adb connect domain name : Port number ( Such as 127.0.0.1:62001)
2. View connected devices :adb devices
device: Indicates that the device is connected normally
3. Restart the device :adb reboot
4. obtain root jurisdiction :adb root
adb remount: Remount the system partition of Android , Make the system partition readable and writable . To be in root Then use .
5. install app:adb install apk The path of the package
adb install -d -r F:\ The squalid \QQMusic72282.apk
-d Degraded installation
-r Overlay installation : Overwrite the original package
6. uninstall app
First know the package name of the software , Reuse uninstall Command uninstall .
Check the package name of all software on the mobile phone :adb shell pm list packages
View the currently running package name :adb shell dumpsys window|findstr mCurrentFocus
uninstall :adb uninstall Package name ( If you uninstall wechat :com.tencent.mm)
7. Transfer files
The computer → mobile phone :adb push The path of the file in the computer The path stored on the phone
mobile phone → The computer :adb pull The path of the file on the mobile phone The path to the computer
Generally speaking , No, root These two commands are not available when permission is .
8. Check the log
adb logcat: View all logs , There are many, many ,ctrl+c Stop viewing .
adb logcat *: Grade (E/I/W/D): View the log of the specified level .E—Error,I—INFO,W—WARNING,D—DEBUG.
adb logcat > File path : Output the log to a file .
Simple way : stay Android Studio Of logcat The window to see . So let's create one Project And the empty Activity, You can see in a series of window bars below logcat The window .
版权声明
本文为[A happy wild pointer D]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220627538062.html
边栏推荐
- Load view Caton
- What kind of experience is it to prepare for a month to participate in ACM?
- Swap the left and right of each node in a binary tree
- Laravel new route file
- Use of metagroup object tuple in C
- Top ten project management software similar to JIRA
- Establishing and traversing binary tree
- 腾讯视频VIP会员,周卡特价9元!腾讯官方直充,会员立即生效!
- 使用DFS来解决“字典序排数”问题
- 先中二叉建树
猜你喜欢
Ningde's position in the times is not guaranteed?
2022 Shandong Province safety officer C certificate work certificate question bank and online simulation examination
全网最全,接口自动化测试怎么做的?精通接口自动化测试详解
2022A特种设备相关管理(电梯)上岗证题库及模拟考试
Mise en service PID du moteur de codage (anneau de vitesse | anneau de position | suivant)
Aspnetcore configuration multi environment log4net configuration file
OLED多级菜单记录
Small companies don't make formal offers
2022 P cylinder filling training test questions and simulation test
ASP. Net 6 middleware series - execution sequence
随机推荐
Due to 3 ²+ four ²= five ², Therefore, we call '3,4,5' as the number of Pythagorean shares, and find the array of all Pythagorean shares within n (including n).
OLED多级菜单记录
2022山东省安全员C证上岗证题库及在线模拟考试
Preview of converting doc and PDF to SWF file
c#语法糖模式匹配【switch 表达式】
一套关于 内存对齐 的C#面试题,做错的人很多!
数据挖掘系列(3)_Excel的数据挖掘插件_估计分析
《C语言程序设计》(谭浩强第五版) 第8章 善于利用指针 习题解析与答案
荐读 | 分享交易员的书单,向名家请教交易之道,交易精彩无比
A set of C interview questions about memory alignment. Many people make mistakes!
Improvement of ref and struct in C 11
使用两种方法来解决“最大回文数乘积”问题
研讨会回放视频:如何提升Jenkins能力,使其成为真正的DevOps平台
Maui initial experience: Cool
The most understandable life cycle of dependency injection
. net core current limiting control - aspnetcoreratelimit
Response processing of openfeign
Impact of AOT and single file release on program performance
交换二叉树中每个结点的左和右
Xamarin effect Chapter 22 recording effect