3

How do I setup a MAC address for the Android Emulator?

Currently, it is shown as "Unavailable" under Settings -> About Phone -> Status

BenMorel
  • 31,815
  • 47
  • 169
  • 296
aandroidtest
  • 1,455
  • 7
  • 39
  • 67

3 Answers3

2

By default, the Android emulator runs emulating a Ethernet connection, but not a wifi connection. Since the Wifi is not enabled it dosen't have mac address.It's the same as when you try getting a hold of the bluetooth stuff on the emulator. There is no MacAdress and should return null. Try on a real device and it will work

dev-masih
  • 3,610
  • 3
  • 30
  • 50
1

It's the same as when you try getting a hold of the bluetooth stuff on the emulator. There is no MacAdress and should return null. Try on a real device and it will work.

Kamuy
  • 177
  • 1
  • 6
0

It does appear to be possible to retrieve the MAC address if that's what you mean by "setup". See this answer

Utils.getMACAddress("eth0");
Community
  • 1
  • 1
Jeffrey Mixon
  • 11,416
  • 3
  • 29
  • 46