3

In Official site, we can see this:

Devices running on Android Q transmit randomized MAC addresses by default. If your app handles an enterprise use case, the platform provides several new APIs: Obtain randomized MAC address: Device owner apps and profile owner apps can retrieve the randomized MAC address assigned to a specific network by calling getRandomizedMacAddress(). Obtain actual, factory MAC address: Device owner apps can retrieve a device's actual hardware MAC address by calling getWifiMacAddress(). This method is useful for tracking fleets of devices.

More details

Another Reference

I used this way to get MAC address in android Q, but I failed. I get randomised MAC address, but not real MAC address. So How can I get phone's MAC address in my app?

hswarov
  • 31
  • 6
  • 3
    Apparently, you need to write [a device policy controller app](https://developer.android.com/work/dpc/device-management), and have it run in device owner mode. This requires specially provisioned devices and is not available to ordinary Android apps. – CommonsWare Apr 26 '19 at 23:11

0 Answers0