Elite Member

Active on Mi India Community:

Rank: 6Rank: 6

Credits
17957
Device
Mi 5
Online time
1463 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

[Tips & Tutorials] BACKUP IMEI MI3 , Mi4 , redmi 1s and other Mi phones [ tweak ]

  [ Promote]
137105 1633 |
20:34, Nov-05-2014 | From PC
|
|
Go to reply no.
This post was edited by magdag at 10:15, Jan-26-2015

Hey MIUIers,

*** UPDATE NOTE :-  More Devices Added Mi2/S , Redmi Note LTE
                                              How to restore the IMEI -
   HERE


Many people complain about their phone not able to get network after flashing a new rom. I have got some thing really useful that will ensure that people will not have this complain again, i.e Backing Up EFS for your phone. Always Remember it's better to be safe than be sorry later, so, just do the backup and save it some where safe. So that when you loose the IMEI of your phone accidently, you have a backup for it and can live in peace.

Question: What is EFS?
Answer: EFS stands for " Encrypted File System" , it encrypts the critial phone identification data like IMEI, MAC ADDRESS of the device and stores them in a EFS partition.

Question : Why do we loose our network connectivity once we flash a custom Rom?
Answer : When our phone is not able to find its IMEI number, it will not be able to connect onto a network. This generally happen if you have lost your EFS drive.

Question : Why do we loose EFS of our phone.
Answer : We can loose EFS if we flash wrong rom (something that is not made for your phone) like a custom rom. Every flasher sometime or the other has faced this issue in their life.

Question : What does EFS Backup Do ?
Answer : Backing Up EFS will make sure if ever you loosed your IMEI , You dont have to worry, and rather Fix your phone in minutes. Its a DIY.

Question : What are the files Backed up?
Answer : These are three (3) Partitions, which hold imei and Nv - data . These Partitions are  MODEMST1, MODEMST2 and FSG .


