Hello, do I need to do this process again if there is a software update?FIXED! (working and stable so far)
Thanks to @Mighty_Rearranger
In more detail:
PREPARATION
1) root your phone by patching the stock ROM with the magisk app, as per Magisk's installation instructions. Reboot, install the app and everything Magisk asks until it works fully.
2) install and get ADB working in your PC. I love this one which is super lightweight.
3) enable ADB on your phone by enabling the developer options, turning on USB debugging.
ERASING
4) open a CMD terminal on your PC as administrator, go to the minimal ADB folder and run
adb shell
you will be running a terminal on your phone
5) make it a root terminal by running
su
in the phone, Magisk should ask for root permission for "system", allow it
the prompt should now have a "#" in the end, indicating you are root
6) go to the folder in question
cd /mnt/vendor/nvdata/md/NVRAM
7) delete the NVD_IMEI folder
rm -R NVD_IMEI
the IMEI appears instantly, but just in case, do the reboot.
RECOMMENDED BACKUP
7) optionally, instead of deleting the folder, rename it
mv NVD_IMEI NVD_IMEI.old
and move the backup NVD_IMEI to phone storage so you can save it on your PC
mv NVD_IMEI.old /storage/self/primary
copy that folder to your PC using the usual windows explorer or whatever
then reboot
AFTERWARDS
after reboot maybe you'll like to turn on airplane mode just in case so the IMEI doesn't die again.
then, as the post says, you can uninstall magisk (use the uninstall button on the app!!)
or try to keep it maybe installing it this time on the recovery partition and only booting root for necessary setup keeping airplane mode just in case to prevent IMEI loss again (didn't try this though),
or, to try to keep Magisk you can do the following:
[EDIT: Magisk ppl say "latest canary builds maybe work fine" (I take it they mean you won't lose IMEI after recovering it, with no need to do the following steps, and you won't lose IMEI in the first place with these versions, but who knows)]
8) enter adb again and make it root and go to the folder as in steps 4-6
OPTIONAL BACKUP
9) optionally, backup the newly appeared NVD_IMEI folder
cp -R NVD_IMEI /storage/self/primary
and the copy will go to phone storage so you can take it to your PC
MAKE FOLDER READ-ONLY
10) do a
chmod 550 NVD_IMEI
the NVD_IMEI folder is owned by user system and the radio group. This command will make the folder readable but unwritable for those users. Only the root user will be able to undo this or write to the NVD_IMEI folder.
CLOSING UP
exit
exit
after uninstalling magisk/making the folder read-only, turn off airplane mode and start normal use
no. future current version of magisk don't have this problem.Hello, do I need to do this process again if there is a software update?
FIXED! (working and stable so far)
Thanks to @Mighty_Rearranger
In more detail:
PREPARATION
1) root your phone by patching the stock ROM with the magisk app, as per Magisk's installation instructions. Reboot, install the app and everything Magisk asks until it works fully.
2) install and get ADB working in your PC. I love this one which is super lightweight.
3) enable ADB on your phone by enabling the developer options, turning on USB debugging.
ERASING
4) open a CMD terminal on your PC as administrator, go to the minimal ADB folder and run
adb shell
you will be running a terminal on your phone
5) make it a root terminal by running
su
in the phone, Magisk should ask for root permission for "system", allow it
the prompt should now have a "#" in the end, indicating you are root
6) go to the folder in question
cd /mnt/vendor/nvdata/md/NVRAM
7) delete the NVD_IMEI folder
rm -R NVD_IMEI
the IMEI appears instantly, but just in case, do the reboot.
RECOMMENDED BACKUP
7) optionally, instead of deleting the folder, rename it
mv NVD_IMEI NVD_IMEI.old
and move the backup NVD_IMEI to phone storage so you can save it on your PC
mv NVD_IMEI.old /storage/self/primary
copy that folder to your PC using the usual windows explorer or whatever
then reboot
AFTERWARDS
after reboot maybe you'll like to turn on airplane mode just in case so the IMEI doesn't die again.
then, as the post says, you can uninstall magisk (use the uninstall button on the app!!)
or try to keep it maybe installing it this time on the recovery partition and only booting root for necessary setup keeping airplane mode just in case to prevent IMEI loss again (didn't try this though),
or, to try to keep Magisk you can do the following:
[EDIT: Magisk ppl say "latest canary builds maybe work fine" (I take it they mean you won't lose IMEI after recovering it, with no need to do the following steps, and you won't lose IMEI in the first place with these versions, but who knows)]
8) enter adb again and make it root and go to the folder as in steps 4-6
OPTIONAL BACKUP
9) optionally, backup the newly appeared NVD_IMEI folder
cp -R NVD_IMEI /storage/self/primary
and the copy will go to phone storage so you can take it to your PC
MAKE FOLDER READ-ONLY
10) do a
chmod 550 NVD_IMEI
the NVD_IMEI folder is owned by user system and the radio group. This command will make the folder readable but unwritable for those users. Only the root user will be able to undo this or write to the NVD_IMEI folder.
CLOSING UP
exit
exit
after uninstalling magisk/making the folder read-only, turn off airplane mode and start normal use
people seem to have this issue on stock firmware. you can try using a gsi instead. because at the time when this was happening on one ui 4.1 i switched to a gsi and it didnt appear there.I initially got this to work on my A325F (uninstall magisk option) for a month. Yesterday, my phone suddenly restarted with the IMEI disappearing after reboot.
I redid everything from scratch (reflash ROM, magisk stuff) but I can't get it to work this time. The IMEI disappears after the first call.
Setting the NVD_IMEI folder to read-only option works but experiencing dropped calls with it.
I used Android 13, Magisk 26.1, and Odin 3.14.4
people seem to have this issue on stock firmware. you can try using a gsi instead. because at the time when this was happening on one ui 4.1 i switched to a gsi and it didnt appear there.
currently using my own self built yaap. I'll release it soon.Thanks. Any specific version you're using? I'll try to scour the site later for a guide to do just that.
I happened again a couple times, but I never reinstalled the rom or magisk, just did the procedure again of erasing the NVD_IMEI folderpeople seem to have this issue on stock firmware. you can try using a gsi instead. because at the time when this was happening on one ui 4.1 i switched to a gsi and it didnt appear there.
I happened again a couple times, but I never reinstalled the rom or magisk, just did the procedure again of erasing the NVD_IMEI folderpeople seem to have this issue on stock firmware. you can try using a gsi instead. because at the time when this was happening on one ui 4.1 i switched to a gsi and it didnt appear there.
In more detail:OK guys, I found a somewhat janky fix on another forum (I'm not sure if we're allowed to post links):
Root the phone, and, using Root Explorer or similar, delete the /mnt/vendor/nvdata/md/NVRAM/NVD_IMEI/ folder. Reboot after that.
PD. You might want to remove Magisk after doing that, since IMEI disappears after you begin making calls again. You will lose root but your phone will be fully working again.
Edit: You can keep Magisk (and root) if you make the above mentioned directory read-only after it regenerates, but you will experience dropped calls from time to time. Data seems to work just fine.
From what I learned, it's a Magisk bug that happens with certain MediaTek processors. I don't think it'll be fixed in the forseeable future (the Magisk author closed the issue on GitHub without any explanation after almost a year without answer).
Ik, and when you nand erase the firmware in odin and then the pc crashes mid flashing, then you must buy a new samsung phone because samsung likes money more than mr krabs doesikr! its so bug free and smooth and totally not filled with bloat that prompts me to install stupid games and tiktok when i setup my device everything![]()