Elite Member

Active on Mi India Community:

Rank: 6Rank: 6

Credits
17964
Device
Mi 5
Online time
1464 Hours
Send PM

Mi WiFi RouterMi BandMi KeyMi BoxMi In-Ear HeadphonesMIUI 6Fantastic!FlashholicI Love MIUIAwesome!MIUI 2015Redmi NoteRedmiMi 3Mi TVMi NoteMIUI Fan from MalaysiaMIUI Fan From SingaporeMIUI Fan from TurkeyFan Of MIUI Ex-Yu Happy DiwaliDiwali Fan Of MIUI IndiaMIUI 50 Million UsersHappy Valentine's DayMIUI Fan From PhilippinesMIUI Fan from IndiaMIUI 4th Anniversary1st Anniversary500K Forum MembersAtaturk MourningHilal Ramadan MIUI Fan From Indonesia300K Forum Members2014 ChristmasFan Of MIUI BangladeshThanksgiving DayXiaomi 5th AnniversaryFan Of  MIUI AzerbaijanHappy Singles' DaySummer Mi BunnyAlpaca Mi Bunny I Love Mi BunnyGamer Mi BunnyMIUI Device TeamMIUI Beta TeamMIUI Device ExpertYouth PledgeInbox ZeroPioneer of MIUI English Forum Best ArticleOTA FeedbackMIUI FB FollowerMIUI Global Forum 2014Die-hard MIUI FanMost Active MIUIerForum Contest LoverAndroid GuruAndroid ElfUpdates LoverStar Of IconsHumor Master

[Tools, Tips & Tutorials] RESTORING CORRUPT , INVALID IMEI [ QUICK FIX]

  [ Promote]
208916 2326 |
13:38, Nov-11-2014 | From PC
|
|
Go to reply no.
This post was edited by kailashnj at 11:45, Jul-27-2015

Hey MIUIers,
lag_android.jpg
UPDATE NOTE :- MORE DEVICE ADDED  REDMI NOTE LTE , MI2/S

This is a continuation to my previous thread on How to backup your IMEI. Hopefully you already have taken backup as per my earlier thread. If you missed It Check Out from Link Below
Thread link - HERE       http://en.miui.com/thread-59832-1-1.html

When do you need to Restore IMEI. After flashing a rom, chances are your phone will not be able to latch onto a network. This happens when the IMEI of your phone is corrupt, i.e its not the original IMEI but numbers like 000000000000, or Invalid Imei . Here you would need to restore the original IMEI from the original files that we had backed up earlier.

Restoring IMEI will also help in resolving other problems like

  • No IMEI
  • Invalid IMEI
  • BASEBAND UNKNOWN
  • Cant detect the sim card inserted
  • Cannot call or receive calls


Prerequisites:

  • You need to install Miflash, for the drivers. (Miflash Setup link at end of post)
  • You need to enable usb debugging from developer option. (go to about phone in setting and tap build version/ miui version 7 times to enable developer options in settings menu)
  • You need to have ADB  fully setup.
  • Your Device needs to have ROOT permissions (use forum search feature to seach rooting guide for specific device and rom version stable / dev)
  • You need to make sure the Adb drivers are installed correctly.
  • You need to have a Windows Operating System or terminal Emulator on Phone with root access
  • Backup of the IMEI from the previous post as per the link provided above.

***note- Miflash has inbuilt adb setup , and adb diver so, you can follow below guide to  use the miflash default adb.



So, let's begin the restore ...

You need to follow the below steps to restore your IMEI.

Copy the Three (3) Partition Backup to the root directory of Internal storage of phone. (dont copy inside any folder)

Once you have copied these files on your phone, Start Command prompt on pc or Terminal Emulator on phone and follow the code mentioned below. (assuming miflash is installed in directory C:\Program Files (x86)\Xiaomi\MiPhone\ )

  1. cd/.
  2. cd program files (x86)
  3. cd xiaomi
  4. cd Miphone
  5. cd google
  6. cd android
Copy the Code
Now, you have reached the Default ADB Configured Folder


Type the below codes
  1. adb devices
  2. adb shell
  3. su
Copy the Code
This will give you the Root access (always allow any thing that popped on phone regarding permissions)
If you get an error messge like permission denied, KINDLY CHECK If YOUR PHONE HAS ROOT ACCESS

