3

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

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

BenMorel
  • 34,448
  • 50
  • 182
  • 322
aandroidtest
  • 1,493
  • 8
  • 41
  • 68

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
  • 4,188
  • 3
  • 33
  • 55
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
  • 12,846
  • 4
  • 32
  • 55