Project

General

Profile

WiFi MAC address spoofing

Added by Si B 10 months ago

I am setting up Replicant 6.0-0003 on my Galaxy S3 (i9300) and so far it's working great! (Many thanks to everyone who has contributed to the project!)

Now I am configuring wifi, and trying to randomize the device's MAC address before associating with the access point. In other versions of android I was able to do this in terminal:

su
svc wifi enable
ip link set dev wlan0 address MY_MAC_ADDRESS

OR

ifconfig wlan0 hw ether MY_MAC_ADDRESS

after which the new address would be visible through

ip link show wlan0

OR

ifconfig wlan0

But using this method on replicant the MAC address does not change :(. There are no errors in console or logcat.

I am using the phone's internal wifi chip with the proprietary firmware extracted from the LineageOS zip file, as explained in
https://code.paulk.fr/article16/missing-proprietary-firmwares-in-android-systems
(of course not great to have to use proprietary blobs)

Does anyone know how to spoof MAC address on this phone / this version of Replicant?
Thanks!