2022-07-28 15:01:41 +08:00
|
|
|
|
---
|
|
|
|
|
layout: post
|
|
|
|
|
title: "ADB 常用指令"
|
|
|
|
|
subtitle: ""
|
|
|
|
|
description: "提供常用的 ADB 指令参数。"
|
|
|
|
|
excerpt: "提供常用的 ADB 指令参数。"
|
|
|
|
|
date: 2022-07-28 12:08:00
|
|
|
|
|
author: "Rick Chan"
|
|
|
|
|
tags: ["Applications", "ADB"]
|
|
|
|
|
categories: ["Software"]
|
|
|
|
|
published: true
|
|
|
|
|
---
|
2019-01-23 10:04:15 +08:00
|
|
|
|
|
2020-09-28 16:48:24 +08:00
|
|
|
|
| CMD | Description |
|
2020-05-09 15:46:58 +08:00
|
|
|
|
|--------------------------------------------------------------------|--------------|
|
|
|
|
|
| adb root | 获取 Root 权限 |
|
|
|
|
|
| adb shell | 登陆到 Shell |
|
|
|
|
|
| adb remount | 重新挂载设备中的文件系统,adb root 后重新挂载文件系统可获得写权限 |
|
|
|
|
|
| adb reboot | 重启设备 |
|
|
|
|
|
| adb install \<apk name\> | 为设备安装 apk,需要 adb root |
|
|
|
|
|
| adb service list | 查看 Service 列表 |
|
|
|
|
|
| adb service check \<service name\> | 检查某 Service 是否存在 |
|
|
|
|
|
| adb service call \<service name\> \<code\> [i32 INT | s16 STR] ... | 使用 Service |
|
2020-08-21 15:36:23 +08:00
|
|
|
|
| adb forward tcp:\<host port\> tcp:\<target port\> | 通过 adb 进行 tcp 转发,如果执行成功的话,没有任何输出 |
|
|
|
|
|
| adb forward --list | 查看当前的 adb 转发信息 |
|