diff options
Diffstat (limited to 'android-tools')
-rwxr-xr-x | android-tools/db845c/db845c-deploy.sh | 4 | ||||
-rwxr-xr-x | android-tools/hikey/hikey-deploy.sh | 4 | ||||
-rwxr-xr-x | android-tools/hikey/hikey960-deploy.sh | 4 | ||||
-rwxr-xr-x | android-tools/x15/flash.sh | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/android-tools/db845c/db845c-deploy.sh b/android-tools/db845c/db845c-deploy.sh index bede38e..2a7e0fb 100755 --- a/android-tools/db845c/db845c-deploy.sh +++ b/android-tools/db845c/db845c-deploy.sh @@ -12,11 +12,11 @@ fi num_fastboot_devices=$(fastboot devices|wc -l) if [ ${num_fastboot_devices} -eq 0 ]; then echo "No fastboot devices available, please check and try again" - exit 1 + export ANDROID_SERIAL="${local_android_serial}" elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then # for local multiple devices support export ANDROID_SERIAL="${local_android_serial}" -elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then +elif [ ${num_fastboot_devices} -eq 1 ] && [ -z "${ANDROID_SERIAL}" ]; then device_serial=$(fastboot devices|awk '{print $1}') export ANDROID_SERIAL="${device_serial}" fi diff --git a/android-tools/hikey/hikey-deploy.sh b/android-tools/hikey/hikey-deploy.sh index bebecbc..ad2cddf 100755 --- a/android-tools/hikey/hikey-deploy.sh +++ b/android-tools/hikey/hikey-deploy.sh @@ -12,11 +12,11 @@ fi num_fastboot_devices=$(fastboot devices|wc -l) if [ ${num_fastboot_devices} -eq 0 ]; then echo "No fastboot devices available, please check and try again" - exit 1 + export ANDROID_SERIAL="${local_android_serial}" elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then # for local multiple devices support export ANDROID_SERIAL="${local_android_serial}" -elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then +elif [ ${num_fastboot_devices} -eq 1 ] && [ -z "${ANDROID_SERIAL}" ]; then device_serial=$(fastboot devices|awk '{print $1}') export ANDROID_SERIAL="${device_serial}" fi diff --git a/android-tools/hikey/hikey960-deploy.sh b/android-tools/hikey/hikey960-deploy.sh index 1f0d444..904d3b3 100755 --- a/android-tools/hikey/hikey960-deploy.sh +++ b/android-tools/hikey/hikey960-deploy.sh @@ -12,11 +12,11 @@ fi num_fastboot_devices=$(fastboot devices|wc -l) if [ ${num_fastboot_devices} -eq 0 ]; then echo "No fastboot devices available, please check and try again" - exit 1 + export ANDROID_SERIAL="${local_android_serial}" elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then # for local multiple devices support export ANDROID_SERIAL="${local_android_serial}" -elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then +elif [ ${num_fastboot_devices} -eq 1 ] && [ -z "${ANDROID_SERIAL}" ]; then device_serial=$(fastboot devices|awk '{print $1}') export ANDROID_SERIAL="${device_serial}" fi diff --git a/android-tools/x15/flash.sh b/android-tools/x15/flash.sh index df44c73..779126b 100755 --- a/android-tools/x15/flash.sh +++ b/android-tools/x15/flash.sh @@ -14,11 +14,11 @@ fi num_fastboot_devices=$(fastboot devices|wc -l) if [ ${num_fastboot_devices} -eq 0 ]; then echo "No fastboot devices available, please check and try again" - exit 1 + export ANDROID_SERIAL="${local_android_serial}" elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then # for local multiple devices support export ANDROID_SERIAL="${local_android_serial}" -elif [ ${num_fastboot_devices} -ne 1 ] && [ -z "${ANDROID_SERIAL}" ]; then +elif [ ${num_fastboot_devices} -eq 1 ] && [ -z "${ANDROID_SERIAL}" ]; then device_serial=$(fastboot devices|awk '{print $1}') export ANDROID_SERIAL="${device_serial}" fi |