安卓代码初始化

This commit is contained in:
limqhz
2020-06-21 10:26:17 +08:00
parent 8cce7a7282
commit 98d750b5f6
94 changed files with 5564 additions and 37 deletions

13
install_apk.sh Normal file
View 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."