- fix rare divide-by-zero case when reading or writing partitions
- tweaked how experimental
make-binary.sh
works
- reduced write single-chunk threshold to 2MB, seems 4MB was too ambitious to be reliable
- options that require USB Burn Mode will now attempt to enter USB Burn Mode automatically
- added
--restore_partition
to restore individual partitions from file - added
--restore_device
to restore whole device from a folder- expects files:
bootloader.dump, env.dump, fip_a.dump, fip_b.dump, logo.dump, dtbo_a.dump, dtbo_b.dump, vbmeta_a.dump, vbmeta_b.dump, boot_a.dump, boot_b.dump, misc.dump, settings.ext4, system_a.ext2, system_b.ext2
- if the dump file
data.ext4
is missing, or is actually empty (all zeros), will just wipe the data partition to save time
- expects files:
- corrected
bootloader
partition size.- The partition is 4MB, but device will only accept up to 2MB when writing
- partition is zero-padded and the actual bootloader is about 1.3MB
- starting with this version,
--dump_partition
and--dump_device
will produce 2MB dumps ofbootloader
partition --restore_partition
and--restore_device
, if they find a 4MBbootloader.dump
will only restore first 2MB of it
- fixed issue where
bootloader
dumps started with 512 Bytes of padding - option
--dump_device
will convertenv.dump
intoenv.txt
(keeping both)
- Added boot slot selection to
--boot_adb_kernel
&--disable_avb
.
- fixed #2 & #4 - wrong encoding when sending env to device
- added
--enable_burn_mode_button
thanks to lmore337!
- added
--restore_stock_env
- wipe uboot env partition, then restore it to stock values by importingstock_env.txt
- added
--send_env
<env.txt> - send givenenv.txt
, import it into the existing env. Will NOT wipe first, just overwrite - added
--send_full_env
<env.txt> - wipe uboot env partition, then import the givenenv.txt
- added
--convert_env_dump
<env.dump> - convert a partition dump file, into a readableenv.txt
which you can edit - added
--get_env
<env.txt> - dump the device env partition and convert it toenv.txt
- initial release
- fixed issue #1: not sending env with --boot_adb_kernel