[Samsung Galaxy J5 Questions & Answers] P01Z0N-T0N1C:
Hi Guys

This is my first post on xda even after using these forums for years. But today I cant find a solution on here or anywhere for that fact, and was literally hoping that I've missed something somewhere.

So to start. I have a Samsung Galaxy J5 Prime (SM-G570F). The other day I was flashing a custom rom when something went wrong during the flashing process and left me with a bricked device. Now I did do a full backup before flashing as I've learned the hard way how important this is. During the flashing it also asked me for a full wipe and to backup the EFS. Even though I did do all the backups and wiped everything< I've ticked both boxes and proceeded with the installation. Everything seemed fine but on 99.9% it froze. Not wanting to do anything I left it until it rebooted the phone by itself, where I was greeted with the download/flash screen. Didn't even give the warning about installing custom software and asked to continue. It just booted straight to the download screen. Tried getting back into recovery only to be greeted with download screen. No matter what I did it just kept booting into download mode. So I then re-flashed TWRP. Getting into the recovery I was able to mount EFS, System, Data, etc. Bu all showed 0mb of 0mb available. I then went to restore everything only to find that the SD Card was also wiped by the process. Thinking that maybe the recovery isn't reading everything correctly, I found the SD Card empty in windows also. No call me names or whatever, (I know my own stupidity) but I never backed up my backups on my PC. So I just proceeded flashing stock firmware as to start from scratch. Everything went as planned until the device got reset by odin. I was greeted with a screen saying "installing system update", but as soon as it reach 32% it changes to "erasing" and then "error" with the "DRK Missing" error. Then it boots to recovery where an error message is saying "unable to mount: EFS (Device or Recourse busy). I cleared cache and did a factory reset and it booted the system (Though mount error still appears in recovery even in custom TWRP/CWM recoveries also). Now I have a 00000..... IMEI number and no network connection. I've spent the last week on the web trying to find a solution with no luck. I'm tired AF because I didn't sleep trying to solve this. I tried flashing stock and custom roms, recovery's, boot-loaders, modems. Tried different software's like Samsung Tool, IMEI repair tool, Strings of adb commands, xposed modules, apps, terminals, etc. I even flashed factory binaries with no luck as to how to change it back.

So in short.

My EFS got wiped.

I lost my IMEI.

I don't have any backups.

Been awake for a week searching for solutions with no luck.

So please if anyone knows of a way to change the IMEI, please help me. I know It's illegal to change IMEI (though not in my country). But I down't want to change it for all the wrong reasons. I just want to change it back to the original found on the back of the phone and on the box. This can't do any harm can it? Please I just want my phone back please!

Full phone info with current firmware:

Samsung Galaxy J5 Prime (SM-G570F)

Android version - Nougat 7.0

Baseband version - G570FXXU1BQI6

Stock Firmware

No Root

No custom recovery

(Basically I just flashed everything back to stock to start over and try solving this)

Please help guys