安卓代码初始化
This commit is contained in:
13
install_apk.sh
Normal file
13
install_apk.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user