当前位置:网站首页>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
边栏推荐
- sql-labs SQL注入平台-第1关Less-1 GET - Error based - Single quotes - String(基于错误的GET单引号字符型注入)
- How MySQL executes query statements
- The vscode run command reported an error: the mark "&" is not a valid statement separator in this version.
- 【golang学习笔记2.1】 golang中的数组中的排序和查找
- MySQL query operation index optimization practice
- Interpretation of deepsort source code (6)
- Misunderstanding of slice slice in golang
- Codeforces Round #809 (Div. 2)(6/6)(Kruskal重构树)
- ESP8266(ESP-12F) 第三方库使用 -- SparkFun_APDS9960 (手势识别)
- pre-commit install 时 CalledProcessError
猜你喜欢

Digital image processing Chapter 1 Introduction

Working principle analysis of deepsort

基于SSM医院预约管理系统

基于SSM音乐网站管理系统

(转帖)eureka、consul、nacos的对比1

Pan Aimin, chairman of instruction set, attended the 2022 ecug con to speak for China's technical forces

火狐浏览器,访问腾讯云服务器的时候,出现建立安全连接失败的问题。

Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较

基于SSM学生学籍管理系统

高级IO提纲
随机推荐
Livox Slam (with lio+ closed loop detection optimization)
算法--斐波那契数列(Kotlin)
Codeworks round 809 (Div. 2) (6/6) (Kruskal reconstruction tree)
The vscode run command reported an error: the mark "&" is not a valid statement separator in this version.
把Excel转换成CSV/CSV UTF-8
Gbase 8C core technology
Pan Aimin, chairman of instruction set, attended the 2022 ecug con to speak for China's technical forces
Watermelon book learning notes - Chapter 1 and 2
线性表 -- 栈和队列
Campus news release management system based on SSM
Misunderstanding of slice slice in golang
整体二分?
[latex format] there are subtitles side by side on the left and right of double columns and double pictures, and subtitles are side by side up and down
PHP defines the array using commas,
Pytorch notes: td3
Drools (5): drools advanced syntax
内部类--看这篇就懂啦~
Interpretation of deepsort source code (I)
Using docker to install and deploy redis on CentOS
Brief introduction of simulation model