blob: 742aee5ac7d15d871ea4f85e73d595af95d75414 [file] [log] [blame]
#!/bin/bash
OS=${ANDROID_PROVISION_OS_PARTITIONS:-${ANDROID_PRODUCT_OUT}}
VENDOR=${ANDROID_PROVISION_VENDOR_PARTITIONS:-${ANDROID_BUILD_TOP}/vendor/bsp/rockchip/device/kylin/}
/usr/bin/fastboot \
flash gpt ${VENDOR}/partitions/partition-tables.bin \
flash loader ${VENDOR}/vendor_partitions/bootloader.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 "$@"