From 6651b41a4c83a2f6867903200f5948461c0e60d6 Mon Sep 17 00:00:00 2001 From: lion187 Date: Wed, 23 Jan 2019 10:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=20Software?= =?UTF-8?q?/OperatingSystem/Android/Shell/Shell=5F=E4=B8=8B=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=5FAndroid=5F=E5=BA=94=E7=94=A8.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Android/Shell/Shell_下启动_Android_应用.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Software/OperatingSystem/Android/Shell/Shell_下启动_Android_应用.md diff --git a/Software/OperatingSystem/Android/Shell/Shell_下启动_Android_应用.md b/Software/OperatingSystem/Android/Shell/Shell_下启动_Android_应用.md new file mode 100644 index 0000000..a384b08 --- /dev/null +++ b/Software/OperatingSystem/Android/Shell/Shell_下启动_Android_应用.md @@ -0,0 +1,11 @@ +# Shell_下启动 Android 应用 + +Android Shell 下可通过命令启动一个应用程序: + + am start -n <包名>/
+ +示例如下: + + am start -n com.example.autolinktest/.MainActivity + +可在 /data/app 等 apk 安装目录下找到对应应用程序的目录,目录名即为包名。启动应用时 Activity 会打印相关 Log,其中包含应用的主 Activity 名。