Android Device Info – Xamarin Android C#

Android.Telephony.TelephonyManager mTelephonyMgr;
//Telephone Number
mTelephonyMgr = (Android.Telephony.TelephonyManager)GetSystemService(TelephonyService);
var PhoneNumber = mTelephonyMgr.Line1Number;

//International Mobile Station Equipment Identity (IMEI) number
String m_deviceId = mTelephonyMgr.DeviceId;

//Android ID
String m_androidId = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId);

//WLAN MAC Address
Android.Net.Wifi.WifiManager m_wm = (Android.Net.Wifi.WifiManager)GetSystemService(Android.Content.Context.WifiService);
String m_wlanMacAdd = m_wm.ConnectionInfo.MacAddress;

//Blue-tooth Address
Android.Bluetooth.BluetoothAdapter m_BluetoothAdapter = Android.Bluetooth.BluetoothAdapter.DefaultAdapter;
String m_bluetoothAdd = m_BluetoothAdapter.Address;

Permission Required

<uses-permission android:name=”android.permission.INTERNET” />
<uses-permission android:name=”android.permission.READ_SMS” />
<uses-permission android:name=”android.permission.READ_PHONE_STATE” />
<uses-permission android:name=”android.permission.ACCESS_WIFI_STATE” />

Add Comment