Jump to content

How to change the MAC adress in CM6?


Recommended Posts

Posted

As I said in the title description. I want to change it back to what it was (even if it is typing the adress manually).

Since there is no ifconfig command in the terminal in android, is there a way to change it (since we got stuck with the changed mac, I guess there is)?

Guest AdamBaker
Posted

You can set the MAC address by typing

insmod /system/wifi/ar6000.ko mac_param=11:22:33:44:55:66

when the wifi driver isn't loaded. The phone can end up getting a bit confused if the driver is loaded when it doesn't expect it to be or vice versa though, you really need to replace libhardware_legacy.so with a version that does what you want.

Posted

It can also be changed by modifying the address in the firmware file. I started writing a program to run at boot time that would modify the mac in firmware to be correct so then it would be correct no matter how the module is loaded. Unfortunitely I never finished the program. I can't remeber the file name, but will find it if you're interested. All that is needed to modify it is a hex editor.

As Adam mentioned if you manually load the module android won't activate wifi successfully. It should work if you manually configure everything, but thats not very nice.

Posted

Tried, but no success...

Got some errors...

You can set the MAC address by typing

insmod /system/wifi/ar6000.ko mac_param=11:22:33:44:55:66

when the wifi driver isn't loaded. The phone can end up getting a bit confused if the driver is loaded when it doesn't expect it to be or vice versa though, you really need to replace libhardware_legacy.so with a version that does what you want.

So I need somehow to deactivate the driver (is deactivating wifi enough?) and by editing this thing, will it stay like that forever or be gone after reboot or something.

It can also be changed by modifying the address in the firmware file. I started writing a program to run at boot time that would modify the mac in firmware to be correct so then it would be correct no matter how the module is loaded. Unfortunitely I never finished the program. I can't remeber the file name, but will find it if you're interested. All that is needed to modify it is a hex editor.

As Adam mentioned if you manually load the module android won't activate wifi successfully. It should work if you manually configure everything, but thats not very nice.

I would like to learn how to do it, but until now I was filled with exams. Now I have some free time, but not much. If there are some tutorials could u PM them to me?

Tnx...

  • 3 weeks later...
  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.