If you were successful till here, then now we are good to Restore the IMEI backup of Mi3 ,Mi4,Mi2 , Mi2S

before Restoring we have to make sure that the efs partitions are cleared and dont have previous data so follow this codes before restoring

  1. dd if=/dev/zero of=/dev/block/mmcblk0p12
  2. dd if=/dev/zero of=/dev/block/mmcblk0p13
  3. dd if=/dev/zero of=/dev/block/mmcblk0p16
  4. reboot
Copy the Code
Use the below mentioned codes to restore
  1. dd if=/sdcard/mmcblk0p12 of=/dev/block/mmcblk0p12
  2. dd if=/sdcard/mmcblk0p13 of=/dev/block/mmcblk0p13
  3. dd if=/sdcard/mmcblk0p16 of=/dev/block/mmcblk0p16
Copy the Code
Now Phone would reboot, Your Imei is Fixed (Restored) :)

Now, Lets continue for REDMI 1S and REDMI NOTE LTE

before Restoring we have to make sure that the efs partitions are cleared and dont have previous data so follow this codes before restoring
  1. dd if=/dev/zero of=/dev/block/mmcblk0p16
  2. dd if=/dev/zero of=/dev/block/mmcblk0p17
  3. dd if=/dev/zero of=/dev/block/mmcblk0p20
  4. reboot
Copy the Code

  1. dd if=/sdcard/mmcblk0p16 of=/dev/block/mmcblk0p16
  2. dd if=/sdcard/mmcblk0p17 of=/dev/block/mmcblk0p17
  3. dd if=/sdcard/mmcblk0p20 of=/dev/block/mmcblk0p20
Copy the Code
Now Phone would reboot , Your Imei is Fixed (Restored) :)
x-amobee-1: B14D36F17CF7FDC4B53DDA770EA93BCE



Download
  Please reply to view this thread.




PS: Co author by @kailashnj. Thanks a lot for your help.

Favorite70 Share

Rated by 42 people   Experience Prestige Reason  

sufanza77 + 1 Fantastic!
khanikrar + 1 Thanks!
Despoi2006 + 1 Thanks!
duckhan123 + 1 Thanks!
Kamrul + 1 I am on different device but still helpf
koboldo81 + 1 Very useful!!!
Dasari5 + 1 Thanks!
DiLshadSys + 5 Fantastic!
matt_axc + 2 Awesome!
Tapan05 + 1 Thanks!
Rajesh13 + 5 Fantastic!
Wan.Mi4 + 1 Thanks!
iamvamc + 5 Awesome!
rithulr + 1 Awesome!
GR33dyBlackie + 5 Fantastic!
PKUI + 5 Awesome!
PintuChief + 1 Fantastic!
shashankp1 + 10 + 1 Awesome!
zumoku + 2 Awesome!
wisynu + 1 Thanks!
Hyperx84 + 1 Awesome!
muharrem + 1 Thanks!
MarshallRebel + 5 Most Valuable Stuff !
AndroidFuchs + 10 Fantastic!
SandeepXi + 3 Awesome!
Denio7 + 2 Informative, thanks!
geno.thomas + 2 Awesome!

Experience +138  Prestige +7  View Rating Log

Active on Mi India Community :D ...Join in to have fun and more

Senior Member

Rank: 2

Credits
77
Device
Mi MIX
Online time
12 Hours
Send PM
13:01, Nov-13-2014 | From PC
|
if i had no backup for the imei how can i restore invalid imei?

Rated by 1 person   Experience Reason  

akshayAXE + 1 Agreed!

Experience +1  View Rating Log

Gold Member

Rank: 3Rank: 3

Credits
322
Device
Redmi 5 Plus
Online time
98 Hours
Send PM
15:13, May-01-2015 | From PC
|
does anyone know how to repair IMEI if we haven't backup ?

Rated by 1 person   Experience Reason  

raisedadead + 1 Agreed!

Experience +1  View Rating Log

Senior Member

Rank: 2

Credits
33
Device
0
Online time
6 Hours
Send PM
13:21, Feb-13-2018 | From PC
|
Does anybody have the backup files?

Junior Member

Rank: 1

