diff options
Diffstat (limited to 'startop/scripts/app_startup/launch_application')
-rwxr-xr-x | startop/scripts/app_startup/launch_application | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/startop/scripts/app_startup/launch_application b/startop/scripts/app_startup/launch_application index bc4ec51d6d08..8a68e5016190 100755 --- a/startop/scripts/app_startup/launch_application +++ b/startop/scripts/app_startup/launch_application @@ -20,6 +20,12 @@ source "$DIR/lib/common" launch_application() { local package="$1" local activity="$2" + + # if there's any $s inside of the activity name, it needs to be escaped to \$. + # example '.app.honeycomb.Shell$HomeActivity' + # if the $ is not escaped, adb shell will try to evaluate $HomeActivity to a variable. + activity=${activity//\$/\\$} + local am_output="$(adb shell am start -S -W "$package"/"$activity")" verbose_print adb shell am start -S -W "$package"/"$activity" if [[ $? -ne 0 ]]; then |