yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] CosmicDan:
Nice work :)

I think a random MAC would be useful, legal issues aside. There are tools out there that anyone can use to freely edit and/or change MAC addresses in many hardware. The tools themselves are not illegal, bit the use of specific MAC's or non-original MAC's in certain situations may be illegal.

It would be good if you could provide an option to enter MAC manually too. The original MAC may be recoverable in some way, possibly by contacting Xiaomi or something. It sadly isn't printed anywhere on the box or anything.

That's a good point. A corrupt persist may be why some users cannot enrol more than X fingerprints. Not sure though.
[Xiaomi Mi A1 Guides, News, & Discussion] unos21:
Can someone mention which custom ROMs possibly change persist partition?
[Xiaomi Mi A1 Guides, News, & Discussion] CosmicDan:
All of them do AFAIK. Maybe only all 8.1 firmware.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
I will try to implement both in the next release. Both are easy to add since most of the code remains same. No ETAs but it could be in the next week if possible. But if I cannot do it within next week then the release will be directly after 16th of may.
[Xiaomi Mi A1 Guides, News, & Discussion] t0per666:
Am i the only one not having wifi issues after flashing stock rom? I used a lot of custom 8.1 roms and if theres new update in stock rom i flashed back to test it and not having wifi not connecting issues. Hmm ?
[Xiaomi Mi A1 Guides, News, & Discussion] manan001:
After flashing custom rom have you tried connecting to 5hz wireless network?
[Xiaomi Mi A1 Guides, News, & Discussion] ShazlieyAzizan:
This tool just help me fix my phone , thank you man :v
[Xiaomi Mi A1 Guides, News, & Discussion] ruperxl89:
and how did you do it? You were in the last rom stock right? I'm going crazy and I can not solve it, thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] ShazlieyAzizan:
im from cardinal aosp to stock rom based on nougat , i realize that stock rom cant connect to my wifi , then i look up to this thread and follow the instruction . that's it and all fixed now
[Xiaomi Mi A1 Guides, News, & Discussion] ruperxl89:
thank you i will try this now, i tried with last oreo build yesterday and it failed, sorry for my english

---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------

but you have some backup of /persist?
[Xiaomi Mi A1 Guides, News, & Discussion] Raskaipika:
Hi mate, I've lost my persist partition (original), because of that, I've to erase the persist partition and reflash it from the "stock rom image" to stop the continue reboot bug. The IMEIs and S/N work great but the Wi-Fi and Bluetooth Macs are different now from the originals.

I know which were my MACs, is there some method to re-insert them???

Thanks for your time, kind regards.
[Xiaomi Mi A1 Guides, News, & Discussion] JoKeRLeE:
I totally lost imei , sn , FSN and PSN due wrongly clicked flash_factory.bat , i send back for warranty but they can't fix and refuse to change board ( even i want to pay) .. hope this tools can help me find back my original mac address when i get back my device
[Xiaomi Mi A1 Guides, News, & Discussion] ShazlieyAzizan:
yes i do have

---------- Post added at 02:02 PM ---------- Previous post was at 01:59 PM ----------

yeah actually they should refuse to check your phone because you the one who mess with the phone . hahah english tak padu type melayu la , imei lost semua tu sebab kacau system dia kan ? kalau betul nak hantar warranty ksi rosak die punya software sampai blank then kata jadi lepas update software , dorang confirm boleh tolong , anyway goodluck
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
In the v2 there will be a feature to add MAC manually.
[Xiaomi Mi A1 Guides, News, & Discussion] Raskaipika:
It will possible add too the Bluetooth MAC???
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
It is easily possible to add it. But it will need writing the whole code again. I will be busy with exams so it is on top of my to do list as soon as exams are over.
[Xiaomi Mi A1 Guides, News, & Discussion] xflowy:
i need some files?
[Xiaomi Mi A1 Guides, News, & Discussion] THEATT:
Can not use it

I have used Resurrection remix 6.0 made by tissot for a while and I don't have any intention to use stock rom anymore, but a problem appears while I use the latest update (05-25) MY WIFI can't even connect, I've read a lot in this thread that many people do this method on the RR rom and it works, but not for me, I'm getting stuck on the 3rd Step and it does not do anything, so anyways I can fix it?, If I need to flash to stock rom, which stock rom I should flash since I've seen a lot of people complaining about the phone is always reboot after 10 sec when they are updating the stock rom, any guidance for it will be really thankful

