timjosten / mtk_imei

A script that recreates the NVRAM partition and makes a private TWRP flashable for your phone
GNU General Public License v3.0
56 stars 20 forks source link

MTK IMEI patcher for Xiaomi phones with Helio G Series SoC

A script that recreates the NVRAM partition and makes a private TWRP flashable for your phone

Supported devices

Guide

Usage

  1. Fill in your values in config.txt and run mtk_imei.cmd. A flashable imei_repair.zip will be generated in out folder.
  2. Backup NVRAM and NVDATA partitions.
  3. Flash imei_repair.zip in TWRP and reboot your phone.

Uninstall

  1. Restore NVRAM and NVDATA partitions from backup.
  2. Mount Vendor partition and delete /vendor/etc/init/md_patcher.rc and /vendor/lib/modules/md_patcher.ko files.

Notes

Prerequisites

Visual C++ Redistributable for Visual Studio 2015-2022 (x64)