Credits
20
Device
0
Online time
1 Hours
Send PM
12:50, Jan-26-2018 | From PC
|
Very nice, but i've no IMEI backup, anything i can do with the backed up file:mmcblk0p16,17,20?

Elite Member

Rank: 6Rank: 6

Credits
9888
Device
Mi 3
Online time
365 Hours
Send PM

Mi In-Ear HeadphonesMi KeyMi BoxMi BandMi Power BankMi Portable WiFiI Love MIUIFantastic!FlashholicMIUI 2015Awesome!MIUI 6RedmiMi 3Mi TVRedmi 1SMIUI Fan From IndonesiaMIUI 20 Million UsersFan Of MIUI IndiaFan Of MIUI Ex-Yu MIUI 50 Million UsersMIUI Fan from IndiaHilal Ramadan MIUI 4th AnniversaryHappy DiwaliDiwali MIUI Fan From SingaporeAtaturk MourningMIUI V5 ReviewMIUI Fan from Malaysia1st Anniversary300K Forum MembersFan Of MIUI Bangladesh2014 ChristmasThanksgiving DayHappy Singles' DayHappy Valentine's DayMIUI Fan from TurkeySummer Mi BunnyGamer Mi BunnyI Love Mi BunnyAlpaca Mi Bunny MIUI Device TeamMIUI Global Forum 2014Youth PledgeAndroid ElfInbox ZeroOTA FeedbackMi Bunny Game Master MIUI FollowerUpdates LoverMost Active MIUIerForum Contest LoverMIUI FB FollowerHumor MasterMIUI Android 4.4 KitKatStar Of IconsMIUI Device ExpertDie-hard MIUI FanAndroid GuruPioneer of MIUI English Forum

13:47, Nov-11-2014 | From PC
|
Superb. This is an awesome thread combined with your previous post. Would be a life saver when the worst case scenario comes trues. Superb work bro. Keep it up.

Comment

magdag thanks bro  13:48, Nov-11-2014

Elite Member

Work for tomorrow

Rank: 6Rank: 6

Credits
17311
Device
Mi A1
Online time
653 Hours
Send PM

Mi VRMijia Story TellerMi Power Bank 10000MAH Mi HomeMi KeyXiaomi 6 LaunchMi BandMagic CubeMi Selfie StickMi WiFi RouterMi HeadphonesMi BoxMijia Qi CycleMi Notebook AirMi Bluetooth HeadsetMi Power BankUnlock MedalMi Band 2Mi In-Ear HeadphonesXiaomi 7th AnniversaryMarshmallowMIUI 8MIUI 7MIUI 2016MIUI 2015I Love MIUIMIUI Devices ContestFlashholicAwesome!Fantastic!MIUI 6Mi 4iRedmiMi 4cRedmi Note 2Mi PadXiaomi Mi 4Redmi 2Mi 3Redmi 1SMi TVHappy DiwaliMIUI Fan From Philippines2014 ChristmasFan Of MIUI BangladeshMerry Christmas300K Forum MembersMIUI Fan from Turkey900K Forum MembersMIUI Fan From Singapore800K Forum MembersThanksgiving DayDiwali MIUI 5th Anniversary600K Forum MembersHappy Valentine's DayMIUI Fan From BrazilXiaomi 5th AnniversaryHappy New Year500K Forum MembersHappy Singles' Day1st AnniversaryFan Of MIUI IndiaAtaturk Mourning700K Forum MembersMIUI Fan From IndonesiaMIUI Fan from MalaysiaFan Of  MIUI AzerbaijanMIUI 100 Million UsersMIUI Fan From NepalMIUI 4th AnniversaryMIUI 2017Super FridaySurge S1Rocket to FutureMIUI Lucky Friday3 Million Forum App InstallsFan Of MIUI Russia1 Million Forum App InstallsMIUI Monthly Talk1 Million Forum MembersMIUI Happy MedalSuper SundayMIUI Font LoverMIUI PMIUI 9MIUI 7th Anniversary90000 Forum MembersPuzzle MasterSuper ThursdaySuper Wednesday3500K Forum MembersFan Of MIUI UkraineSingapore BirthdayRooster Year of 20171700K Forum MembersI Love 20161800K Forum Members1900K Forum MembersMid-Autumn FestivalMIUI 300 WeeksMIUI 50 Million UsersMIUI 6th AnniversaryOlympics MedalMIUI Forum App1500K Forum Members2100K Forum MembersHilal Ramadan MIUI World TourPokemon Master MedalMIUI Fan from IndiaFan Of MIUI PolandFan Of MIUI ItalySummer Mi BunnyMiPopAlpaca Mi Bunny I Love Mi BunnyGamer Mi BunnyMIUI ReviewMIUI Beta TeamMIUI Device TeamMIUI FollowerAndroid GuruMIUI Medals CollectorMost Active MIUIerHumor MasterStar Of IconsPioneer of MIUI English Forum Mi TalentStar Of TechnologyApp TalentMi Lover MedalTechnology GuruMi Bunny Game Master Ringtone Star App TalentMIUI ExpertTheme Talent2017 Annual AwardsMost Popular Forum UserMIUI KingMaster Of TechnologyMi Story Teller7 Million Forum MembersMIUI G+ FollowerInbox ZeroMIUI Android 4.4 KitKatYouth PledgeUpdates LoverOTA FeedbackForum Contest LoverMIUI FB FollowerMIUI Twitter FollowerDebate MasterDie-hard MIUI FanAndroid ElfMIUI Global Forum 2014Scroll Of Wisdom