p.s: I haven't flashed any of persist.img or doing something with img except using RR rom for a while
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
You can't use persist resurrector tool on RR. It's made for stock rom. If you haven't used anyone's persist image, then your wifi mac will be ok. Flash latest stock rom and see wifi and Bluetooth mac addresses.If you see something wrong, you can restore wifi mac with this tool.
[Xiaomi Mi A1 Guides, News, & Discussion] THEATT:
well thanks man gonna try it after the MIUI download has been activated since it shuts down right now
[Xiaomi Mi A1 Guides, News, & Discussion] DoR3M3:
I had a custom rom, or possibly two change my WiFi Mac address, and I was told that the persist partition was bad, and to use a tool like this. But I flashed back to Stock Oreo to see what would happened, and my original Mac Address had returned, and the Wifi worked, so this makes me think that my persist partition wasn't bad, so then, now what?

I thought if the persist partition was bad, the stock rom would flash it back and correct it, since it has it's own persist.img...

Hmm
[Xiaomi Mi A1 Guides, News, & Discussion] sadatxda:
I used this tool in a custom ROM.Will those files I got be the same as in stock ROM? I mean can I use this backup if I go back to stock?
[Xiaomi Mi A1 Guides, News, & Discussion] xCorty:
When i try to start repair he say error code 0x004
[Xiaomi Mi A1 Guides, News, & Discussion] co0che:
espero que me funcione
[Xiaomi Mi A1 Guides, News, & Discussion] ecko665:
Same here, get the same message
[Xiaomi Mi A1 Guides, News, & Discussion] Rakesh rawap:
Iam on aim V3.2 official [April patch] I want to change rom . Will I loose my Mac if I flash any other rom ? Plox answer it
[Xiaomi Mi A1 Guides, News, & Discussion] Niksior:
It depends on rom. Just backup everything before change

There is wanam's tool "partitions backup", or do it manually by dd

Wysłane z mojego Mi A1 przy użyciu Tapatalka
[Xiaomi Mi A1 Guides, News, & Discussion] Ayrton990:
Thank You so much. Its working correctly in Official LineageOS no need to go back to stock =D
[Xiaomi Mi A1 Guides, News, & Discussion] cheeze.keyk:
Okay Im in stock rom with july sec. patch and after flashing Franco Kernel my wifi wont turn on. I already tried this tool but still my wifi doesn't work and also the mac address starts with 02 followed by zeros. any other work around guys? thank you so much.

Edit: I just flashed the latest Void Kernel and now my wifi is working again.
[Xiaomi Mi A1 Guides, News, & Discussion] infuerano:
I am so thankful mate. You saved my phone's and my life. WIFI is working again. Thanks, mate thanks a lot.
[Xiaomi Mi A1 Guides, News, & Discussion] co0che:
Hello, sorry for my English

The problem I have when using this program, I do not pass from point 2

The program is caught.

[IMG="https://i.imgur.com/JZo4zzO.png"]https://i.imgur.com/JZo4zzO.png[/IMG]
[Xiaomi Mi A1 Guides, News, & Discussion] Shubham285:
HELP

HELP i flashed franco kernel for custom rom 8.1.0 on stock and now my wifi is broken with the mac address as 02.00 thing plz solve the problem
[Xiaomi Mi A1 Guides, News, & Discussion] keteflips:
Can this work in a Mi Note 3 with missing persist partition? :(
[Xiaomi Mi A1 Guides, News, & Discussion] אלרז:
i can't restore my presist partition because i cant boot up my mi a1

alola!!!!

I tried other methods to fix the persist patition missing but nothing worked to me!!!

when the flashing via miflash tool is success it still reboots after the little sqare of mi at the botton of my screen!!!

after that its just keeps rebooting.....

Can anyone help me?:confused::(:crying:
[Xiaomi Mi A1 Guides, News, & Discussion] egowest06:
İt not working for me. I using now 9. But ı have wifi problem mac adress 02.00.00xxxx. How can I solve ?
[Xiaomi Mi A1 Guides, News, & Discussion] tatosamp:
Tried this utility on My rooted Pie release stable 10.0.3, it wont update the wifi to factory the Bluetooth mac is fine and detected by this utility, I dont know why but my wifi Mac Address change to h/w Mac address after update to Pie OTA, and the wifi is very slow after the update. any body experiencing the same issue after Pie update
[Xiaomi Mi A1 Guides, News, & Discussion] heinz9:
Wifi is fine but simcards and network undetected.

Ive tried this tool, but it seems not fixing my simcard and network issues after flashing to april stock image. Is there anyone else facing same issues with me? Everything works fine after i flash to april stock rom, but the simcard is not detected, then i found the problem which is imei 0, then i manage to restore my imei, yet it still say no service on both sim cards, and then slot 2 sim card seems work after I put to 3g only 1st untill i got internet connection then change it to 4g, seems good with just 1 card, but then when i try to make phone call connected to dialed number but theres no sound at all, no dial sound and when the number i dialled pick up the call, theres no sound in and out. On the information *#*#4636#*#* it say network connected, but on voice network type it say unknown, i believe that was the problem because on my friend's mi a1 the voice network type said LTE. Any help mate? Cause ive tried any guide but not any of it work. Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] Jt380p:
It didnt fix my problem :(

Edit : it did fix it. My first boot the wifi still says it was disabled, but once connected, i got my wifi speed back (50mbps). Thanks for the tool mate! :good:

Edit 2 : It wont connect again, tried the tool again, Still cant connect :(
[Xiaomi Mi A1 Guides, News, & Discussion] chaumat:
como la descargo?
[Xiaomi Mi A1 Guides, News, & Discussion] magostinelli:
Hello, I have a similar problem with my Mi 9 se, do you think I can use it on my device?

I have an invalid mac address on wifi: 02:00:00:00:00:00.

Thanks.

Inviato dal mio MI PAD 4 PLUS utilizzando Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] loginsvarios:
The download attachment don't work.

Anyone can share it?

Now it works!
[Xiaomi Mi A1 Guides, News, & Discussion] eduardo85:
como lo descargo??
[Xiaomi Mi A1 Guides, News, & Discussion] antonio96ct:
Resolved?

I have the same problem, did you manage to solve?
[Xiaomi Mi A1 Guides, News, & Discussion] Beneter:
[MENTION=5343187]hnkotnis[/MENTION] Do you still consider to publish the sourcecode somewhere?

Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] tomek5:
how can i download the persist resurrector?
[Xiaomi Mi A1 Guides, News, & Discussion] habibi09:
i cant find attachment download.. i need this file bro.. tks
[Xiaomi Mi A1 Guides, News, & Discussion] Pratik bendre:
how to download this file
[Xiaomi Mi A1 Guides, News, & Discussion] Volume069:
Can anyone please provide a link? Can't find anything in the opening post.
[Xiaomi Mi A1 Guides, News, & Discussion] ecerone:
hi, i can't find the link
[Xiaomi Mi A1 Guides, News, & Discussion] tomek5:
Hi, there is no download link.
[Xiaomi Mi A1 Guides, News, & Discussion] Volume069:
So many people have downloaded the tool and tested it successfully. Doesn't someone else have that on their computer? I have already tried it with a PM to hnkotnis, but unfortunately received no answer.
[Xiaomi Mi A1 Guides, News, & Discussion] GT-S5830:
PM me I got a backup and I'll DM it
[Xiaomi Mi A1 Guides, News, & Discussion] namfrey:
no download links =(
[Xiaomi Mi A1 Guides, News, & Discussion] Raskaipika:
Don't worry mate, take your time, your real life is the first, my problem is (like I told you before) that I had to erase the persist partition because of the reboot 15 secs bug, and since that moment, my Wi-Fi and Bluetooth work again, but with a different MACs, the IMEIs are good, but the SN changed too.

[I think that these changes (MACs and S/N) were make by the Custom ROM Lineage OS 15.1]

I know which were my MACs (Wi-Fi and Bluetooth), the Serial Number and IMEIs, Can I change these values with your next version???

Thanks for your time and hard work, kind regards.
[Xiaomi Mi A1 Guides, News, & Discussion] speedunderx:
[MENTION=5343187]hnkotnis[/MENTION] Thank you dear for your work, here I am waiting for the new version, since I am one of those who have ****ed up flashing another persist.img file and I have been the other mac.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
V2 will allow the user to change both Wi-Fi and Bluetooth MACs to whatever they want, while maintaining initial vendor codes.

About IMEI changing, I am pretty sure it is VERY MUCH illegal and I won't be supporting it in any version in the future.

Expect v2 around 17th of May which is when my exams end and I get a couple of days for a breath.
[Xiaomi Mi A1 Guides, News, & Discussion] KorokHidup:
This tool fixed my phone , thank you op
[Xiaomi Mi A1 Guides, News, & Discussion] H.Karel9:
Can this tool be used on custom ROMs too?
[Xiaomi Mi A1 Guides, News, & Discussion] virat.siingh:
After applying this method can we again Unroot our phone ? And will it affect the future ota updates
[Xiaomi Mi A1 Guides, News, & Discussion] dunkychunks:
This tool saved my phone! Thank you!! I returned to stock 9.5.4 and WiFi would not work. Tried and then showed "disabled". So I returned to 8.1 ROM. Saw stock 9.5.10 and tried again. Same issue. Almost gave up then found this tool. Worked perfectly. I almost flashed another user's persist.img. Glad I didn't. I did flash the April modem and I used the Tissot Tool to remove the "unlocked" splash screen. Hope any of this info helps. Coz I always try the latest stock and then return to custom 8.1 without issues. Idk if flashing any of the above affected the process. Thanks again for creating this.
[Xiaomi Mi A1 Guides, News, & Discussion] JoKeRLeE:
It won't affect future ota update after unroot and re-flash new rom to your phone . Fastboot rom doesn't touch persist.img (it can't be flash also if you're not in 7.8.23 version) . so , this tools is very safe to use for restoring your mac address .
[Xiaomi Mi A1 Guides, News, & Discussion] virat.siingh:
What if i go to service center and ask them to fix it ? It is still in warranty
[Xiaomi Mi A1 Guides, News, & Discussion] virat.siingh:
My fingerprint unlock is also slow even in latest April patch ? Will this solve that issue as well ? Sorry for noob questions
[Xiaomi Mi A1 Guides, News, & Discussion] virat.siingh:
My phone is showing mac address ? Is it normal then what's the issue
[Xiaomi Mi A1 Guides, News, & Discussion] JaadiBooti:
Is a corrupted persist why my accelerometer, gyroscope and magnetic sensor are not working?

(Even after I flashed the persist from the fastboot images)
[Xiaomi Mi A1 Guides, News, & Discussion] GVN.Gallus:
Thanks!, i dont have plant to comeback to stock now, but still download in case i change my mind :D
[Xiaomi Mi A1 Guides, News, & Discussion] JoKeRLeE:
this is not your real mac address . my suggestion is if your devices rooted , go to /Persist backup wlan_mac.bin and /Persist/bluetooth backup .bt_nv.bin for future you planned to go back stock without losing your mac .
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
Read the FAQ on original post please before asking the same questions over and over again.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
Have you even read anything on this page? This tool is supposed to fix the MAC address. How is it supposed to fix issues related to completely different piece of hardware like Fingerprint scanner?
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
As I mentioned in the original post, persist partition stores data related to calibration of sensors. So this is quite possible that a corrupted persist has rendered the sensors useless.
[Xiaomi Mi A1 Guides, News, & Discussion] dlucca123:
Thanks for this tool , in future will be a Linux version too ??
[Xiaomi Mi A1 Guides, News, & Discussion] moodo:
Just a question because I'm curious. Where does this tool get the vendor mac address from?
[Xiaomi Mi A1 Guides, News, & Discussion] cr1ogen:
Same question here

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] caveiramix:
Hello, and sorry.

I did read all the pages but information is a bit confusing.

So my device history is Stock nougat, updated until stock Oreo March OTA and then I switched to custom ROMS, first Lineage OS 15.1 and now i'm at Resurrection Remix 6.0. I haven't yet tried going back to stock ROMs and neither have I toyed with any other guides or persist files. Everything is as-is just from switching ROMS.

If I go to the status tab in the "About Phone" settings, i do have listed wifi and bluetooth addresses and IMEI on both SIM slots. So far I have not faced any connectivity issue whatsoever in Resurrection Remix. Wifi connects, bluetooth sends files to the PC and streams audio, both SIM cards work.

This brings me to the following questions:

Is there anything needing correction?

At this point, what have I lost and what can be recovered?

If anything indeed needs fixing, should I wait for a future version that also corrects bluetooth and the whole lot?

Thanks a lot!
[Xiaomi Mi A1 Guides, News, & Discussion] Niksior:
I could be wrong but 00:0a:f5 is not Xiaomi wifi prefix

So your Mac is arelady changed
[Xiaomi Mi A1 Guides, News, & Discussion] manan001:
if i have not lost the mac and want to take backup can you add that feature to take backup and preserver the persist file and later if any issues once we can restore it?
[Xiaomi Mi A1 Guides, News, & Discussion] moodo:
I found my original Mi A1 Mac address in my routers history. Is there a possibility to get that Mac address into my phone again?
[Xiaomi Mi A1 Guides, News, & Discussion] JaadiBooti:
So any way to fix this? Or does this mean those sensors are permanently dead ??my IMEIs, wifi mac seem to alright.

I know this thread is for wifi Mac but no one knew anything about this on the lineage thread.

If I get my motherboard replaced will it get fixed?

I already flashed persist from the March Oreo fastboot image.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
If a girl ever asks you to tell those 3 magical words then they are "Backup Backup Backup". If you have a backup made before you messed up the partition then you can easily repair within few seconds.

But unfortunately if you don't have then best choice is go to service center. Recalibration varies from device to device. I have recalibrated a proximity sensor of Galaxy S4 and it is a pain in the butt and won't do it again.

Best way if you leave it to service center for professionals. I haven't played that much with this phone, so I am clueless about it.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
V2 will have the feature to manually type MAC address. Save the MAC address somewhere safe.

Approximate ETA for v2 is 17th of May.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
You can backup partitions with several tools available with easiest being terminal emulator.

But if people need this feature, I will gladly add it. After all I like community driven approach.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
+1 for the detail level of info you have provided. It makes solving the problem very easy.

One of the important point is you HAVE NOT toyed with persist partition for which I give kudos to you. Now your fixing steps if you want are very easy.

1) Backup persist partition. This is for safety and I INSIST YOU DO THIS.

You can use dd command as root and dump the image to sdcard then copy it somewhere else like a PC.

2) Flash stock ROM. Any upto March is fine. April not tested by me. Your phone will not connect to Wi-Fi due to MAC problem.

3) Setup the requirements in original post.

4) Open this tool and follow instructions.

5) After reboot check Wi-Fi works, then make a NEW backup of persist. (again I INSIST). This backup will not contain any problems and can be safely stored.

If any doubts, no matter how small or silly, ASK here.
[Xiaomi Mi A1 Guides, News, & Discussion] caveiramix:
Thanks for taking my particular case into consideration, maybe other users who haven't yet toyed with someone else's files and just switched ROMs also fall under the guide you just made for me.

So the addresses I will recover by following those steps are my original ones and everything will be as it was, or have I lost the phone's original information from new and I will be getting new randomly generated addresses?

Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
No need to worry. All original info will be restored. This tool reconstructs the original MAC.

However I must stress the importance of both backups mentioned, just in case things go south.
[Xiaomi Mi A1 Guides, News, & Discussion] cr1ogen:
The backup of persist folder would be made from the stock rom?

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] AG14795:
One request.... could you make v2 compatible with Linux OS?
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
Nope. Try a virtual machine or dual boot. Linux support isn't on the todo list.

That would involve whole rewrite of code into a cross-platform supported software and its quite unproductive for such a petty software like this. VM or dual boot is much easy approach.
[Xiaomi Mi A1 Guides, News, & Discussion] AG14795:
Just wanted to know if the Linux support was on the table or not. When going back to stock ROM will try this tool via VM. Thank you for this tool:cool:
[Xiaomi Mi A1 Guides, News, & Discussion] sdeft:
[MENTION=5343187]hnkotnis[/MENTION]