Prerequisites:

  • You need to install Miflash, for the drivers (Miflash Setup link at end of post)
  • You need to enable usb debugging from developer options (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 well
  • You need to have a Windows Operating System or terminal Emulator on Phone with root access

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



So, lets begin ...

Connect the phone to pc, open COMMAND PROMPT and browse to the Miflash installed directory.

Untitled.png


Enter the below commands one by one (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


Next enter the following commands one by one:
  1. adb devices
  2. adb shell
  3. su
Copy the Code
Now, you got the Root access (allow any thing popping up phone regarding root permissions).
if you get a error like permission denied, KINDLY CHECK FOR YOUR ROOT ACCESS AND PERMISSION


Now, we are good to backup Mi2/2S, Mi3, Mi4

Enter the following commands one by one:
  1. dd if=/dev/block/mmcblk0p12 of=/sdcard/mmcblk0p12
  2. dd if=/dev/block/mmcblk0p13 of=/sdcard/mmcblk0p13
  3. dd if=/dev/block/mmcblk0p16 of=/sdcard/mmcblk0p16
Copy the Code
Now, the backup is being done. You can check the Internal Storage from your phone for the files named mmcblk0p12, p13 and p16. Copy these files and keep them safe.

Untitle11d.png
Now , we good to continue for Redmi 1S  and Redmi Note LTE (4G)
  1. dd if=/dev/block/mmcblk0p16 of=/sdcard/mmcblk0p16
  2. dd if=/dev/block/mmcblk0p17 of=/sdcard/mmcblk0p17
  3. dd if=/dev/block/mmcblk0p20 of=/sdcard/mmcblk0p20
Copy the Code
After the the backup is made, you can check the Internal Storage from your phone for the files named mmcblk0p16, p17and p20. Copy these files and keep them safe.

HOW TO RESTORE THE IMEI - >  http://en.miui.com/thread-60007-1-1.html

Download
  Please reply to view this thread.




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





Favorite100 Share

Comment

Kamrul Please add MI5....  04:19, Jun-12-2016

Rated by 103 people   Experience Prestige Reason  

Farbus.Vix + 1 Awesome!
gavroche8 + 1 Great!
Findmenowzero + 4 Great!
moeztuerk + 2 Fantastic!
mnnahid + 1 Thanks!
becometa + 1 Fantastic!
iepouel + 2 Fantastic!
VirikVik + 1 Thanks!
krish007 + 1 Thanks!
gromadsky + 1 Thanks!
RumenKal + 1 Great!
Deni7 + 1 Thanks!
Dasari5 + 1 Fantastic!
3lNzPzFd + 1 Great!
bapu123 + 2 Fantastic!
Anticristo007 + 1 Awesome!
mangmoom + 1 Great!
BondanOwen + 5 Great!
j.bliz + 1 Awesome!
barnidhars + 1 Thanks!
chgbhat + 5 Thanks!
Cternity + 1 Thanks!
dimas10 + 5 Thanks!
matt_axc + 2 Awesome!
Oemar + 1 Thanks!
Ryo_Hanzo_Devil + 2 Thanks!
TweaknFreak + 5 Fantastic!

Experience +246  Prestige +4  View Rating Log

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

Elite Member

Active on Mi India Community:

Rank: 6Rank: 6

Credits
17957
Device
Mi 5
Online time
1463 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

 Author| 21:20, Nov-05-2014 | From PC
|
A great Appreciation to the Co-Author of the thread @kailashnj
Active on Mi India Community :D ...Join in to have fun and more

Elite Member

Rank: 6Rank: 6

Credits
11158
Device
Mi3
Online time
931 Hours
Send PM

Mi In-Ear HeadphonesI Love MIUIMi 3MIUI 3rd AnniversaryHappy Singles' Day100k Forum MembersDiwali MIUI 20 Million UsersAtaturk MourningMIUI 4th Anniversary90000 Forum MembersI Love Mi BunnyMost Active MIUIerMIUI Wallpaper ContestMost Popular Forum UserOTA FeedbackPioneer of MIUI English Forum Star Of Themes

20:54, Nov-05-2014 | From PC
|
Very useful. Many thanks

Comment

magdag thnx ...:)  20:56, Nov-05-2014

Supreme Member

Bugs and Beta Mod

Rank: 7Rank: 7Rank: 7

Credits
23031
Device
Redmi Note 3
Online time
1157 Hours
Send PM

MIUI 2015MIUI 7Redmi 3Mi 3Redmi 2Fan Of MIUI IndiaMIUI Fan from MalaysiaFan Of MIUI BangladeshMIUI Fan from IndiaDiwali Merry ChristmasFan of MIUI MyanmarMIUI Beta TeamMIUI Device TeamClass A Beta TeamMIUI Beta Team VIPMIUI Weekly Devices QuizStar Bug FinderSuper ModeratorRedmi Note 3 ExplorerDie-hard MIUI FanMIUI Twitter FollowerSenior Beta TesterMIUI FB Follower

21:04, Nov-05-2014 | From PC
|
Awesome indeed...always the best...couldn't ask more..

Comment

magdag hahahha. thanks bro  21:06, Nov-05-2014

Elite Member

Rank: 6Rank: 6

Credits
11681
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

21:21, Nov-05-2014 | From PC
|
Very nice thread - will help lot of people on the forum.

Rated by 1 person   Experience Reason  

magdag + 5 Thanks!

Experience +5  View Rating Log

Proud owner of Redmi 1s and Mi3

Elite Member

Rank: 6Rank: 6

Credits
10469
Device
Redmi 1S
Online time
294 Hours
Send PM

Mi BoxMi In-Ear HeadphonesMi KeyFantastic!Awesome!FlashholicI Love MIUIMIUI 6RedmiMIUI 50 Million UsersMIUI Fan from India300K Forum Members1st AnniversaryDiwali Fan Of MIUI Ex-Yu Fan Of MIUI IndiaMIUI 4th Anniversary2014 ChristmasHappy Singles' DayThanksgiving DayAlpaca Mi Bunny Gamer Mi BunnySummer Mi BunnyI Love Mi BunnyAndroid GuruMIUI Android 4.4 KitKatStar Of IconsMIUI Global Forum 2014Forum Contest LoverRedmi Quiz MasterDie-hard MIUI FanHumor MasterMIUI FollowerOTA FeedbackUpdates LoverInbox ZeroYouth Pledge

02:15, Nov-06-2014 | Via mobile
|
Thanks for the info and its very useful.

Diamond Member

Rank: 5Rank: 5

Credits
753
Device
Redmi 1S
Online time
50 Hours
Send PM

Mi In-Ear HeadphonesMi BandMi BoxMIUI 6RedmiAtaturk MourningHappy Diwali700K Forum MembersDiwali Happy Valentine's DayFan Of MIUI India300K Forum MembersThanksgiving DayMIUI Fan from IndiaAlpaca Mi Bunny I Love Mi BunnySummer Mi BunnyInbox ZeroHumor MasterDie-hard MIUI FanMIUI Global Forum 2014

02:22, Nov-06-2014 | From PC
|
Informative and step by step guide.Thank you

Platinum Member

Rank: 4

Credits
2581
Device
Mi 6
Online time
173 Hours
Send PM

Mi BandMi BoxMi In-Ear HeadphonesFlashholicI Love MIUIMIUI 6Fantastic!Awesome!Mi 2Mi 3Redmi Note1 Million Forum MembersMIUI 50 Million UsersHilal Ramadan Thanksgiving Day1st AnniversaryMIUI Fan from MalaysiaMIUI Fan From Philippines300K Forum MembersHappy Singles' DayMIUI Fan From IndonesiaMIUI 4th Anniversary2014 ChristmasHappy DiwaliI Love Mi BunnySummer Mi BunnyGamer Mi BunnyAlpaca Mi Bunny MIUI Porting TeamMIUI FollowerPioneer of MIUI English Forum OTA FeedbackStar Of IconsAndroid GuruInbox ZeroMIUI Global Forum 2014Die-hard MIUI FanMIUI Designer TeamMIUI Medals CollectorUpdates LoverMIUI Android 4.4 KitKat

02:37, Nov-06-2014 | From PC
|
Wow amazing.... Thanks for share mate

MIUI Beta Team - Global

Rank: 6Rank: 6

Credits
3239
Device
Redmi Y2
Online time
268 Hours
Send PM

Mi KeyMi HomeMi BoxMi BandMi In-Ear HeadphonesNinebot MiniMIUI 2016MIUI 7MIUI 8Fantastic!I Love MIUIMIUI Devices ContestMIUI 6MIUI 2015Mi 3Redmi 1SRedmi Note 4Redmi Note 34 Million Forum MembersThanksgiving DayMIUI Font Lover2014 ChristmasMIUI Forum AppRocket to FutureHappy Singles' DayFan Of MIUI Ex-Yu MIUI 2017MIUI Fan from India300K Forum MembersDiwali MIUI 9Fan Of MIUI IndiaMIUI Fan From PhilippinesMIUI 6th Anniversary1500K Forum MembersMIUI 300 WeeksMIUI Marathon Medal1 Million Forum MembersHappy Valentine's DayXiaomi 6th AnniversaryMIUI 100 Million Users900K Forum MembersI Love Mi BunnyGamer Mi BunnyAlpaca Mi Bunny MIUI 8th AnniversaryStar WarsXiaomi 8th AnniversaryMost Active MIUIerSurpriseMIUI Weekly Devices QuizMi Lover MedalMIUI Global Forum 2014Forum Contest LoverRingtone Star Mi TalentTechnology GuruDebate MasterWallpaper ExpertMIUI FollowerMIUI Android 4.4 KitKatInbox ZeroUpdates LoverHumor MasterRedmi Quiz Master

03:14, Nov-06-2014 | From PC
|
Very very useful and detail tutorial.Thanks a lot.

Elite Member

Rank: 6Rank: 6

Credits
13126
Device
Xiaomi Mi 6X
Online time
501 Hours
Send PM

Mi Power StripMi T-ShirtMi Band 2Mijia Smart ShoesMi HomeMi Kids WatchYi Action CameraMi BoxMi KeyNinety Degree LuggageMi WiFi RouterMi Bluetooth SpeakerMi  BunnyUnlock MedalNinebot MiniMi BandMi Bluetooth Canon SpeakerMi Power BankMi Portable WiFiMi In-Ear HeadphonesMijia Electric ScooterXiaomi 6 LaunchMi MIXXiaomi 7th AnniversaryMIUI 8MIUI 2016MarshmallowAwesome!I Love MIUIMIUI 2015FlashholicMIUI 6MIUI 7Fantastic!AnTuTuMIUI Devices ContestMi 2Mi TVMi PadMi Note 2Mi 4iMi 34 Million Forum MembersRedmiXiaomi Mi 6Mi NoteRedmi 1SXiaomi Mi 4Mi 5sRedmi 3Mi Note ProRedmi Note 4Redmi NoteMi 4cRedmi Note 3Mi 5s PlusRedmi 2MIUI Fan From SingaporeHappy New Year600K Forum MembersMIUI Fan From BrazilXiaomi 5th Anniversary500K Forum Members700K Forum MembersMIUI 100 Million UsersMIUI Fan From IndonesiaHilal Ramadan Ataturk MourningHappy DiwaliDiwali MIUI Fan from IndiaMIUI Fan From PhilippinesMIUI 50 Million UsersFan Of MIUI Ex-Yu Fan Of MIUI India300K Forum MembersHappy Singles' DayMIUI PMIUI 4th Anniversary2014 ChristmasFan Of MIUI BangladeshFan Of  MIUI AzerbaijanMIUI Fan from TurkeyMIUI Happy MedalWomen's Day MedalThanksgiving DayMIUI 5th AnniversaryMIUI Fan from MalaysiaHappy Valentine's DayMerry ChristmasFan Of MIUI Spain1900K Forum Members1st AnniversaryFan Of MIUI PolandMIUI World TourSuper FridayMIUI 20171500K Forum Members1400K Forum Members1800K Forum MembersFan Of MIUI ItalyRocket to FutureMIUI Drawing TalentFan Of MIUI RussiaI Love 20161 Million Forum App InstallsMi Live MedalPokemon Master MedalSuper MondayMIUI Lucky FridayMIUI Weekly Poll2100K Forum MembersSingapore Merlion MedalMIUI Forum AppFan of MIUI Myanmar5 Million Forum App Installs1 Million Forum MembersXiaomi 6th AnniversarySuper Thursday900K Forum Members800K Forum MembersMIUI 9MIUI Philippines Fan MeetupFan Of MIUI UkraineHappy Holi MedalMIUI 300 WeeksMIUI Marathon MedalMIUI 6th AnniversaryPuzzle MasterOlympics MedalMalaysia AnniversarySurge S15 Million Forum PostsMIUI Fan From Myanmar1300K Forum MembersUEFA EURO MedalMIUI Fan From NepalI Love Mi BunnyMiPopSummer Mi BunnyAlpaca Mi Bunny Gamer Mi BunnyStar Wars25 Million StrongMIUI 8th AnniversaryBlack SharkXiaomi 8th Anniversary9 Million Forum MembersSurpriseMIUI 10MIUI SuperstarMIUI Weekly Devices QuizMIUI Halloween 2017Theme TalentMIUI Halloween 20188 Million Forum MembersDiscuss HereHeart to HeartMIUI Twitter FollowerHumor MasterDebate MasterRingtone TalentRingtone Star Mi Bunny Game Master MIUI G+ FollowerMi TalentMi Story TellerMi Lover MedalApp StarMIUI ExpertStar Of TechnologyApp TalentTechnology GuruMaster Of TechnologyMIUI Medals CollectorScroll Of WisdomInbox ZeroMIUI Android 4.4 KitKatYouth PledgeDie-hard MIUI FanUpdates LoverMIUI FollowerStar Of IconsRedmi Quiz MasterAndroid GuruMIUI Global Forum 2014OTA FeedbackMIUI FB FollowerPioneer of MIUI English Forum Forum Contest LoverAndroid Elf

03:19, Nov-06-2014 | From PC
|

Very useful. Many thanks

Credits Management

Quick Reply Top Return to the list