13:49, Nov-11-2014 | From PC
|
great ... thanks bro .. very useful

Comment

magdag :)  13:53, Nov-11-2014
Love MiUi

Platinum Member

Rank: 4

Credits
2442
Device
Mi 3
Online time
267 Hours
Send PM

Mi BoxMi KeyMi BandAwesome!MIUI 6I Love MIUIMi TV300K Forum MembersMid-Autumn FestivalMIUI 50 Million Users1st AnniversaryMIUI 4th AnniversaryMIUI Fan from IndiaFan Of MIUI IndiaDiwali Happy Singles' DayThanksgiving DayAtaturk MourningI Love Mi BunnyAlpaca Mi Bunny MIUI Beta TeamAndroid GuruForum Contest LoverMIUI Global Forum 2014OTA FeedbackDie-hard MIUI FanMIUI Android 4.4 KitKatStar Of IconsUpdates LoverMost Active MIUIer

14:03, Nov-11-2014 | Via mobile
|
Thanks bro! Keep up the good work! :)

Comment

magdag Sure  14:08, Nov-11-2014

Elite Member

Rank: 6Rank: 6

Credits
11680
Device
Mi 5
Online time
297 Hours
Send PM

Mi HomeMi BandMi Band 2Mi KeyMi BoxMi In-Ear HeadphonesMIUI 2016Awesome!Fantastic!MIUI 2015MIUI Devices ContestI Love MIUIMIUI 6MIUI 8Redmi 2Mi TVRedmi 1SMi NoteRedmi Note 2RedmiThanksgiving Day1st AnniversaryHappy Singles' DayPokemon Master Medal1400K Forum Members1500K Forum Members700K Forum MembersMIUI 4th AnniversaryFan Of MIUI India2014 ChristmasMIUI Fan from India300K Forum Members800K Forum MembersHappy New Year500K Forum MembersI Love Mi BunnyMIUI Device TeamSurpriseMost Active MIUIerMIUI Weekly Devices QuizStar Of IconsMIUI Global Forum 2014Android ElfMIUI FollowerDebate MasterTechnology GuruMi Lover MedalAndroid GuruForum Contest LoverMIUI Device ExpertDie-hard MIUI FanMIUI Android 4.4 KitKatUpdates Lover

14:24, Nov-11-2014 | Via mobile
|
This post was edited by kailashnj at 22:29, Nov-11-2014

thanks a lot for the info, this is one helpful thread. Many people will benefit from this thread.

Elite Member

Rank: 6Rank: 6

Credits
9403
Device
Mi 3
Online time
320 Hours
Send PM

