Flashing the correct img solved the problem:
heimdall flash --RECOVERY TWRP-126.96.36.199_A20_V1.2_by_Agrim720\[Black-themed\].img.img
File was found here: XDA-forum
Previously rooted with boot.img patched by magisk and vbmeta flashed:
heimdall flash --BOOT magisk_patched.img
heimdall flash --VBMETA vbmeta.img
I highly recommend to ...
I refer to the Developers read me file for linux command line instructions:
Flashing Firmware from Command Line:
1. Fully charge your phone (use the wall charger as it's faster).
2. Download a decrypted device ROM or a Heimdall Firmware Package
and extract everything to the one directory.
3. If the ROM is not a Heimdall Firmware Package ...
thank you guys for your help
really appreciate it .. I solved the problem first by installing a custom ROM using TWRP. the system worked
then i discovered what i was doing wrong .. i was trying to flash a one-file stock OS .. which can only serve as an update
a 4-files stock ROM also worked.
Have you tried marking also the NAND ERASE option in Odin? Although marking the nand erase option would wipe the whole phone including the twrp and everything...and then try reflashing by going into download mode on your phone and then to Odin, you'll see a green/blue mark on the ICOM or something like that. If you pass on flashing and it gets stuck on ...
Hoping that you have not wiped your data while flashing firmware using Odin, the process of data retrieval can be variably difficult. The best way I can think of is to flash a custom recovery on your device then mount desired partitions.
PS I have no information whether your phone is rooted or not, so just providing the most workable way.
I did 3 things, tried again, and it worked (I mean it got past File analysis). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
Use a different USB port, for me COM7 instead of COM6.
Get the ROM for my phone's region. It is binary equal to the file I tried ...
For those that came here, the problem is that when booting, twrp is erased by stock recovery. The goal is to avoid the normal boot.
Firstly, uncheck "Auto Reboot" in Odin.
Then finish others Odin steps, and when you see PASS here we go:
Volume down+Home+Power to exit installation/start reboot process.
Instantly when something change (screen should turn ...