I understand that Android does not want to give access to the actual MAC address due to security concerns. But I don’t understand why even the randomized MAC address can’t be accessed programmatically especially when this randomized MAC address is visible and used by other network devices. I tried WifiConfiguration().getRandomizedMacAddress()
but only got back 02:00:00:00:00:00
in return.
This link mentions the restrictions of WifiConfiguration’s getRandomizedMacAddress() method, but doesn’t give an explanation as to why there is a restriction.
Is there a way to programmatically access the randomized MAC address of your Android device? Can someone share why there are restrictions for the randomized MAC address in addition to the actual MAC address?