From a7f296a5eff568615dd5ebe6fab5ab8915cea40a Mon Sep 17 00:00:00 2001 From: Zhuang Ma Date: Fri, 26 Aug 2016 02:26:45 +0800 Subject: [PATCH] Add commands to start activity and service --- README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f63c2d3..c0de347 100644 --- a/README.md +++ b/README.md @@ -541,11 +541,35 @@ mFocusedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.androi ### 调起 Activity -// TODO +命令格式: + +```sh +adb shell am start -n / +``` + +例如: + +```sh +adb shell am start -n com.tencent.mm/.ui.LauncherUI +``` + +表示调起微信主界面。 ### 调起 Service -// TODO +命令格式: + +```sh +adb shell am startservice -n / +``` + +例如: + +```sh +adb shell am startservice -n com.tencent.mm/.plugin.accountsync.model.AccountAuthenticatorService +``` + +表示调起微信的某 Service。 ### 发送广播