Using Octoplus as an example:
Only works on older Android versions without Vaultkeeper (VK). On newer Samsung firmwares (Android 12+), IMEI is encrypted in /efs/imei and nv_data.bin cannot be edited directly.