NotePublic/Software/Applications/ADB/Adb_常用指令.md

26 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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
---
| CMD | Description |
|--------------------------------------------------------------------|--------------|
| 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 |
| adb forward tcp:\<host port\> tcp:\<target port\> | 通过 adb 进行 tcp 转发,如果执行成功的话,没有任何输出 |
| adb forward --list | 查看当前的 adb 转发信息 |