At the end of restore process it asks you "Do you wish to fix permissions and ownership?". Why is this ?
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
1) 0x004 is not regular error. It is the FAILSAFE kicking in.

What is the output when you press the check device button.

Root prompt won't pop in due to FAILSAFE blocking it.

Follow the steps carefully and none should pop up.

2) The BT MAC box is an output box. Not input box. You are not supposed to enter anything there. None of the instructions suggest to type anything there.
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
It refers to the Linux file system permissions and ownership.

I humbly request you not to remove your initial problem by editing post. Someone else having same problem will find the solution there.
[Xiaomi Mi A1 Guides, News, & Discussion] GVN.Gallus:
Hello [MENTION=5343187]hnkotnis[/MENTION]

I'm currently on custom rom (RR6.0), just check my device and found a problem, the BT address is 00-00-00-00-5a-5d.

From what i search my BT address is broken.

If i use your tool, can i recover my BT address?, and if i comeback to stock, can i use your tool to recover wifi and bt if they are broken again?

If i can only use this tool once, can i do it now to recover both wifi and bt, then use some method to back up them and restore later?

Thank you!
[Xiaomi Mi A1 Guides, News, & Discussion] hnkotnis:
Unfortunately this tool in version 1 cannot fix Bluetooth MAC. It only fixes Wi-Fi MAC for which it needs an intact BT MAC.

Ability to fix BT MAC will be added to v2 as mentioned in earlier posts.

Have you flashed any random persist.img floating around here or made any changes to persist? Because nearly all of the ROMs don't change BT MAC.

Also if you do not have any backup of BT MAC (even written or screenshot will work) then unfortunately original MACs are gone forever. You will have to wait for v2 in that case.