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

Unified Diff: platform_tools/android/bin/android_install_apk

Issue 865943007: Cleanup the android scripts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: actually saving the file Created 5 years, 11 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
Index: platform_tools/android/bin/android_install_apk
diff --git a/platform_tools/android/bin/android_install_apk b/platform_tools/android/bin/android_install_apk
deleted file mode 100755
index 9161bbb41c3291f504e0260c667708a7cda4857d..0000000000000000000000000000000000000000
--- a/platform_tools/android/bin/android_install_apk
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-#
-# android_install_skia: installs the skia apk on the device.
-
-function print_usage {
- echo "USAGE: android_install_skia [options]"
- echo " Options: -f Forces the package to be installed by removing any"
- echo " previously installed packages"
- echo " -h Prints this help message"
- echo " --release Install the release build of Skia"
- echo " -s [device_s/n] Serial number of the device to be used"
-}
-
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-source $SCRIPT_DIR/android_setup.sh
-source $SCRIPT_DIR/utils/setup_adb.sh
-
-forceRemoval="false"
-installLauncher="false"
-installOptions="-r"
-
-for arg in ${APP_ARGS[@]}
-do
- if [[ "${arg}" == "-f" ]];
- then
- forceRemoval="true"
- elif [[ "${arg}" == "-h" ]];
- then
- print_usage
- exit
- elif [[ "${arg}" == "-r" ]];
- then
- echo "DEPRECATED: -r is now a no-op"
- else
- echo "ERROR: unrecognized option ${arg}"
- print_usage
- exit 1;
- fi
-done
-
-if [[ "$forceRemoval" == "true" ]];
-then
- echo "Forcing removal of previously installed packages"
- $ADB ${DEVICE_SERIAL} uninstall com.skia > /dev/null
-fi
-
-echo "Installing Skia App from ${SKIA_OUT}/${BUILDTYPE}"
-$ADB ${DEVICE_SERIAL} install ${installOptions} ${SKIA_OUT}/${BUILDTYPE}/android/bin/SkiaAndroid.apk

Powered by Google App Engine
This is Rietveld 408576698