I fixed the phone.
I got out of "EDL stuck".
I bypassed the authentication.
Then I used SP Flash Tool to flash a new ROM using a firmware upgrade.
Its bootloader is locked again.
Now the phone is unbricked.