requires rooting the Samsung A12 with Magisk, then using a terminal emulator with su permissions to write the IMEI. However, rooting a Samsung A12 trips Knox, permanently breaking Samsung Pay and Secure Folder.
Scammers online sell "Samsung A12 IMEI repair unlock tool APK" for Android. for null IMEI issues.