Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: platform_tools/android/bin/android_gdb_app

Issue 2140663002: Update documents/scripts for SampleApp removal (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Resources Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | platform_tools/android/bin/android_install_app » ('j') | site/user/quick/android.md » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/bin/android_gdb_app
diff --git a/platform_tools/android/bin/android_gdb_app b/platform_tools/android/bin/android_gdb_app
index 68d517b9a0b1862620a539bc5c20cf831b547c41..e6a96fee7c56920ed104729c46b526017bd08e46 100755
--- a/platform_tools/android/bin/android_gdb_app
+++ b/platform_tools/android/bin/android_gdb_app
@@ -1,30 +1,17 @@
#!/bin/bash
#
-# android_gdb_app: Pushes gdbserver, launches sampleApp, and connects
+# android_gdb_app: Pushes gdbserver, launches Viewer, and connects
# the debugging environment.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/android_setup.sh "$@"
source $SCRIPT_DIR/utils/setup_adb.sh
-app=${APP_ARGS[0]}
-if [[ ${app} == '-'* ]]; then
- echo "Defaulting to running SampleApp."
- app="SampleApp"
- APP_ARGS=( "SampleApp" ${APP_ARGS[*]} )
-fi
+APP_ARGS=( "Viewer" ${APP_ARGS[*]} )
PORT=5039
-if [[ ${app} == 'SampleApp' ]]; then
- activity="com.skia.sample_app/com.skia.SkiaSampleActivity"
- activityShort="com.skia.sample_app"
-elif [[ ${app} == "Viewer" ]] ; then
- activity="org.skia.viewer/org.skia.viewer.ViewerActivity"
- activityShort="org.skia.viewer"
-else
- echo "ERROR: supports either 'SampleApp' or 'Viewer' as valid apps"
- exit 1
-fi
+activity="org.skia.viewer/org.skia.viewer.ViewerActivity"
+activityShort="org.skia.viewer"
# Forward local to remote socket connection.
$ADB $DEVICE_SERIAL forward "tcp:$PORT" "tcp:$PORT"
« no previous file with comments | « no previous file | platform_tools/android/bin/android_install_app » ('j') | site/user/quick/android.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698