bkerler / edl

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

fix erase to return when erase success #539

Closed bongbui321 closed 2 months ago

bongbui321 commented 2 months ago

@bkerler. I'm not sure whether previous implementation is correct or not since it implies that there are multiple luns that have a specific partitionname. This PR returns immediately when we found our desired partition, and fails when we don't find our partition parsing through all the luns. Since I only tested on my SDM845, I'm not sure if other devices are different. If the previous implementation is correct, feel free to close this PR