Get MAC Address of android device without Wifi

I’m going to take a leap and assume that you want this MAC address in order to establish a unique identifier for the device. Mac Addresses are not the way to do this.

There’s an Android Developer Blog post titled “Identifying App Installations” which covers the topic of generating unique ID’s fairly well, including the popular methods, and the pros/cons. It’s definitely worth a read. Quite relevant to this post is the following quote:

It may be possible to retrieve a Mac address from a device’s WiFi or Bluetooth hardware. We do not recommend using this as a unique identifier. To start with, not all devices have WiFi. Also, if the WiFi is not turned on, the hardware may not report the Mac address.

The options available to you instead include TelephonyManager.getDeviceId(), android.os.Build.SERIAL, and Settings.Secure.ANDROID_ID, all of which are covered in more detail in the linked post.

Leave a Comment