(factory-241) Sync factory builder scripts with ToT
We've seen Alex factory bundle corrupted several times, and usually
caused tools modified SSD rootfs partition unexpectedly.
ToT make_factory_package has more safe and solid image type detection
ability so we should port that to R11 factory.
TEST=./make_factory_package --release PATH_TO_RECOVERY \
--factory PATH_TO_FACTORY_TEST \
--firmware PATH_TO_FIRMWARE \
Reviewed-by: Jay Kim <firstname.lastname@example.org>
Tested-by: Hung-Te Lin <email@example.com>
4 files changed