A script that recreates NVRAM partition and makes private TWRP flashable for your phone
- Fill in your values in
config.txt
and runmtk_imei.cmd
. Flashableimei_repair.zip
will be generated inout
folder. - Backup NVRAM and NVDATA partitions.
- Flash
imei_repair.zip
in TWRP and reboot your phone.
- Restore NVRAM and NVDATA partitions from backup.
- Mount Vendor partition and delete
/vendor/etc/init/md_patcher.rc
and/vendor/lib/modules/md_patcher.ko
files.
Flashable supports all 4.14 kernels (both stock and OSS). You have to flash it every time you wipe your Vendor partition.
Includes prebuilt md_patcher.ko
kernel module. Kernel maintainers should not include it in their kernels because it works as external loadable module only.