I have a Nexus 5 which was running 5.1 . I wanted to change my mac address and did some research and it seemed that it was very difficult on 5.1 so I downgraded to 4.4, rooted the device and ran these groups of commands (11:22:33:44:55:66 wasn't actually used, I used the actual MAC address I was trying to replicate):
busybox ifconfig wlan0 hw ether 11:22:33:44:55:66
ip link set wlan0 address 11:22:33:44:55:66
ip link set wlan0 broadcast 11:22:33:44:55:66
echo -n "112233445566" > /persist/wifi/.macaddr
After all this stuff, my mac address changed, but kept changing on its own whenever I reboot the phone; 00:90:4C:XX:XX:XX the first 3 sets always the same with the last 3 sets always changing. I tried this to fix the problem and get my mac address to it's original state.
echo -ne '\x11\x22\x33\x44\x55\x66' > /persist/wifi/.macaddr
chown root:root /persist/wifi
chmod 755 /persist/wifi
chown wifi:wifi /persist/wifi/.macaddr
chmod 660 /persist/wifi/.macaddr
While that seemed to have fixed the problem, as soon as I upgraded back to 5.1, the bad mac address started appearing again. I've factory reset and flashed stock firmware several times without success.
busybox ifconfig wlan0 hw ether 11:22:33:44:55:66
ip link set wlan0 address 11:22:33:44:55:66
ip link set wlan0 broadcast 11:22:33:44:55:66
echo -n "112233445566" > /persist/wifi/.macaddr
After all this stuff, my mac address changed, but kept changing on its own whenever I reboot the phone; 00:90:4C:XX:XX:XX the first 3 sets always the same with the last 3 sets always changing. I tried this to fix the problem and get my mac address to it's original state.
echo -ne '\x11\x22\x33\x44\x55\x66' > /persist/wifi/.macaddr
chown root:root /persist/wifi
chmod 755 /persist/wifi
chown wifi:wifi /persist/wifi/.macaddr
chmod 660 /persist/wifi/.macaddr
While that seemed to have fixed the problem, as soon as I upgraded back to 5.1, the bad mac address started appearing again. I've factory reset and flashed stock firmware several times without success.
Last edited: