dd if=/dev/block/platform/.../by-name/EFS of=/sdcard/efs.img
: Toggle on USB Debugging and OEM Unlock inside the Developer Options on the device.
: After writing the file, a "Patch Cert" procedure is often required to ensure the network stays active after a reboot. Important Troubleshooting