Loading flash/factory.common +16 −1 Original line number Diff line number Diff line Loading @@ -90,6 +90,18 @@ find_device() { done } # Switch to fastbootd switch_to_fastbootd() { echo "INFO: Switching device to fastbootd mode..." "${FASTBOOT_BIN}" -s "${sn}" reboot fastboot || { echo "ERROR: Unable to switch to fastbootd mode." abort_now } sleep 5 # Wait for the device to reboot into fastbootd echo "INFO: Device is now in fastbootd mode." } # Flash (or manipulate) relevant partitions flash_device() { flash_images_ab_or_abort "${sn}" "${FLASH_AB_FW_IMGS}" Loading Loading @@ -125,6 +137,10 @@ flash_factory() { # If only one device is found $sn will store its serial number find_device if [ "${USE_FASTBOOTD}" = "true" ]; then switch_to_fastbootd fi # Flash the device flash_device Loading Loading @@ -245,4 +261,3 @@ reboot_device() { echo "INFO: You can unplug the USB cable now." echo "" } Loading
flash/factory.common +16 −1 Original line number Diff line number Diff line Loading @@ -90,6 +90,18 @@ find_device() { done } # Switch to fastbootd switch_to_fastbootd() { echo "INFO: Switching device to fastbootd mode..." "${FASTBOOT_BIN}" -s "${sn}" reboot fastboot || { echo "ERROR: Unable to switch to fastbootd mode." abort_now } sleep 5 # Wait for the device to reboot into fastbootd echo "INFO: Device is now in fastbootd mode." } # Flash (or manipulate) relevant partitions flash_device() { flash_images_ab_or_abort "${sn}" "${FLASH_AB_FW_IMGS}" Loading Loading @@ -125,6 +137,10 @@ flash_factory() { # If only one device is found $sn will store its serial number find_device if [ "${USE_FASTBOOTD}" = "true" ]; then switch_to_fastbootd fi # Flash the device flash_device Loading Loading @@ -245,4 +261,3 @@ reboot_device() { echo "INFO: You can unplug the USB cable now." echo "" }