Do Android Phones have a MAC address when connected to 3G?
Asked Answered
C

2

7

I was wondering if Android phones have a MAC address when connected to the internet over 3G? I'm assuming they do, so I guess my real question is whether or not there is anyway of accessing it? I haven't found anything from looking through the APIs or by googling, but maybe I missed something.

Thanks in advance

Casimir answered 3/6, 2011 at 20:52 Comment(1)
What do you need the MAC for? MAC is not connected with 3G, EDGE, etc. The device might not have a wi-fi and also no bluetooth - then there is no MAC address.Tetrameter
A
5

MAC address is specific to network technologies that implement the IEEE 802 standard, such as ethernet. 3G is not an IEEE 802 network, so MAC address really doesnt apply.

That said, there should be very few reasons to use the MAC address in your app, unless youre writing a network driver or doing something specific with the TCP/IP network.

Often people reach for MAC address thinking that it represents a unique device id, when really you should use something like http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID to get a unique id that will work across all of the different hardware combinations for android, some of which might include no IEE 802 network whatsoever.

Arabele answered 11/5, 2013 at 7:22 Comment(0)
A
1

I have never seen any reference to a 3G MAC address anywhere. The closest thing to a 3G MAC address that I know of is the IMEI/MEID code.

android.telephony.TelephonyManager.getDeviceId() will return the IMEI/MEID code.

If you are trying to uniquely identify app installs then see: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

Attitudinize answered 11/5, 2013 at 6:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.