当前位置:网站首页>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
边栏推荐
- Use split to solve the "most common words" problem
- MySQL port is occupied when building xampp
- Laravel new route file
- js递归树结构计算每个节点的叶子节点的数量并且输出
- The whole network is the most complete. How to do interface automation test? Proficient in interface automation test details
- . net core current limiting control - aspnetcoreratelimit
- 2022G2电站锅炉司炉考试题库及在线模拟考试
- 【新版发布】ComponentOne 新增 .NET 6 和 Blazor 平台控件支持
- be based on. NETCORE development blog project starblog - (1) why do you need to write your own blog?
- ASP.NET 6 中间件系列 - 自定义中间件类
猜你喜欢

2022t elevator repair test simulation 100 questions and online simulation test

LNMP MySQL allows remote access

在.NE6 WebApi中使用分布式缓存Redis

2022 P cylinder filling training test questions and simulation test
![[MySQL] left function | right function](/img/26/82e0f2280de011636c26931a74e749.png)
[MySQL] left function | right function

Impact of AOT and single file release on program performance

xutils3修改了我提报的一个bug,开心

Xamarin效果第二十一篇之GIS中可扩展浮动操作按钮

荐读 | 分享交易员的书单,向名家请教交易之道,交易精彩无比

Xamarin effect Chapter 21 expandable floating operation button in GIS
随机推荐
If the deep replication of objects is realized through C #?
Xamarin effect Chapter 22 recording effect
2022t elevator repair test simulation 100 questions and online simulation test
二进制文件版本控制工具选择难?看完这篇你会找到答案
.NET7之MiniAPI(特别篇):.NET7 Preview3
先中二叉建树
Yes Redis using distributed cache in NE6 webapi
微软是如何解决 PC 端程序多开问题的
[MySQL] left function | right function
After the mobile phone is connected to the computer, how can QT's QDIR read the mobile phone file path
Tencent video VIP member, weekly card special price of 9 yuan! Tencent official direct charging, members take effect immediately!
软件测试相关知识~
[new version release] componentone added Net 6 and blazor platform control support
C syntax sugar empty merge operator [?] And null merge assignment operator [? =]
Vs code setting line feed
Use of slice grammar sugar in C #
12.<tag-链表和常考点综合>-lt.234-回文链表
一文了解全面静态代码分析
Tips in MATLAB
MAUI初体验:爽