Skip to content

Instantly share code, notes, and snippets.

@wynemo
Last active July 10, 2017 10:26
Show Gist options
  • Save wynemo/b5eb1643f3c298230072435b1f0bc19a to your computer and use it in GitHub Desktop.
Save wynemo/b5eb1643f3c298230072435b1f0bc19a to your computer and use it in GitHub Desktop.
change mac address on a rooted nexus 4 在已root的nexus 4上修改mac地址
nexus 4已经root
google play上安装busybox
google play上安装终端模拟器
进入终端
# company 7C:DD:90:06:59:7C
busybox ifconfig -a
busybox ifconfig wlan0 hw ether 7c:dd:90:06:59:7c
busybox iplink show wlan0
cp /persist/wifi/.macaddr /persist/wifi/macaddr.bk # backup
echo -e "7CDD9006597C" > /persist/wifi/.macaddr
重启
发现mac地址已经被修改成功
------------------
restore:
cp /persist/wifi/macaddr.bk /persist/wifi/.macaddr
busybox ifconfig wlan0 hw ether c4:43:8f:47:b9:c1 # origin mac address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment