bkerler / edl

Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :)
GNU General Public License v3.0
1.47k stars 354 forks source link

Improve `getactiveslot` command #524

Closed bongbui321 closed 3 months ago

bongbui321 commented 3 months ago

@bkerler The backup gpt header is more reliable to get the activeslot assuming the procedure of setting the activeslot is as follow:

setactiveslot() (update on primary gpt header only) --> no crash --> turn on --> xbl updates backup gpt header

if it crashes during patching then the primary gpt header is corrupted, so it would be better to get the active slot from the backup gpt header