Mi KeyMi BandMi In-Ear HeadphonesMi BoxFantastic!MIUI 2016Awesome!MIUI 2015MIUI 6I Love MIUIFlashholicMi 3Mi TVRedmiRedmi 1SRedmi NoteFan Of MIUI IndiaThanksgiving DayMIUI Fan From Indonesia1st AnniversaryMIUI Fan From SingaporeMIUI Fan From PhilippinesMIUI Fan from IndiaMIUI 4th AnniversaryDiwali MIUI 50 Million UsersMIUI Fan from MalaysiaAtaturk MourningHappy DiwaliFan Of MIUI Ex-Yu Happy Singles' DayFan Of  MIUI Azerbaijan2014 ChristmasFan Of MIUI Bangladesh300K Forum MembersHappy Valentine's DayMIUI Fan from TurkeyGamer Mi BunnyMiPopI Love Mi BunnySummer Mi BunnyAlpaca Mi Bunny MIUI News TeamInbox ZeroYouth PledgeMi Bunny Game Master Star MIUI News Team MemberPioneer of MIUI English Forum Android ElfAndroid GuruUpdates LoverStar Of IconsMIUI FB FollowerForum Contest LoverHumor MasterMIUI FollowerRedmi Quiz MasterMIUI Android 4.4 KitKatOTA FeedbackDie-hard MIUI FanMIUI Global Forum 2014

15:06, Nov-11-2014 | From PC
|
Thanks!...Great tutorial!

Senior Member

Rank: 2

Credits
135
Device
Redmi 1S
Online time
2 Hours
Send PM

Awesome!Fan Of MIUI IndiaDie-hard MIUI FanMIUI Global Forum 2014

15:19, Nov-11-2014 | From PC
|
Great tutorial brother.

Diamond Member

Rank: 5Rank: 5

Credits
592
Device
Redmi 3S Prime
Online time
54 Hours
Send PM

Mi BoxMIUI 6Fantastic!I Love MIUIMIUI Fan From PhilippinesHappy Diwali300K Forum MembersDiwali Happy Singles' Day2014 Christmas500K Forum MembersFan Of MIUI IndiaMIUI 50 Million UsersMIUI Fan from IndiaI Love Mi BunnySummer Mi BunnyGamer Mi BunnyAlpaca Mi Bunny Humor MasterRedmi Quiz MasterMIUI Global Forum 2014Android GuruMIUI Android 4.4 KitKatUpdates LoverYouth PledgeInbox ZeroMi Lover MedalDie-hard MIUI Fan

16:02, Nov-11-2014 | From PC
|
nice one

Elite Member

Rank: 6Rank: 6

Credits
8928
Device
Others
Online time
217 Hours
Send PM

Unlock MedalMi BoxMi KeyMi BandMi WiFi RouterMi In-Ear HeadphonesMi Power Bank 10000MAH Xiaomi 7th AnniversaryMIUI 2015MIUI 6I Love MIUIFantastic!Awesome!FlashholicMIUI 2016MIUI 8MIUI 7Redmi NoteMi 2Xiaomi Mi 4Mi 3RedmiMIUI 50 Million UsersFan Of MIUI IndiaHappy Diwali300K Forum MembersMIUI 4th AnniversaryMIUI Fan From PhilippinesHappy Valentine's DayFan Of MIUI Ex-Yu MIUI Fan from MalaysiaMIUI 2017MIUI Fan From SingaporeMIUI Weekly Poll1st AnniversaryMIUI Fan from IndiaHilal Ramadan Diwali Thanksgiving DayMIUI Fan from TurkeyFan Of MIUI BangladeshHappy Singles' DayAtaturk MourningAlpaca Mi Bunny Gamer Mi BunnySummer Mi BunnyI Love Mi BunnyMIUI Global Forum 2014OTA FeedbackAndroid ElfPioneer of MIUI English Forum MIUI FB FollowerAndroid GuruMIUI Resources TeamMIUI FollowerForum Contest LoverMIUI Android 4.4 KitKatStar Of IconsUpdates LoverInbox ZeroMi Lover MedalRedmi Quiz MasterWallpaper ExpertYouth PledgeHumor MasterTechnology GuruMost Active MIUIerDie-hard MIUI FanDebate Master

16:03, Nov-11-2014 | From PC
|
very very nice tutorial! thanks
Cheers
CosmicPaladin

Up up and fly away!

Junior Member

Rank: 1

Credits
14
Device
0
Online time
12 Hours
Send PM
16:29, Nov-11-2014 | From PC
|
hw to install

Comment

Dzolhisham read carefully  17:39, Nov-11-2014

Credits Management

Quick Reply Top Return to the list