14 lines
446 B
Bash
14 lines
446 B
Bash
#!/usr/bin/env bash
|
|
function print_error_then_exit {
|
|
echo "***** $1 *****"
|
|
exit 1
|
|
}
|
|
|
|
echo "Install app-$1-release.apk to device"
|
|
adb install -r app/build/outputs/apk/$1/release/app-$1-release.apk || print_error_then_exit "install error"
|
|
|
|
echo "Start com.ydd.dm"
|
|
adb shell am start -a android.intent.action.MAIN -c android.intent.category.DEFAULT -n com.ydd.sportfaceid/.MainActivity || print_error_then_exit "start error"
|
|
|
|
echo "Start finish."
|