Hello everybody,
i have found a solution to change the WiFi MAC address if "/system/etc/calibration" doesn't exist.
Requirements:
root
ES File Explorer or Root Explorer
1. Copy file "/proc/calibration" to "/system/etc/calibration"
2. Edit "/system/etc/calibration"
Code:
- Search line "macaddr=your current mac"
- Replace "your current mac" with your new mac
- Save
3. Edit "/system/etc/init.d/01_modules"
Code:
- Add this line at the bottom:
mount -o bind /system/etc/calibration /proc/calibration
- Save
4. Change permissions of "/system/etc/init.d/01_modules"
Code:
Read Write Execute
X X X
X X X
X X X
5. Reboot
Your MAC address should now be changed.
Please ask if you have a question.
Tested with:
- NexusHD2 V2.9 (tytung's kernel)
Dragon812 said:
Hello everybody,
i have found a solution to change the WiFi MAC address
Click to expand...
Click to collapse
Hello
why would you do that ? Reading a unique wifi/bluetooth macaddress in the hd2 is implemended since ~one year ?
Franck
Franck78 said:
Hello
why would you do that ? Reading a unique wifi/bluetooth macaddress in the hd2 is implemended since ~one year ?
Franck
Click to expand...
Click to collapse
But some routers have a limited number of authorized MACs.
For example, in my router you can enter only 10 MAC addresses, but we have 12 devices.
Related
Hi,
i couldn't find any info on how to spoof/change MAC address on Galaxy S.
I so some commands for Android like:
ip link set eth0 address XX:XX:XX:XX:XX:XX'
and
'ip link set eth0 broadcast XX:XX:XX:XX:XX:XX'
but it gives me error like this:
ip: either "dev" is duplicate, or "XX:XX:XX:XX:XX:XX" is garbage
there are some threads here on xda in HD2 forum, they have a krenel that allows spoofing MAC address by changing startup.txt....
http://forum.xda-developers.com/showthread.php?p=8828147
what are solutions for Galaxy S?
thanks in advance
did you find the answer?
It is possible. i have given procedure for LG Optimus One. Same can be used for u'r phone. Just have to locate nvram.txt file. and appen line "macaddr = XX:XX:XX:XX:XX:XX" Where "XX:XX:X..." is u'r new mac address.
Here's the link
http://forum.xda-developers.com/showthread.php?t=917684
nice find, thanks!
Doesn't work for me.
All I found was nvram_net.txt in /system/etc/wifi
inside there was a line:
#macaddr=00:11:22:33:44:55
so I removed the coment mark (#) and restarted the phone but MAC address didn't change.
The file should be right, because in wifi.conf there is a line:
"DRIVER_MODULE_ARG=firmware_path=/system/etc/wifi/bcm4329_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
Any other ideas?
ifconfig/ip commands do not work on sgs
I think that the problem is related to how the wifi driver is compiled.
SGS uses bcm4329 and it has an option for custom mac address.
I saw this in odriod's forum
drivers/net/wireless/bcm4329/Makefile line 9
-DGET_CUSTOM_MAC_ENABLE
Disable above definition and make a new bcm4329.ko
Put is with "adb push" command to /system/lib/modules (replacement),
Change the permission of /system/etc/dhcpcd file with 777.
Click to expand...
Click to collapse
want to change this.
Let's hope that there is a kernel builder out there that want to change it.
try dowing the interface before changing the MAC and uping it afterwards as in:
http://forum.xda-developers.com/showthread.php?t=1901171
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
network={
ssid="myCorp"
key_mgmt=WPA-EAP
eap=PEAP
identity="xxxx"
password="yyyyy"
ca_cert="keystore://CACERT_my"
phase2="auth=MSCHAPV2"
priority=1
disable_pm=1
}
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
bobybc said:
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
Click to expand...
Click to collapse
I use peap at home and leap at work. No certs though. Get yourself WIFI Advanced Configuration Editor from the market. It has all those options. That's how I got leap to work.
I've used this editor too
but it seems that there is a bug with certificates :
code.google.com/p/android/issues/detail?id=8804
Click to expand...
Click to collapse
if someone can build wpa_supplicant with proposed patch ...
Anyone obtain the following files from Eclair 2.1 ?
/system/bin/wpa_supplicant
/system/bin/wlan_loader
/system/bin/wlan_cu
i can`t
i can`t! anydon try?
10x 2 Steve , we have fixed version, but unfortunately it doesn't work on my Archos
http://code.google.com/p/android/issues/detail?id=8804
Let someone else try and confirm pls :
download
just unzip and copy to /system/bin
Anyone tried?
Sent from my A70S using Tapatalk
finally i managed to get it working
with wpa_supplicant module from CyanogenMod for Motorola Droid - see it attached
just unzip and copy to /system/bin and delete /data/misc/wifi/tiwlan.ini
of cource you need root access
you need to delete tiwlan.ini on every restart, because it's been always recovered
wpa_supplicant.conf file looks like :
ctrl_interface=tiwlan0
update_config=1
network={
ssid="MYCorporate"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="XXXX"
password="YYYY"
priority=1
}
Click to expand...
Click to collapse
As there is a useless requirement for posting in development I have to come here to answer a simple question,
Yes on build 28 I have the same MAC address, that will be a big problem since the ROM should not be changing that.
lorinkundert said:
As there is a useless requirement for posting in development I have to come here to answer a simple question,
Yes on build 28 I have the same MAC address, that will be a big problem since the ROM should not be changing that.
Click to expand...
Click to collapse
Sure. Wait, what?
Lol
sent from my nokia 3210
I´ve also notice that since a few versions back, there is a static MAC address in the ROM.
This one: 00:90:4c:c5:12:38, my orginal MAC was like this: 8c:77:12...
(If you don´t know what your MAC was before flashing this ROM ? Look at your WLAN Hotspot Log...)
When someone uses 2 Devices (with this ROM) in the same WLAN, only one would be connected.
You can edit 2 text files in "/etc/wifi" and change the MAC to the one you like or have.
nvram_mfg.txt
nvram_net.txt
Yes, of course, the filesystem should be remounted:
open Terminal:
mount
su
mount -t ext4 -o remount, rw /dev/block/mmcblk0p4 /system
Then set permissions 755 on directory "wifi" and the 2 files.
Now you can edit the files.
An other and easier way to temporary solve the MAC problem is to edit the 2 files in the ROM zip archive itself,
then flash the ROM again.
I hope that in one of the next releases the orginal hardware MAC should be used again.
There is a dev thread with a download to change your mac .... recently started
Sent from my GT-P7500 using XDA
lorinkundert said:
As there is a useless requirement for posting in development I have to come here to answer a simple question,
Yes on build 28 I have the same MAC address, that will be a big problem since the ROM should not be changing that.
Click to expand...
Click to collapse
Also, solution is here: http://forum.xda-developers.com/showthread.php?p=23468681&highlight=module#post23468681
or, same thread, post 1607. I downloaded the module, copied it to the path pershoot specified (backed up the old module), fixed permissions, rebooted, and all fixed.
TL;DR: (story in second post)
As always, everything you do is at your own risk. I'm not responsible for your phone running away or any nuclear wars.
1. Edit the content of /persist/wlan_mac.bin using a file manager with root access (e.g. Solid Explorer) and change the first two lines to your desired MAC. It's a good idea to keep the first 3 bytes (the OUI), or bad things may happen.
2. Using a terminal emulator (e.g. Termux), execute the following commands:
Code:
su
chattr +i /persist/wlan_mac.bin
And done! You may have to switch airplane mode on and off.
I just got my new OnePlus 5T, and of course, one of the first things I want to do is to change my MAC address. I immediately spotted the file:
Code:
/persist/wlan_mac.bin
But even if I hadn't, tools like my overseer can find it automatically for us.
So the file is in a standard directory for Qualcomm chips. Using Solid Explorer (with root access), I modified the file's content to change the first two lines to my desired MAC address. I then switched airplane mode on and off and..... it didn't work? I quickly checked the file content again - it had reverted back. Ouch.
To combat this, I ran my overseer tool, but to no avail. There was no obvious file containing our MAC, only symlinks to this one. I then figured that maybe the system caches the value somewhere, and restores it when I toggle airplane mode (spoiler: it doesn't).
Well, the next attempt is mainstream: write-protect the file (set it to immutable). Using a terminal emulator (e.g. Termux), I executed:
Code:
su
chattr +i /persist/wlan_mac.bin
Airplane mode on and off... and it works! I restarted the phone and verified our success. Now, one last question burdened me. Was the system caching the MAC address? I removed the immutable attribute after the restart (so the new MAC would have been cached) and after I switched airplane mode -- original MAC was restored! So the system is doing something else to stop us.
Anyways, the current method works flawlessly and I shall refrain from digging any further just now.
Good luck!
i did whatever you mentioned here. after i set it to immutable, wifi wasn't working, mac address was 02:00:00:00:00:00 . i couldn't even edit the file because i set it to immutable. so i had to remove the immutation by using -i command. i still wanna know how to change my mac address. please help me out
aneesh12 said:
i did whatever you mentioned here. after i set it to immutable, wifi wasn't working, mac address was 02:00:00:00:00:00 . i couldn't even edit the file because i set it to immutable. so i had to remove the immutation by using -i command. i still wanna know how to change my mac address. please help me out
Click to expand...
Click to collapse
Hey,
You have to edit the file before you set the immutable flag, otherwise you'll get access denied just like you observed. Unless you messed up the content of the file I see no reason you are getting an invalid MAC. Make sure you preserve the first 3 bytes (the OUI) when setting a new MAC.
ViRb3 said:
Hey,
You have to edit the file before you set the immutable flag, otherwise you'll get access denied just like you observed. Unless you messed up the content of the file I see no reason you are getting an invalid MAC. Make sure you preserve the first 3 bytes (the OUI) when setting a new MAC.
Click to expand...
Click to collapse
is there no way to change the whole Mac address(including the OUI)?
aneesh12 said:
is there no way to change the whole Mac address(including the OUI)?
Click to expand...
Click to collapse
Sure you can, as long as you use a valid OUI. While using a made-up OUI won't affect you in the short-term, some (public) hotspots could block you.
okay, by your method, i could change the mac address but not completely, only the last 4 digits. i searched for woan_mac.bin . this is what i found. these files might be causing for you to reverting back to the original mac address after removing the immutation.
I tried to change mac address of my OP5T completely to my laptop's(lenovo thinkpad) mac address
system is reading that address in reverse fashion.
eg. i put Aa:Ba:Ccd:Ee:Ff at the first line of wlan_mac.bin then system is showing Ff:Eed:Cc:Bb:Aa as mac after airplan mod on/off
Heyyo, so after hearing about the broken LeEco Le 2 Qualcomm Edition (aka s2, x52x series) MAC address issue? It seems like certain earlier builds of Pixel Experience 9 and maybe other pie ROMs from around July last year (at least, that's what it seems like from searching Telegram chat history for an s2 group) could be the root of the issue... That, or some random mod that messed up persist.
So here's a method for fixing your MAC address issues properly via persist (that is, as long as something doesn't break your persist/wlan_mac.bin again).
Please note! This guide is for s2, but you can use this guide for other devices, but instead of wlan_mac.bin being in hex it could be normal text or some vendors might use something completely different.
You can optionally use a hex editing app on your PC (like GHex on Linux) or an app like Hex Editor Free on the Play Store.
Download this blank wlan_mac.bin that we will be editing
https://osdn.net/projects/lineageos-for-s2/releases/73055
Now, we will select a MAC address prefix for Lemobile (the company name that LeEco used for s2). According to a MAC Address/OUI Lookup we have three choices:
B4EFFA
28FECD
C825E1
Using this MAC Generator website (or you can use one of your choice) and enter one of the three MAC address prefixes of your choice from the top.
We will need to create FOUR MAC addresses as that is what s2 stores in its wlan_mac.bin. It is recommended to keep them similar with only the last digit changed as that's what s2 wants.
For example, I'll use C825E1 as my MAC address prefix in that MAC generator. I generated... C825E1BCA0E9, but I want to start my MAC address with a 1 at the end, so I'll do this for my four MAC addresses.
C825E1BCA0E1
C825E1BCA0E2
C825E1BCA0E3
C825E1BCA0E4
Using the hex editor of your choice, Hex edit the downloaded wlan_mac.bin and from beginning to end? Enter your four new MAC addresses into the HEX fields and not the strings. Please note how I already put in a 1, 2, 3 and 4 to mark the last digit of each of the four MAC addresses. We must OVERWRITE the hex values in there, so please make sure you don't accidentally enable insert mode on whichever hex editing app you use.
Save it and make sure the new wlan_mac.bin is copied somewhere onto your s2.
Reboot to TWRP and mount persist.
Go into TWRP's file manager found under Advanced > File Manager.
Browse to /persist and select your defective wlan_mac.bin and either delete it or copy it somewhere to your user data if you want to keep a backup of it.
Copy the good wlan_mac.bin to /persist
(optional) Go to the new /persist/wlan_mac.bin and select it and chmod it to 0644
Reboot to System and check your MAC address in System > About Phone and if your changes were correct then your new MAC address will appear there.
thank you so much man , it worked.
I have confirmation from two s2 users that their WLAN MAC address is properly fixed with the newly generated addresses. :good:
ThE_MarD said:
I have confirmation from two s2 users that their WLAN MAC address is properly fixed with the newly generated addresses. :good:
Click to expand...
Click to collapse
For some reason it didn't work for me. Do I need to have root access? My MAC adress now says 02:00:00:00:00:00
Edit: After updating TWRP to version 3.3.1-0 it worked!!
@T-Jay can you please share you wlan_mac.bin? I'll take a look
ThE_MarD said:
@T-Jay can you please share you wlan_mac.bin? I'll take a look
Click to expand...
Click to collapse
I hope this works. This is the new wlan_mac.bin I created:
https://drive.google.com/file/d/1pdi3P5PNHfu2rkHEJ2xHjVJqFKA2ySFO/view?usp=sharing
I replied in a PM for your newly generated wlan_mac.bin
UPDATE: We got T-Jay's wlan MAC address fixed! I'll mark the chmod step as optional as that might have caused him issues.
Thank you Sir! This was of great help to me.
ThE_MarD said:
Heyyo, so after hearing about the broken LeEco Le 2 Qualcomm Edition (aka s2, x52x series) MAC address issue? It seems like certain earlier builds of Pixel Experience 9 and maybe other pie ROMs from around July last year (at least, that's what it seems like from searching Telegram chat history for an s2 group) could be the root of the issue... That, or some random mod that messed up persist.
So here's a method for fixing your MAC address issues properly via persist (that is, as long as something doesn't break your persist/wlan_mac.bin again).
Please note! This guide is for s2, but you can use this guide for other devices, but instead of wlan_mac.bin being in hex it could be normal text or some vendors might use something completely different.
You can optionally use a hex editing app on your PC (like GHex on Linux) or an app like Hex Editor Free on the Play Store.
Download this blank wlan_mac.bin that we will be editing
https://osdn.net/projects/lineageos-for-s2/releases/73055
Now, we will select a MAC address prefix for Lemobile (the company name that LeEco used for s2). According to a MAC Address/OUI Lookup we have three choices:
B4EFFA
28FECD
C825E1
Using this MAC Generator website (or you can use one of your choice) and enter one of the three MAC address prefixes of your choice from the top.
We will need to create FOUR MAC addresses as that is what s2 stores in its wlan_mac.bin. It is recommended to keep them similar with only the last digit changed as that's what s2 wants.
For example, I'll use C825E1 as my MAC address prefix in that MAC generator. I generated... C825E1BCA0E9, but I want to start my MAC address with a 1 at the end, so I'll do this for my four MAC addresses.
C825E1BCA0E1
C825E1BCA0E2
C825E1BCA0E3
C825E1BCA0E4
Using the hex editor of your choice, Hex edit the downloaded wlan_mac.bin and from beginning to end? Enter your four new MAC addresses into the HEX fields and not the strings. Please note how I already put in a 1, 2, 3 and 4 to mark the last digit of each of the four MAC addresses. We must OVERWRITE the hex values in there, so please make sure you don't accidentally enable insert mode on whichever hex editing app you use.
Save it and make sure the new wlan_mac.bin is copied somewhere onto your s2.
Reboot to TWRP and mount persist.
Go into TWRP's file manager found under Advanced > File Manager.
Browse to /persist and select your defective wlan_mac.bin and either delete it or copy it somewhere to your user data if you want to keep a backup of it.
Copy the good wlan_mac.bin to /persist
(optional) Go to the new /persist/wlan_mac.bin and select it and chmod it to 0644
Reboot to System and check your MAC address in System > About Phone and if your changes were correct then your new MAC address will appear there.
Click to expand...
Click to collapse
Bro i need some help related to my le 2s in a bad situation can you help?
Heyyo @Taran2312, I can try and help but tbh I don't own an s2 but I'll try my best to help