From bb44b668cd9035f4378d8876d367ab01a528cb08 Mon Sep 17 00:00:00 2001 From: lucky9322 <86431843@qq.com> Date: Thu, 1 Feb 2018 20:38:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20adb=20command=20pm=20path=20=E6=9F=A5?= =?UTF-8?q?=E7=9C=8Bapk=E5=AE=89=E8=A3=85=E8=B7=AF=E5=BE=84=20(#52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 21 +++++++++++++++++++++ README.md | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/README.en.md b/README.en.md index d97a416..3cc704e 100644 --- a/README.en.md +++ b/README.en.md @@ -36,6 +36,7 @@ Other languages: [:cn: Chinese](./README.md) * [View Reception Activity](#view-reception-activity) * [View Running Services](#view-running-services) * [Query package detail information](#query-package-detail-information) + * [Query application installation path](#query-application-installation-path) * [Interact with Applications](#interact-with-applications) * [Start an Activity](#start-an-activity) * [Start a Service](#start-a-service) @@ -754,6 +755,26 @@ Dexopt state: te] ``` +### Query application installation path + +command: + +``` +adb shell pm path +``` + +Output shows application installation path. + + + +Example output: + +``` +adb shell pm path ecarx.weather + +package:/data/app/ecarx.weather-1.apk +``` + ## Interact with Applications The most used syntax for interacting with applications is : diff --git a/README.md b/README.md index 9ef5fb5..d32c32d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Other languages: [:gb: English](./README.en.md) * [查看前台 Activity](#查看前台-activity) * [查看正在运行的 Services](#查看正在运行的-services) * [查看应用详细信息](#查看应用详细信息) + * [查看应用安装路径](#查看应用安装路径) * [与应用交互](#与应用交互) * [调起 Activity](#调起-activity) * [调起 Service](#调起-service) @@ -765,6 +766,24 @@ Dexopt state: te] ``` +### 查看应用安装路径 + +命令: + +``` +adb shell pm path +``` + +输出应用安装路径 + +输出示例: + +``` +adb shell pm path ecarx.weather + +package:/data/app/ecarx.weather-1.apk +``` + ## 与应用交互 主要是使用 `am ` 命令,常用的 `` 如下: