How to change MAC address - Xiaomi Mi 9 Questions & Answers

Hi everyone,
I have just rooted my mi9 and wanted to use apk changeMacAddress to be able to connect in my man to a tv network (in fact it's related to my old smartphone with his Mac address) but I can't change it.
How can I do this?
Thanks

I find folder containing mac address but i didnt succeed to update the mac address, its located on /data/vendor/mac_addr/wlan_mac.bin
in fact after a reboot the original mac address is reset to the factory one.
How can i force to use the updated mac address ?
which daemon update those file ?
thanks for your help
PS : i updated to the latest TWRP from [RECOVERY][MI9] TWRP 3.3.1-7 by siankatabg to decrypt the folders and scan the FS.

Hi Bro . please help to force mac address
How can you do that ?
i'm same your stituation before ?
I want to force mac address . I already rooted my device
Installed Magisk 20.1 and Twrp newly
I used Mi K20 Pro Miui 11 new
I'm come from Viet Nam

ade05fr said:
Hi everyone,
I have just rooted my mi9 and wanted to use apk changeMacAddress to be able to connect in my man to a tv network (in fact it's related to my old smartphone with his Mac address) but I can't change it.
How can I do this?
Thanks
Click to expand...
Click to collapse
i met the same problem,but,some times i can use some apps to change,but ,after rebooting ,it still factory one also.....

I guess you don't know what the mac address is

Sorry for reviving old thread, just in case anybody interested in solution, leave alone /data/vendor/mac_addr/wlan_mac.bin and create /mnt/vendor/persist/wlan_mac.bin (or wherever persist is mounted) with a line wlan0=(desired mac address) and reboot. (At least should work with xiaomi devices)

Related

[Q] How to change Bluetooth MAC Address in CyanogenMod 7 ??

The title says it all
If everyone knows it, please tell me!
Thanks in advance
WingZero
I'll reply myself.
In a CM7 ROM It's enough to open "terminal emulator" and type:
su
bdaddr [new bluetooth address] && hciconfig hci0 reset
Click to expand...
Click to collapse
and it worked.
Follow up on altering the BT mac address
I'm in a situation where I have two Arias both on CM7.2 now, checked and they have the same BT mac address. I'm trying to pair them to a Panasonic home phone that can connect via BT to the cell. It will take one or the other but not both. I think if I change the mac on one of them I'll be in good shape.
Did it matter what you changed it to? Did you roll back to the stock ROM and see what that was to make it correct for your device or just pick something random? Thanks!
Edit: I followed the steps but it didn't keep my new address when I reset the phone. Any thoughts?

[Q] Can I Change My Mac Address Permanently ?

Hi
I'm trying to change my rooted Xperia Z MAC address and android ID.
It's on official android 4.4.4
I tried some apps on play store, some of the succeed to change my MAC like Pry-Fi,
but then I couldn't connect to any network
I tried
Code:
ip link
and
Code:
ifconfig
commands and
the same problem happened again.
Any ideas?

2 phones on the same wifi mac-address and the same mac bluetooth

I have 2 phones on the same wifi mac address and the same mac bluetooth. It was established for this it is that the handset 2 have restored the image of 1. I tried to upload a clean soft KK LG Flash Tool but without effect
And by that I can not upload anything between phones.
Where they are saved addresses WiFi and Bt?
How to change them? I searched and found nothing works: -
You have to fix it manually, the MAC address isn't stored within ROM modules, its specific for each phone like IMEI. If I recall correctly it's stored in one of the "persist" partitions.
I create ./persist/bluetooth/.bdaddr and ./persist/wifi/.macaddr - without result. Any idea?
I change mac BT ftom this post and it's works!
There is only WiFi mac...
Sorry, I probably gave you the wrong information. MAC addresses for BT and Wi-Fi usually are hard-coded, both may be visible in the label inside battery compartment. Both are saved in /data once device boots, so if you have used a full backup from phone on another that's why you ended with same MAC addresses.
There are some apps that can spoof the Wi-Fi MAC address if you want to make some tests. I can't help finding the exact file where it's stored because I don't have a L90 anymore. A factory reset (wipe data partition) should fix it if the bootstack is working fine.
Case closed. A factory reset or flashing mode recovery its original ROM including the LG Flash Tool does not bring results.
It turned out that the method used for Bluetooth also works correctly on WiFi! - This is a simple and effective way to change mac BT and WiFi.

WiFi connectivity problem

Hi,
I’m from Portugal and I’ve bought a Mi5 some days ago.
I have a problem for which I don’t find any solution.
The phone came with a modified fake ROM from the Chinese store but was working fine.
I unlocked the phone and installed TWRP to flash other ROMs. I flashed MIUI 8 global stable and a custom ROM from Xiaomi.eu without any problem.
Everything was working fine with the phone but I noticed that a lot of files from prior fake ROM (the one from the Chinese store) remained in the phone. So I decided to swipe everything in TWRP (including system and internal storage) and flashed MIUI Global Stable ROM again.
From this point, I never again been able to connect to a WiFi network and the 2G, 3G LTE connection became very weak and instable. The phone scan the wifi network available without problem, but after introducing the password, it tries to connect and just shows “Saved”.
I tried a lot of stuff. Static IP, reboot router, change router channel, change router security settings, flash different ROM, tweak build.prop file, but the problem persist.
In the phone test menu, when I try to connect to a WiFi I see that the phone scan, connect, disconnect, scan, connect, disconnect…
Any help?
Do you think it’s Hardware related issue? Or phone firmware and driver problem?
I’ll be very grateful for any assistance.
Hello
Yesterday I got the phone and I have exactly the same situation. Tried the same things, also flashing RR Nougat, RR Marshmallow, MIUI 7 and 8. Wifi isn't working in any situation. Did you solve it? Anyone have some ideas with it?
try another ROM
Just try the ROM "cm-13.0-20161211-NIGHTLY-gemini" .
My mi5 had the same problem when I got it, so I try unlock, bootloader, new cm14 rom, even went to change sim card, cause can't access 4G, still no luck. Then I backed to official ROM, factory reset, still have wifi and 4G problem. Finally after try the cm13 ROM, every thing became fine. It took me 5 days to resolved it.
FYI, mi5 's wifi signal strength is poor than others as so many complain you can see on the miui forum.
Tried that CM build, still nothing. I found in dev tools option to debug WIFI, and all the time I have RSSI of -127, even if I'm literally 1m from source (also I tried many sources). I'm out if ideas. Also It's not reception problem, because original ROM (like OP, probably fake global MIUI) had WIFI working just fine for me.
I have exactly the same situation.
I'll try the ROM "cm-13.0-20161211-NIGHTLY-gemini".
Thanks!!!
---------- Post added at 05:11 PM ---------- Previous post was at 04:37 PM ----------
Unfortunately, this ROM did not work for me either. :crying:
Any more help?
Thank you very much!!!
Try Xiaomi.eu 8.1.7.0 Nougat.
It's working for me, but my wifi wont connect in CM/ AOSP ROM
bajak85 said:
Try Xiaomi.eu 8.1.7.0 Nougat.
It's working for me, but my wifi wont connect in CM/ AOSP ROM
Click to expand...
Click to collapse
Hello friend, do you have the link for me to download this ROM?
Many thanks for helping.
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
ederluisf said:
Hello friend, do you have the link for me to download this ROM?
Many thanks for helping.
Click to expand...
Click to collapse
I found it, thank you. I'll flash the rom now. Thanks.
---------- Post added at 06:47 PM ---------- Previous post was at 06:41 PM ----------
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
I'll try this procedure too, thank you very much Pekkuky.
I'll be back to talk if it fired, thanks for the help.
I tried to install the ROM that bajak85 suggested and it did not work for me, however I tried the procedure that pekkuky taught in ROM Xiaomi.eu 8.1.7.0 Nougat (ROM that bajak85 suggested) and it started to work, changing the MAC address worked for me too.
I did exactly as taught by Pekkuky and tried with another randomly generated MAC. That also worked.
Thank you all for the help and thank you very much Pekkuky, saved my life with this tip.
Obtaining IP Address Loop...help..:crying:
artforcesilvia said:
Obtaining IP Address Loop...help..:crying:
Click to expand...
Click to collapse
Hello, did you make sure that the MAC address was actually changed? In my case, a reboot was necessary for the modification to take effect.
I needed to forget the network and try again too, try this too, make sure the MAC has really changed and forget the wifi network and try again.
Good luck. :good::good:
ederluisf said:
Hello, did you make sure that the MAC address was actually changed? In my case, a reboot was necessary for the modification to take effect.
I needed to forget the network and try again too, try this too, make sure the MAC has really changed and forget the wifi network and try again.
Good luck. :good::good:
Click to expand...
Click to collapse
I've tried it over and over again but it didn't work.:crying:
artforcesilvia said:
Obtaining IP Address Loop...help..:crying:
Click to expand...
Click to collapse
Another thing that can help is to configure Static IP in the advanced settings of your network, have you tried this?
ederluisf said:
Another thing that can help is to configure Static IP in the advanced settings of your network, have you tried this?
Click to expand...
Click to collapse
I set IP static it connected modem but no internet, some time messager "authentfication error" apear.:crying:
My problem has been solved.
Thank you very much
artforcesilvia said:
My problem has been solved.
Thank you very much
Click to expand...
Click to collapse
:victory: Very good.
Pekkuky said:
I had the same problem, same symptoms.
I too flashed a new ROM and couldn't connect to any AP, I tried various ROMS, MIUI 7 & 8 and CM 13 & 14.1.
Though I think I found a solution (it worked for me ). I simply changed my MAC-adress and I was able to connect to my home WiFi.
I'm running CM 14.1-2016225-NIGHTLY-gemini on MI5.
This is what I did to fix my WiFi:
First prepare an new MAC-address. I personally don't know when a MAC-address is considered valid, so I just took one from an other device. I used the mac address of my previous mobile phone, which could connect to my router.
1. Disable WiFi.
3. Enable debugger settings (Setting>about Phone>Press build number repeatedly).
2. Enable root (Develepor settings>root access set to "Apps and ADB").
3. Open the file manager app.
4. Give the file manager app root access (menu>Settings(cog in lower left corner)>General settings>Access mode set this on "Root Access mode").
5. Now find the file root/etc/firmware/wlan/qca_cld/ and open wlan_mac.bin.
You should see something similar to:
Code:
Intf0MacAddress=XXXXXXXXXXXX
Intf1MacAddress=XXXXXXXXXXXX
END
6. Change the first to your new MAC-address, but first write down the old one, so you can change it back if this method doesn't work for you.
The last X of the next line should be a digit higher than the previous line. E.g:
Code:
Intf0MacAddress=957FDC328BF[B]4[/B]
Intf1MacAddress=957FDC328BF[B]5[/B]
END
(This MAC-address most likely won't work).
7. Save the file. You might need to press the save button a few times.
8. Check if the file has changed.
9. Check if you MAC-address has changed (Settings>WiFI>Configure-WIFI(cog in right upper corner)).
10. Enable WiFi.
I hope this works for everyone that has the same problem.
Click to expand...
Click to collapse
Made an account to thank Pekkuky, because this worked for me. I also linked it on a couple of Xiaomi.EU posts about the same problem.
I had the same problem and this method really worked. I was angry af for 1 week, trying to solve this. Thank you very much Pekkuky
artforcesilvia said:
My problem has been solved.
Thank you very much
Click to expand...
Click to collapse
Are the same step above??
Why my wlan file,the latest one is not an number??
Sorry for my bad,help me please,i have been try this way,but still same

My device (xiaomi redmi 4a) is always rebooting when i change its MAC ADDRESS

Ok so i want to change my mac address on my phone and when i do it by app it always reboots and the mac address is the same.
When i go to files explorer (i have rooted phone) seach for the mac, it always crashes.
i have the MIUI 10 running on 8.12.20 rom. I always flash new one if update comes.
I have twrp on the device.
Please i want to change my MAC ADRRESS on this device.
LaproCZ said:
Ok so i want to change my mac address on my phone and when i do it by app it always reboots and the mac address is the same.
When i go to files explorer (i have rooted phone) seach for the mac, it always crashes.
i have the MIUI 10 running on 8.12.20 rom. I always flash new one if update comes.
I have twrp on the device.
Please i want to change my MAC ADRRESS on this device.
Click to expand...
Click to collapse
Just put a file with the new mac address in the /persist folder, as described here: https://zukfans.eu/community/threads/roms-by-fedor917.1152/page-26#post-19943

Categories

Resources