diff --git a/README.en.md b/README.en.md index 2c09178..c1d6f17 100644 --- a/README.en.md +++ b/README.en.md @@ -823,6 +823,7 @@ There are some options addting data for ``, similar to `extra` for Bundl | `--ela [, start with Activity's name The syntax is: @@ -844,6 +845,21 @@ adb shell am start -n org.mazhuang.boottimemeasure/.MainActivity --es "toast" "h The command above means starting MainActivity of the application with the package name `org.mazhuang.boottimemeasure` with an extra string information (key is 'toast' and value is 'hello, world'). +> start without Activity's name + +The syntax is: + +```sh +adb shell monkey -p -c android.intent.category.LAUNCHER 1 +``` +For example: + +```sh +adb shell monkey -p com.tencent.mm -c android.intent.category.LAUNCHER 1 +``` + +The command above means starting the launch activity of WeChat. + ### Start a Service The syntax is: diff --git a/README.md b/README.md index 6faf546..c4b32e6 100644 --- a/README.md +++ b/README.md @@ -828,6 +828,7 @@ package:/data/app/ecarx.weather-1.apk | `--ela [, 指定Activity名称启动 命令格式: @@ -849,6 +850,21 @@ adb shell am start -n org.mazhuang.boottimemeasure/.MainActivity --es "toast" "h 表示调起 `org.mazhuang.boottimemeasure/.MainActivity` 并传给它 string 数据键值对 `toast - hello, world`。 +> 不指定Activity名称启动(启动主Activity) + +命令格式: + +```sh +adb shell monkey -p -c android.intent.category.LAUNCHER 1 +``` +例如: + +```sh +adb shell monkey -p com.tencent.mm -c android.intent.category.LAUNCHER 1 +``` + +表示调起微信主界面。 + ### 调起 Service 命令格式: