@bkerler, this is an enhancement to the setactiveslot command, it ensures the integrity of the primary gpt header by checking the header crc32 and partition table crc32. if the primary gpt header is corrupted or doesn't match its crc32 value with that of backup gpt header, it would recover from the backup gpt header.
I have also made it possible to update the backup gpt header as well, but I think it is best practice to make it get updated by the xbl partition during boot up process. I'm not sure this mechanism is available for other qualcomm chipset, but definitely for sdm845
@bkerler, this is an enhancement to the
setactiveslot
command, it ensures the integrity of the primary gpt header by checking the header crc32 and partition table crc32. if the primary gpt header is corrupted or doesn't match its crc32 value with that of backup gpt header, it would recover from the backup gpt header.I have also made it possible to update the backup gpt header as well, but I think it is best practice to make it get updated by the xbl partition during boot up process. I'm not sure this mechanism is available for other qualcomm chipset, but definitely for sdm845