当前位置:网站首页>ADB instruction sorting
ADB instruction sorting
2022-07-27 07:18:00 【HMM, Wen's study notes】
【 Reference documents 】
[1] Google Doc
1. brief introduction
ADB, namely Android Debug Bridge It is a kind of simulator or connected Android Command line tool for device communication .
2. The main function
The bridge between mobile terminal and client .
(1) Run on the device Shell command ;
(2) Will local APK The software is installed into the simulator or Android equipment ;
(3) Manage scheduled ports on the device or phone emulator .
3. form
(1) client
eg. mobile phone
This component sends commands . The client runs on the development computer . You can send adb The command calls the client from the command line terminal .
(2) daemon
eg. Functional procedures
This component runs commands on the device . The daemon runs as a daemon on each emulator or device instance .
(3) The server
eg. Computer
This component manages the communication between the client and the daemon . The server runs as a background process on the development computer .
4. Commonly used instructions
| command | function |
|---|---|
| adb help | adb documentation |
| adb device | Check the connected device number |
| adb shell | Get into adb The first instruction before debugging |
| adb install apk Package name | In the computer apk Install the file to the mobile terminal |
| adb root | root mobile phone , Superuser rights |
| adb reboot | Restart the phone |
| adb remount | Have the permission to replace files |
adb push < Computer path > < Mobile path > | Upload files from your computer to your mobile phone |
adb pull< Mobile path >< Computer path > | Copy the files on your mobile phone to your computer |
notes :adb remount’ take ‘/system’ Partially placed in writable mode , By default ‘/system’ Part is read-only . Applied to the default scenario of the system .
This command only applies to those that have been root The equipment .‘adb remount’ Is equivalent to ‘adb shell mount -o rw,remount,rw /system’.
5. What happened
(1) If the connection is not successful
Restart your phone or computer ,adb start-serve End of the first adb service ,adb kill-serve Reopen adb service .
(2)adb The authority is wrong
adb: error: stat failed when trying to push to /product/overlay/: Permission denied
adb root obtain root jurisdiction
adb disable-verity Turn off the partition detection function
adb reboot perform adb disable-verity You need to restart the device after
adb root Get again after device restart root jurisdiction
adb remount send system The partition is in read-write mode
边栏推荐
- 基于SSM实现的校园新闻发布管理系统
- A Competitive Swarm Optimizer for Large Scale Optimization
- How does golang assign values to empty structures
- Talk about multimodality of fire
- Brief introduction of simulation model
- AI: play games in your spare time - earn it a small goal - [Alibaba security × ICDM 2022] large scale e-commerce map of risk commodity inspection competition
- 零号培训平台课程-2、SSRF基础
- C#时间相关操作
- Pytorch notes: td3
- Interpretation of deepsort source code (VII)
猜你喜欢

Quartus:往别人的工程添加.v文件报错

Consideration on how the covariance of Kalman filter affects the tracking effect of deepsort

大疆livox定制的格式CustomMsg格式转换pointcloud2

Quartus: an error is reported when adding a.V file to someone else's project

Cass11.0.0.4 for autocad2010-2023 dog free usage

MySQL2

Analysis of strong tennis cup 2021 PWN competition -- babypwn

高级IO提纲

Pytorch notes: td3

Book borrowing management system based on SSM
随机推荐
MySQL query operation index optimization practice
火狐浏览器,访问腾讯云服务器的时候,出现建立安全连接失败的问题。
Working principle analysis of deepsort
基于SSM图书借阅管理系统
Interpretation of deepsort source code (6)
Error in running code: libboost_ filesystem.so.1.58.0: cannot open shared object file: No such file or directory
Interpretation of deepsort source code (V)
Digital image processing -- Chapter 3 gray scale transformation and spatial filtering
(转帖)eureka、consul、nacos的对比1
Digital image processing - Chapter 6 color image processing
How to learn C language? This article gives you the complete answer
Drools(5):Drools高级语法
Codeforces Round #804 (Div. 2)(5/5)
OpenGL development with QT (I) drawing plane graphics
adb指令整理
Analysis of strong tennis cup 2021 PWN competition -- babypwn
指令集董事长潘爱民出席2022 ECUG Con,为中国技术力量发声
Vscode connection remote server development
The vscode run command reported an error: the mark "&" is not a valid statement separator in this version.
TS learning (VIII): classes in TS