Hey guys!
I have created an app that can conveniently change your MAC address and a lot more! I strongly encourage you to use it instead:
nMAC - Nexus MAC Changer
Code:
[B]/persist/[/B]
bdaddr.txt : interface 0 (main) MAC address
wlan_mac.bin : interface 0-3 MAC addresses
Code:
[B]/system/etc/firmware/wlan/qca_cld/[/B]
WCNSS_qcom_cfg.ini : lines 46-50; interface 0-3 MAC addresses
WCNSS_cfg.dat : nothing I could find
Note that the addresses in WCNSS_qcom_cfg.ini are "Assigned MAC Addresses - will be used until NV items are in place".
To change your MAC, change the first interface in wlan_mac.bin.
Click to expand...
Click to collapse
Thanks to @Thargorsson for pointing out that this method indeed worked!
Enjoy
Nobody interested at all?
Would be interested with how you end up resolving the problem
Ej guy just some notice.
First if you change you're MAC address your Router won't recognize your phone anymore. You have to give in you're password once more otherwise it won't work.
Second take a look at the persist and efs image in your /dev folder more correctly.
OK after all i want to make an executable for that process (I've done it on my s3 neo successful) and create a topic in the general forum. You will also be credited
Thargorsson said:
Ej guy just some notice.
First if you change you're MAC address your Router won't recognize your phone anymore. You have to give in you're password once more otherwise it won't work.
Second take a look at the persist and efs image in your /dev folder more correctly.
OK after all i want to make an executable for that process (I've done it on my s3 neo successful) and create a topic in the general forum. You will also be credited
Click to expand...
Click to collapse
Do you mind explaining further? I didn't find anything in the EFS image (from first glance, at school). I also did put my password again for the WiFi, the phone just can't connect to anything. How did you succeed doing this on your phone? I'm really curious to get it working on my 5X. Thanks!
ViRb3 said:
Do you mind explaining further? I didn't find anything in the EFS image (from first glance, at school). I also did put my password again for the WiFi, the phone just can't connect to anything. How did you succeed doing this on your phone? I'm really curious to get it working on my 5X. Thanks!
Click to expand...
Click to collapse
I can confirm that it is working on my Nexus 5X.
But you cannot use any MAC address you think of.
The mac address is calculated by an algorithm from the kernel and youre wireless router also won't accept any Mac address that isn't compatible with any pattern it has. For example 00:00:00:00:00:00 won't work. (Tested it).
Try to change one or two numbers/letters of your max address and check if it works.
I think you're fault is that you have changed the Organizationally Unique Identifier. (OUI)
That cause you're router (my router does idk if yours too) don't recognize your phone.
Try this mac: 88:9b:39:12:a9:2e
I hoped that helped.
Thargorsson said:
I can confirm that it is working on my Nexus 5X.
But you cannot use any MAC address you think of.
The mac address is calculated by an algorithm from the kernel and youre wireless router also won't accept any Mac address that isn't compatible with any pattern it has. For example 00:00:00:00:00:00 won't work. (Tested it).
Try to change one or two numbers/letters of your max address and check if it works.
I think you're fault is that you have changed the Organizationally Unique Identifier. (OUI)
That cause you're router (my router does idk if yours too) don't recognize your phone.
Try this mac: 88:9b:39:12:a9:2e
I hoped that helped.
Click to expand...
Click to collapse
I changed only the last one digit of my original MAC and I couldn't connect anywhere. The OUI is the first 3 digits AFAIK. How exactly did you make it work?
I did this:
copied the wlan_Mac.bin from /persist to sdcard.
Changed one number. Pushed it back.
Rebooted phone.
Actually I'm on dirty unicorns ROM.
Thargorsson said:
I did this:
copied the wlan_Mac.bin from /persist to sdcard.
Changed one number. Pushed it back.
Rebooted phone.
Actually I'm on dirty unicorns ROM.
Click to expand...
Click to collapse
Wow, indeed it worked! I have no clue what I had messed up last time when I did the same thing...
A phone reboot is not needed, you can just toggle airplane mode on then off.
After a full day of coding an app is now ready: http://forum.xda-developers.com/nex...-nmac-nexus-mac-changer-t3374430/post66746231
will this work for bluetooth address change?
Hi, your app does not change my mac at all. The app seems do what it does when change button is pressed. Display the set mac address. Change the bin file (i looked at it) but the WIfi MAc address in settings is still 02:00:00:00:00:00. DO you know anywhere else i could have messed up my 5x on 7.0?
arviverona said:
Hi, your app does not change my mac at all. The app seems do what it does when change button is pressed. Display the set mac address. Change the bin file (i looked at it) but the WIfi MAc address in settings is still 02:00:00:00:00:00. DO you know anywhere else i could have messed up my 5x on 7.0?
Click to expand...
Click to collapse
Which rom? Kernel ?
Thargorsson said:
Which rom? Kernel ?
Click to expand...
Click to collapse
Kernel: 3.10.73
Build: OPM3.171019.016
Pretty much stock oreo.
Happen to my 5x. It works fine at 6.0.1. but at newer room mac address shown like that and wifi toogle wont turn on but searching bar move
Related
So, here it goes.
My goal is to connect to a network using certain MAC address. Wanted network is marked with "open" and I know that it allows access only to certain devices (according to MAC) on which the administrator have gave a permission to. Once your MAC passes the verification, device gets connected to the network and then I'm asked to enter username and password through WEB browser (well known for me, because it is a procedure that I do on my other device, as well as all my colleagues do).
For example, I was allowed to provide one personal MAC address to administrator to connect to this network. I would like to set the MAC address of my other personal device and set it on my I9195 so that I can access the same network.
So, what have I done so far: I9195 is rooted, it has Android 4.2.2 on it and Busybox installed. I have changed MAC on it using following apps: MacChanger (blue WIFI logo), MAC Address Ghost (green ghost logo), using Android Terminal Emulator commands and via MAC Spoofer (black circle with green text logo). What can I conclude: As soon as superuser has granted the access to these apps, all of them manage to change the MAC. I've done the verification using Terminal Emulator. I also have to add that the MAC remains original if viewed from WIFI advanced menu BUT this shouldn't be an issue because:
1.) Colleague of mine is using his S4 (rooted etc.), while using MAC Address Ghost that does not change the original address (viewed from WIFI advanced menu) but he manages to make a spoof (verified from the Android Terminal Emulator, as all of this apps actually do) and he manages to connect without any problems in the same way as I connect with another device that I have!
2.) I had time to make a small test at home which put a light on the idea that the problem should be focused on the Samsung (and not on the router, especially because I am unable to modify anything on the router on this facility, not even restarting it). My home network works in a similar way as the network that we are discussing about. My S4 Mini has been included in it with his original MAC and it connects to the network without any problems. My other device is also included to the network using its MAC (the one that I am using for spoofing). My other device is turned OFF, router has been reset and I am normally accessing the network with S4 Mini. Then I run the MAC Address Ghost to spoof the MAC on my S4 Mini. In that moment, I have lost the connection that I had which means that the MAC spoofer actually did something. I tried to reconnect to the network but then I am asked to enter the password for my network. I have checked and re-checked it many times, tried to forget the network and doing it all over again but it does not accept the CORRECT password. Changing my MAC back to the original one connects S4 Mini back to the network, while accepting the password immediately.
Problem is represented in a way that it either says “saved” and does not connect to the network or every few times displays a message “Authentication error occurred”.
I have tried I would say every possibility that I’ve seen over the internet. That includes:
1.) Installing WiFi Connection Manager (it provided some info regarding the network that I wish to connect to: IEEE 802.11g standard, 54 Mb link and CH:11). I’ve used its function to fix the WIFI (advanced fix (root required)) but it didn’t help.
2.) All sorts of staying close to the rooter, while enabling and disabling the Power save mode (accessed via *#0011# command) or while having GSM signal.
3.) Browsing through system, data etc. folders to try to find the file that contains the MAC address information (like it did on older android versions in the nvram file). I’ve been unable to find this file or any sort of file that displays my MAC for the purpose to modify it.
I have a plan to upgrade Android to version 4.4.2 later today and make a test.
Please, feel free to suggest anything else! If I do not succeed, I will have to replace my S4 Mini with something else.
Kind regards,
QUICK REPLY: After installing CyanoGEN MOD 4.4.2, the problem remains!
I think there could be a shorter solution! On Sony Xperia Acro S with 4.1.2 Android it was just a matter of changing the MAC address within the file data/etc/wifi/fw! One minute modification...
So, please, if somebody knows the path to the file that contains MAC on CyanoGEN MOD 4.4.2 or on Android 4.2.2, PLEASE HELP!
Kind regards!
I've been trying to spoof a mac address however I can not get it to work. I've tried 3 different utilities off the app store along with pryfi. I've also tried to change it through terminal and through a wifi config file, however nothing works. I've also tried 3 different kernels.
Current rom: 4.4.4 Exodus
https://www.google.com/url?sa=t&rct...HZjTaG3Bd2lu9ewGkmcY20w&bvm=bv.90491159,d.eXY
Current kernel: ElementalX
All help would be appreciated
Make sure busybox is installed and running.
It is
Which file did you edit? WCNSS_qcom_cfg.ini?
Q8-V08 said:
Which file did you edit? WCNSS_qcom_cfg.ini?
Click to expand...
Click to collapse
I tried that, it did not work
and
persist/wifi/.macaddr
?
Do the values in the files reset back to the original mac address after reboot?
Q8-V08 said:
and
persist/wifi/.macaddr
?
Do the values in the files reset back to the original mac address after reboot?
Click to expand...
Click to collapse
Yep tried that one a while ago. It does not revert back however the mac does not match the mac i set
autonomousperson said:
Yep tried that one a while ago. It does not revert back however the mac does not match the mac i set
Click to expand...
Click to collapse
Does it match the mac address displayed under status? you say it doesn't revert back to your original mac address but it's displaying a different one to the one you set? very strange. If you turn on bluetooth and check the status the mac address of the bluetooth and wifi should be exactly the same by default except the last value
??:??:??: ??:??
My oppo find 7a WIFI Mac address always change every restart
After upgrading my oppofind 7a from color os 1.2.6i to 2.1.5i wifi mac address always change
every time i turn wifi on/off or restart my phone
i've factory format my phone but it doesnt work
anyone know how to fix this pls help me
ovonel630 said:
My oppo find 7a WIFI Mac address always change every restart
After upgrading my oppofind 7a from color os 1.2.6i to 2.1.5i wifi mac address always change
every time i turn wifi on/off or restart my phone
i've factory format my phone but it doesnt work
anyone know how to fix this pls help me
Click to expand...
Click to collapse
Why stop it? Its a security feature that makes your device much harder to track down.
Zeus Hai said:
Why stop it? Its a security feature that makes your device much harder to track down.
Click to expand...
Click to collapse
My university wifi needs mac address registration and i'll have to delete my old mac address and register new everytime the mac address changes
ovonel630 said:
My university wifi needs mac address registration and i'll have to delete my old mac address and register new everytime the mac address changes
Click to expand...
Click to collapse
Here you go, mate
http://forum.xda-developers.com/showthread.php?t=1901171
I have fixed mine.
There was no MAC address programmed to the device at factory. That's an omission. So the WIFI driver when activated after restart or by turning wifi off/on notices that and gives a temporary MAC address.
That address changes in the last bytes.
The solution is to write a WIFI MAC address with an appropriate tool. I did use SN_Writer just be careful to leave the other data alone.
I guess the same happens with the Bluetooth address but did not check that out yet.
0) Choose a valid MAC just look under settings the temporary one that your phone uses that's ok
1) Install VCOM Driver if you don't have it yet
If you use Windows 10 then you have to temporarily disable Driver Signature check since those drivers are not signed
Instructions and download here
http://forum.xda-developers.com/elephone-m2/help/windows-10-mtk-vcom-usb-drivers-32-64-t3267033
2) Download the SN_Writer I did use that one, password is mtk2000
http://mtk2000.ucoz.ru/down18/SN_Writer_Tool_v1.1648.rar
3) Download the right stock rom for your device you need the file which is named like the one I did use
APDB_MT6797_S01_alps-mp-m0.mp9_W16.48
4) Power off phone
5) In SN_Writer hit System Config uncheck everything and check Wifi Adress on the left side
In database file AP_DB use the file from 3)
That should do it.
Hit Start and entry the MAC just the digits no dashes etc.
Connect the phone while holding Volume Down.
That should do it.
Thanks for the write up, I got my S7 WiFi MAC address fixed now too, with your steps !!
Bluetooth appears already fixed/correct. (Also I haven't noticed my paired bluetooth devices loosing pairing..)
FunkiBluDawg said:
Thanks for the write up, I got my S7 WiFi MAC address fixed now too, with your steps !!
Click to expand...
Click to collapse
Great! Also good that Bluetooth is correct. Did not pair anything yet but good to know there won't be similar problems.
Idakis said:
I have fixed mine.
There was no MAC address programmed to the device at factory. That's an omission. So the WIFI driver when activated after restart or by turning wifi off/on notices that and gives a temporary MAC address.
That address changes in the last bytes.
The solution is to write a WIFI MAC address with an appropriate tool. I did use SN_Writer just be careful to leave the other data alone.
I guess the same happens with the Bluetooth address but did not check that out yet.
0) Choose a valid MAC just look under settings the temporary one that your phone uses that's ok
1) Install VCOM Driver if you don't have it yet
If you use Windows 10 then you have to temporarily disable Driver Signature check since those drivers are not signed
Instructions and download here
http://forum.xda-developers.com/elephone-m2/help/windows-10-mtk-vcom-usb-drivers-32-64-t3267033
2) Download the SN_Writer I did use that one, password is mtk2000
http://mtk2000.ucoz.ru/down18/SN_Writer_Tool_v1.1648.rar
3) Download the right stock rom for your device you need the file which is named like the one I did use
APDB_MT6797_S01_alps-mp-m0.mp9_W16.48
4) Power off phone
5) In SN_Writer hit System Config uncheck everything and check Wifi Adress on the left side
In database file AP_DB use the file from 3)
That should do it.
Hit Start and entry the MAC just the digits no dashes etc.
Connect the phone while holding Volume Down.
That should do it.
Click to expand...
Click to collapse
thanks a lot, worked like a charm. I really needed that fix as i put mac control on my router
Meta_maui_db_inconsistent
After:
"Connect the phone while holding Volume Down."
... just a message "META_MAUI_DB_INCONSISTENT" und the process break it
You have an idea what I can still check?
66krieger said:
After:
"Connect the phone while holding Volume Down."
... just a message "META_MAUI_DB_INCONSISTENT" und the process break it
You have an idea what I can still check?
Click to expand...
Click to collapse
Sorry for my late answer.
Double check step 3) you need the correct file from the correct stock rom for your device.
If that still doesn't work I would try reflashing the bootloader preloader (only) from stock ROM and try again.
It should work.
I'm not having any luck with my device on windows 10.
Whenever I try to connect my device to windows via usb, a pop appears - (USB device not recognized-the last USB device you connected to this computer malfunctioned ,and Windows does not recognize it) .
I've also tried to clean up my usb drivers and re-install MTK preloader.
Any advice how I might fix this?
File APDB_MT6797_S01_alps-mp-m0.mp9_W16.48?
Hi,
Where do I find the file "APDB_MT6797_S01_alps-mp-m0.mp9_W16.48"?
It's not available on Google.
Thanks!
Thank q so much .. Fix it.
Hi,
I have read almost everything that this forum gave me and some solution from the rest of the internet and STILL my wifi mac address is still stcuk at 02:00:00:00:00:00
Wifi won't turn on and it won't display available wifi
I can't remember exactly what caused it but i'll try to share my recollection
I vaguely remember that i was able to connect to the wifi before trying to fix it. Can't recall what really happened
I fixed the random rebooting nexus 5x by using unblod fix
I think i tried rooting it and succeeded with a twrp recovery
I vaguely remember flashing a zip custom rom with wrong version and brought it into a soft brick. Cant find the file anymore.
I reflashed it with flash all batch file from stock firmware
the phone is bootlooping
Fixed it again using unblod exe using the stock firmware's boot.img
Wifi wont turn on
mac address is 02:00:00:00:00:00
Tried on android 6.0, 7.0, 7.1.2, 8.0 and 8.1.0
Other solutions tried:
Nil Mac app. Seems to work app wise but mac is still stuck at 02:00:00:00:00:00 on settings. Wifi wont turn on
Manually edited, placed *.bin file in /persist, and /etc/firmware/wlan/qca_cld/
WIfi mac changer apps from appstore (they dont work)
Some root apps that mess with the phone's setting (cant find anything that seems to deal with wifi mac address)
p.s.
I also tried bricking the phone using TWRP wipe and checking all the wipe locations to eliminate remnants from previous mods
I cant seem to do anything. Still stuck at 02:00:00:00:00:00
Any more suggestions on where to look?
Or is android not getting the real mac address and revert to 02:00:00:00:00:00 and wont let wifi turn on during flash all script?
Thanks in advance.
Recent Android hides the MAC address to prevent tracking. 02:xx:xx:xx:xx:xx means a site-local MAC address.
Try using "ip link" and looking for the wlan0 entry. eg.
Code:
22: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000
link/ether 2c:59:8a:xx:xx:xx brd ff:ff:ff:ff:ff:ff
nowster said:
Recent Android hides the MAC address to prevent tracking. 02:xx:xx:xx:xx:xx means a site-local MAC address.
Try using "ip link" and looking for the wlan0 entry. eg.
Code:
22: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000
link/ether 2c:59:8a:xx:xx:xx brd ff:ff:ff:ff:ff:ff
Click to expand...
Click to collapse
HI,
thanks for the reply. I already did that and i got a mac address that is not 02:00:00...
then i tried to change it using if config just to see if it changes using the command.
I got an error saying wlan0 not found (not exact words)
Is there a different MAC address in Settings -> System -> About phone -> Status ?
nowster said:
Is there a different MAC address in Settings -> System -> About phone -> Status ?
Click to expand...
Click to collapse
No, it is 02:00:00:00:00:00.
arviverona said:
No, it is 02:00:00:00:00:00.
Click to expand...
Click to collapse
Did this ever get fixed? I'm facing the same issue. However, the steps I did was trying to spoof a MacAddress using Busybox and a terminal emulator.
Just using that would not allow me to connect to wifi, but wifi was turned on. Then I read to change the wlan.bin file in the persists folder.
After I changed that file and did a reboot wifi would not turn on.
I tried:
1. factory reset
2.Changing the wlan.bin back to what it was
3.Sideload android 8.0
4.Flash OEM back to factory
Nothing seems to work. Settings->about->status MacAddress says "unavailable", but
wifi -> preferences -> advance shows MacAddress 02:00:00:00:00:00
Any help would be great,
-realkewl
Try AMC, its the only MAC Address Changer app I could find that worked on my 5x. That was without a screwed up MAC address to begin with, but It might work for you.
I downloaded it from the play store, but now its not there. Here's the apk from my phone:
https://sqerk.com/pythonlimited.amc.apk
Looks like AMC was forked from nMAC :
https://forum.xda-developers.com/android/software-hacking/app-nmac-nil-mac-changer-t3391283
sqerk said:
Try AMC, its the only MAC Address Changer app I could find that worked on my 5x. That was without a screwed up MAC address to begin with, but It might work for you.
I downloaded it from the play store, but now its not there. Here's the apk from my phone:
https://sqerk.com/pythonlimited.amc.apk
Looks like AMC was forked from nMAC :
https://forum.xda-developers.com/android/software-hacking/app-nmac-nil-mac-changer-t3391283
Click to expand...
Click to collapse
Thanks, but I figured it out. I was trying to flash with the same version 8.0...and for whatever reason that did not work, so I tried a costume ROM and it brought back my MAC address, so then I flash again to android 8.1 and my MAC address problems are fixed. Not sure why flashing with the same version did not fix it.
Thanks,
realkewl
realkewl said:
Thanks, but I figured it out. I was trying to flash with the same version 8.0...and for whatever reason that did not work, so I tried a costume ROM and it brought back my MAC address, so then I flash again to android 8.1 and my MAC address problems are fixed. Not sure why flashing with the same version did not fix it.
Thanks,
realkewl
Click to expand...
Click to collapse
What Custom ROM did you use friend? I have the same exact issue with my Nexus 5. Maybe finding your previously installed Custom ROM, I can fix the issue too. I saw a lot of threads says that installing Custom ROMs or downgrading then upgrading OS using OTA updates given from their Android System fixed the issue. MAC address is important and controls everything that has to do with wireless connections in your device. Maybe this can help be fix my issue too. I am almost convinced to buy a brand new smartphone. It's almost my limit here... If this doesn't bother you, please, can you tell me what is the ROM you used?