blob: 0db0825d6cc81615c673e194b599944a1114bbfd [file] [log] [blame] [edit]
#!/bin/bash
OS=${ANDROID_PROVISION_OS_PARTITIONS:-${ANDROID_PRODUCT_OUT}}
VENDOR=${ANDROID_PROVISION_VENDOR_PARTITIONS:-${ANDROID_BUILD_TOP}/vendor/bsp/rockchip/device/kylin/}
fastboot \
flash loader ${VENDOR}/vendor_partitions/bootloader.bin \
flash gpt ${VENDOR}/partitions/partition-tables.bin \
flash boot_a ${OS}/boot.img \
flash system_a ${OS}/system.img \
set_active _a \
flash boot_b ${OS}/boot.img \
flash system_b ${OS}/system.img \
set_active _b \
flash userdata ${OS}/userdata.img "$@"