[SOLVED] Change wifi MAC Address

Search This thread

Cicar

Member
Feb 12, 2009
20
10
I have succesfully changed wifi mac address of my optimus.
We have to just insert a line "macaddr=XX:XX:XX:XX:XX:XX" in the nvram.txt

Here is how I did it:

You require:
1.)Rooted phone.
2.)anroid sdk

1.)First pull the nvram.txt file from /etc/wl to sdcard:
in cmd(windows) goto android-sdk-windows\tools and type
adb shell

2.)Copy nvram.txt from /etc/wl to sdcard
cp /etc/wl/nvram.txt /sdcard/nvram.txt

3.) Using text editor in phone add following line at the end:
macaddr=XX:XX:XX:XX:XX:XX (replace XX:XX:.... with desired mac addr.)

4.)Save file and copy it to /etc/wl from adb shell
cp /sdcard/nvram.txt /etc/wl/nvram.txt

5.)Reboot and it is done.:)


To restore orignal mac address just delete the macaddr line.

Note:

1.) Tested only in stock LG rome with GNM OC kernel. In other roms or kernel the location of nvram.txt may differ according to the parameter using which driver module (wireless.ko or bcm4325.ko) just find that file and use the above process. It will work.

2.) The file cannot be edited in windows as windows has different new line character than linux. It has to be edited in some linux compactible file editor like Programmers Notepad.:eek:
 

ruigui

Senior Member
Oct 11, 2010
54
23
Nice one ;)
And to change hostname? Any ideas?
I changed it, and in phone it appears to be changed. But my router doesn't say the same... Has original hostname...
 

Cicar

Member
Feb 12, 2009
20
10
Yea bcoz android does'nt use hostname to connect with router. I'm trying to figure out the configuration file for that.....
 

IamIrene

Senior Member
Mar 15, 2011
2,314
818
1st step i already duno how to do T_T
know the pull things from nvram.txt file from /etc/wl to sdcard which require me to root my phone 1st then only can pull out
but after that in cmd(windows) goto android-sdk-windows\tools and type
adb shell
my computer can't detect that was a file in computer,and what is the android-sdk ?
 

sarfaraz1989

Senior Member
Jan 19, 2011
655
62
New Delhi
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx

replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings
 

IamIrene

Senior Member
Mar 15, 2011
2,314
818
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx

replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings

after root my phone using z4root/gingerbreak,then download the root explorer from here is it ??
https://market.android.com/details?id=com.speedsoftware.rootexplorer&feature=search_result
if correct navigate to which file ??
sry android newbie here T_T
 

IamIrene

Senior Member
Mar 15, 2011
2,314
818
arrgh need solve my wifi problem ASAP
already more than 2week can't connect wifi in my college wifi T_T
 

Lorddarks

New member
Jan 15, 2011
4
0
whant's next

i've been change macaddr 'but nothing happen .device not connet wifi.it sitll ask password:confused:
 

royal.tarun

Senior Member
Aug 10, 2011
145
25
you said you can access free internet.
i was just curious that how?
i mean free internet from the service provider or from where???
i too want to use it.
does that mean that if there is any wifi network then i will be able to use it without any pass???
 

vermilion871

Member
Nov 18, 2011
33
5
Shimla
Its simple to change your wifi mac address xD

Root you phone

install busybox (market.android. com/details?id=stericson.busybox) remove the space in link

download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)

in terminal emulator
type -

su

then

busybox ifconfig wlan0 down

busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx

busybox ifconfig wlan0 up

YOU'RE DONE ;)
DONT FORGET THE THANKS BUTTON

:D:D:D
 
Last edited:

rishabh22

Senior Member
Jan 1, 2012
319
145
Delhi
Root you phone

install busybox (market.android. com/details?id=stericson.busybox) remove the space in link

download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)

in terminal emulator
type -

su

then

busybox ifconfig wlan0 down

busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx

busybox ifconfig wlan0 up

YOU'RE DONE ;)
DONT FORGET THE THANKS BUTTON

:D:D:D

is there a way to revert this?
I mean get back to the original hardware mac?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    I have succesfully changed wifi mac address of my optimus.
    We have to just insert a line "macaddr=XX:XX:XX:XX:XX:XX" in the nvram.txt

    Here is how I did it:

    You require:
    1.)Rooted phone.
    2.)anroid sdk

    1.)First pull the nvram.txt file from /etc/wl to sdcard:
    in cmd(windows) goto android-sdk-windows\tools and type
    adb shell

    2.)Copy nvram.txt from /etc/wl to sdcard
    cp /etc/wl/nvram.txt /sdcard/nvram.txt

    3.) Using text editor in phone add following line at the end:
    macaddr=XX:XX:XX:XX:XX:XX (replace XX:XX:.... with desired mac addr.)

    4.)Save file and copy it to /etc/wl from adb shell
    cp /sdcard/nvram.txt /etc/wl/nvram.txt

    5.)Reboot and it is done.:)


    To restore orignal mac address just delete the macaddr line.

    Note:

    1.) Tested only in stock LG rome with GNM OC kernel. In other roms or kernel the location of nvram.txt may differ according to the parameter using which driver module (wireless.ko or bcm4325.ko) just find that file and use the above process. It will work.

    2.) The file cannot be edited in windows as windows has different new line character than linux. It has to be edited in some linux compactible file editor like Programmers Notepad.:eek:
    5
    Its simple to change your wifi mac address xD

    Root you phone

    install busybox (market.android. com/details?id=stericson.busybox) remove the space in link

    download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)

    in terminal emulator
    type -

    su

    then

    busybox ifconfig wlan0 down

    busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx

    busybox ifconfig wlan0 up

    YOU'RE DONE ;)
    DONT FORGET THE THANKS BUTTON

    :D:D:D
    1
    B'Coz I can access free Internet by doing this.....
    1
    and if i use the nvram method.. then is it semi-permanent?
    1
    I just don't understand. How is it useful???
    How can I access free internet?
    Please tell me in some detail.
    Thanks

    hmmm u cant access free wifi by changing the mac address(well not exactly)
    ill give u my own example:
    there are several wifi hotspots in my college but only the hostelers who have a registered mac add are allowed to use that. So if i use a mac that has already been registered by someone i can access wifi which otherwise i wouldnt have been able to connect to ;):D:D so that is how i gain by changing my mac address