Search code examples
androidbluetoothandroid-wifiandroid-bluetooth

Does MAC address changes over time in Android


Hello I want to get the MAC address of the android device so there is two ways either use WiFi or BlueTooth adapter for this.

Does this MAC address changes over the time when you turn on/off WiFi or BlueTooth or restart your device or factory reset. Any idea ?


Solution

  • MAC address is unique to each piece of hardware. They won't change. First few characters of the MAC address contains manufacturer information.

    p.s. Except for those MAC addresses generated by simulator / VM, etc.


    UPDATE

    Since Android 5.x, iOS 8+ and Windows 10+, MAC Address is generated and randomized each time Wi-Fi is turned on to protect user's privacy. Some operating systems even have different MAC address for each connected network.