rooting – Unbricking a Samsung A40

I used Heimdall and I can’t really finish flashing anything because I get this error “Error failed to send end session packet”.

I also got the cyan screen saying “An error has occurred while updating the device software. Use the Emergency recovery function in the Smart Switch PC software”.

I also get some red text a the top left of my screen that says “Custom Binary (Recovery) Blocked by OEM lock”.

How to or where to find a Samsung A40 userdata.img file because I accidentally flashed the user data and not the recovery and now my phone is bricked?