Mi A1 persist.img - Custom Roms & Mac Change?

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
So it seems, some custom roms floating around out there can cause the WiFi Mac address to get changed, my understanding it has to do with the persist getting messed up.

There are a few tools floating around on XDA, one is the Persist_Resurrector.

But it's my understanding, if you have not messed with flashing another persist.img, then you are safe, and flashing back at Stock ROM will correct this.

I had one or two custom roms change my wifi mac, not sure which ones now, but I just flashed stock oreo back, and my original mac address is back, so I'm assuming I am all good, and this problem isn't bad, as long as you don't mess with another persist.img, flash stock back and you're golden?

How can I check if my persist partition is ok?

Thanks
 
Last edited:

Dead-neM

Senior Member
Jan 23, 2013
1,003
623
0
France
@cherryb8844

Sorry remove what?
I think he post on the wrong thread and ask mod to remove post

For your question I still don't know I'm really happy with stock experience and those persist partition froze me on moving to a custom ROM

But all MiA1 are not the same and yours seems to have survive also they have probably fix this problem on newer custom ROM build
 

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
I think he post on the wrong thread and ask mod to remove post

For your question I still don't know I'm really happy with stock experience and those persist partition froze me on moving to a custom ROM

But all MiA1 are not the same and yours seems to have survive also they have probably fix this problem on newer custom ROM build
Ok on removed message...

I like the Stock too, I just wish Xiaomi could of put out a ROM, that doesn't have Gapps, and allow the users to pick their own...

I personally don't want anything google on my phone, or as little as can be possibly had...
 

barrack1

Senior Member
Sep 19, 2014
399
75
48
Ok on removed message...

I like the Stock too, I just wish Xiaomi could of put out a ROM, that doesn't have Gapps, and allow the users to pick their own...
I personally don't want anything google on my phone, or as little as can be possibly had...
That would be bizzare if it happened for a AndroidOne phone not to have 'google anything' on the phone.
 
  • Like
Reactions: muruu and TrueMS

joeyhuab

Recognized Developer
Nov 5, 2012
2,934
11,893
203
26
Antipolo
evolution-x.org
So it seems, some custom roms floating around out there can cause the WiFi Mac address to get changed, my understanding it has to do with the persist getting messed up.

There are a few tools floating around on XDA, one is the Persist_Resurrector.

But it's my understanding, if you have not messed with flashing another persist.img, then you are safe, and flashing back at Stock ROM will correct this.

I had one or two custom roms change my wifi mac, not sure which ones now, but I just flashed stock oreo back, and my original mac address is back, so I'm assuming I am all good, and this problem isn't bad, as long as you don't mess with another persist.img, flash stock back and you're golden?

How can I check if my persist partition is ok?

Thanks
As long as you have the original Xiaomi WiFi and BT Mac addresses, your persist partition is untouched.
 

kudos1uk

Senior Member
Feb 6, 2014
470
178
73
Ringwood
Ok on removed message...

I like the Stock too, I just wish Xiaomi could of put out a ROM, that doesn't have Gapps, and allow the users to pick their own...

I personally don't want anything google on my phone, or as little as can be possibly had...
Why not just disable the Gapps you don't want.

I have these apps I don't use frozen (updates removed first):
Google play games
Google play books
Google play movies
Google play music
korean input
indic input
pinyin input
and zhuyin input all disabled.

