How to detect a mobile device manufacturer and model programmatically in Android?

Shan picture Shan · Jul 5, 2013 · Viewed 63.2k times · Source

I want to find device specification of a mobile phone for examples, the device manufacturer, model no ( and may be types of sensors in the device, wifi chipset etc..). I want to get the device manufacture/model number (eg. Samsung GT-I9100 i.e Galaxy S2) programmatically. The manufacture/model number is also used in Google Play when installing an app. I want to use this information to make some configuration changes in my hardware dependent app (for eg. power measurement).

Answer

Avadhani Y picture Avadhani Y · Jul 5, 2013

You can get as below:

String deviceName = android.os.Build.MODEL;
String deviceMan = android.os.Build.MANUFACTURER;

For more other device details, Please refer this document: android.os.Build