Stuck in twrp after trying to root Samsung A7(2018) I tried to root my samsung A7 yesterday, I flashed twrp with odin and when I try to install magisk it says &quot;Zip file is corrupt&quot;,
I don't have any OS now and I'm left with only twrp.
I flashed twrp again different times with odin but same.
I can't boot in fastboot and when I tried with adb sideload my device is not discoverable.
I followed all the steps from this video Youtube Video when I tried to root my device.
Is there anyway to bring my samsung back or it's bricked?
Device Model: A750FN
Thanks to @alecxs I was able to fix it. The reason why I was stuck in twrp is because I wiped system through twrp(I was frustrated when I couldn't boot in magisk after many times of trying so I decided to let the System go,  the first time trying to root an phone so I didn't know what I was doing).
DON'T WIPE THE SYSTEM!
I still don't know why &quot;Zip file is corrupt&quot; ocurred, maybe because I tried to install magisk through sd card and the sd card was corrupted, or maybe because the twrp I flashed was unofficial, I don't know, but here is how you can recover your phone back:
1.Install the stock rom/firmware for your model at samfw.com,
before you install the stock rom for your phone model you should know your phone CSC(Country Specific Code), if you don't know it just boot in download mode and you will see Carrier ID associated with phone CSC Code
2.Boot in download mode and flash the downloaded rom. If that goes well and now you have your phone back but you still want to root then go to Magisk Installation Guide and follow the instructions.
If you experienced the same error like mine while trying to flash magisk on twrp with sd card then next time instead of sd card try to copy magisk in cache partition and then in twrp flash from there.