I don't disable them because I object to Google, I freeze them because I don't want them to update, once updated you have two copies on your device, the outdated original stays in system, the new uses your storage (for an app you don't want).

I have also removed the Xiaomi installed user apps I don't use, feedback, mi store etc
 

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
As long as you have the original Xiaomi WiFi and BT Mac addresses, your persist partition is untouched.
Hey joeyhuab, the persist got messed up, but I had the original WiFi Mac address from my router, LOL...

As far as the BT Mac, well, if the persist is messed up, is it going to change it too?

I figured out how to flash stock rom, using the persist.img with MiFlash tool and got it all working, I guess for now, not sure the BT Mac address was changed or not...
@kudos1uk, yeah titanium is good to freeze apps, I was doing that before in Stock...
 

kudos1uk

Senior Member
Feb 6, 2014
470
178
73
Ringwood
Yes of course the app manager, I just mentioned titanium, I just find it easier to scroll through it, either way works...
Titanium is great but it needs root and I don't know if you can use it without changing the system partition and stopping OTA, app manager is safer as you can't disable important apps by mistake, Google only allow you to disable non critical apps.

I only mention it as you can keep your phone 100% stock without root and disable most Google apps which can be easily turned back on in the future, of course things like Play Store can't be disabled.
 

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
Back to the original topic...

So my persist was messed up, and I restored it, but the only way I could figure this is with the image on xiaomifirmware.
https://xiaomifirmware.com/guides-and-tips/restore-persist-partition-xiaomi-mi-a1/

Hopefully this wasn't such a bad move, wifi works, and I see a mac address, but I'm not sure if they are the original, also I can make calls, so not sure if the imei is the original, or the network, just updated the phone to a new iemi.

How can I tell, or is there a way, if I have everything back to original?

Thanks
 

upilguebu

Senior Member
Mar 15, 2013
984
277
0
Back to the original topic...

So my persist was messed up, and I restored it, but the only way I could figure this is with the image on xiaomifirmware.
https://xiaomifirmware.com/guides-and-tips/restore-persist-partition-xiaomi-mi-a1/

Hopefully this wasn't such a bad move, wifi works, and I see a mac address, but I'm not sure if they are the original, also I can make calls, so not sure if the imei is the original, or the network, just updated the phone to a new iemi.

How can I tell, or is there a way, if I have everything back to original?

Thanks
Is that way considered as flashing another phones persist file that not belong to our phone? Its just because we don't know where that persist (that available there) come from. I don't know for sure so CMIIW. Because i restored my persist by persist resurrector to get my original mac back. I don't wanna wreck my device by flashing another persist file that I don't know where it come from. One more time, correct me if I wrong.
 

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
Is that way considered as flashing another phones persist file that not belong to our phone? Its just because we don't know where that persist (that available there) come from. I don't know for sure so CMIIW. Because i restored my persist by persist resurrector to get my original mac back. I don't wanna wreck my device by flashing another persist file that I don't know where it come from. One more time, correct me if I wrong.
I don't think by flashing with this persist.img we call the phone damaged, just that the mac addresses are changed, maybe the imei too, but I made calls and text ok, so if it changed my imei, the carrier picked it up no problem...

For now, I'm trying to get the phone booted into edl mode, and oh what a PAIN in the, you know what! LOL...

Just a few simple cmds and the hours it seems to take to do things, heck, running Linux is simpler then this, I could of installed several Unix/Linux systems, by the time I have figured this out! LOL

Last go, I installed the 15 Seconds ADB installer by Snoop, and adb devices wouldn't show anything, then I tried the minimal adb setup/installer and same problem. Now I'm going to try the android sdk and install and the platform tools and see if it works this way, mind you, all this time, to make sure everything is clean, I have been constantly wiping out my box, reformatting it, and putting back a clonezilla image I have for Win8.... OH BOY, so much bloody work...

The WHOLE goal here is, that supposedly, you place phone in; fastboot oem edl, have the oreo rawprogram0.xml edited, so it has 'persist.img' in it, then flash with MiFlash and this is suppose to flash the original stock persist.img

BUT, I see that a lot of people are saying the only way to get edl is to open phone, and short out a few connectors on the board, which put's it into edl...

http://en.miui.com/thread-1680467-1-1.html

Also I read, you hold both up/dn vol and power and wait for phone to vibrate twice and this makes edl...

So I've been going to all this trouble to try and run; adb reboot-edl because fastboot oem edl always gives me some failed...

Hmm
 
Last edited:

roshan2989

Senior Member
Apr 10, 2012
801
183
73
Purgatory
Titanium is great but it needs root and I don't know if you can use it without changing the system partition and stopping OTA, app manager is safer as you can't disable important apps by mistake, Google only allow you to disable non critical apps.

I only mention it as you can keep your phone 100% stock without root and disable most Google apps which can be easily turned back on in the future, of course things like Play Store can't be disabled.
if you want to remove the apps,you can use the bat script,no root needed,put in the adb folder and give the necessary permission,run the bat script..mi launcher is disable by default

View attachment 4526190
 

DoR3M3

Senior Member
Feb 17, 2018
1,255
377
0
Portwenn
Is that way considered as flashing another phones persist file that not belong to our phone? Its just because we don't know where that persist (that available there) come from. I don't know for sure so CMIIW. Because i restored my persist by persist resurrector to get my original mac back. I don't wanna wreck my device by flashing another persist file that I don't know where it come from. One more time, correct me if I wrong.
if you want to remove the apps,you can use the bat script,no root needed,put in the adb folder and give the necessary permission,run the bat script..mi launcher is disable by default

View attachment 4526190
Ahh interesting...

Thanks

P.S. Post all good, issue resolved, no need to reply... :)
 
Last edited: