Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Get Hardware Information Programmatically

I have a requirement for obtaining the hardware related information on an Android device that runs my application. I need information of the following sort.

  • CPU Manufacturer, model and serial number
  • SD Card Manufacturer and serial number
  • Camera Manufacturer and other related specs
  • Bluetooth related hardware information
  • WiFi related hardware information
  • RAM Vendor / model
  • Display vendor and model

Any help on this topic would be highly appreciated.

like image 827
Heshan Perera Avatar asked May 08 '12 10:05

Heshan Perera


People also ask

How do I find hardware info on Android?

For Android 7 : go to "Settings" > "About" > "Hardware information". 2.

How to get system information Android Studio?

xml as a main activity and run the app by clicking run button on Android Studio and you will see the UI mentioned above, click on “Get Information” button to display the hardware and software information of your android device.

How do I find device details?

Go into the Settings menu of your device and check for an option that details the Android system info. This can vary depending on your brand of device and whether it's a phone or a tablet.


2 Answers

    Log.i("TAG", "SERIAL: " + Build.SERIAL);     Log.i("TAG","MODEL: " + Build.MODEL);     Log.i("TAG","ID: " + Build.ID);     Log.i("TAG","Manufacture: " + Build.MANUFACTURER);     Log.i("TAG","brand: " + Build.BRAND);     Log.i("TAG","type: " + Build.TYPE);     Log.i("TAG","user: " + Build.USER);     Log.i("TAG","BASE: " + Build.VERSION_CODES.BASE);     Log.i("TAG","INCREMENTAL " + Build.VERSION.INCREMENTAL);     Log.i("TAG","SDK  " + Build.VERSION.SDK);     Log.i("TAG","BOARD: " + Build.BOARD);     Log.i("TAG","BRAND " + Build.BRAND);     Log.i("TAG","HOST " + Build.HOST);     Log.i("TAG","FINGERPRINT: "+Build.FINGERPRINT);     Log.i("TAG","Version Code: " + Build.VERSION.RELEASE); 
like image 132
Yamini Avatar answered Oct 10 '22 17:10

Yamini


Log.i("ManuFacturer :", Build.MANUFACTURER); Log.i("Board : ", Build.BOARD); Log.i("Display : ", Build.DISPLAY); 

More info can be found at from http://developer.android.com/reference/android/os/Build.html

like image 23
Richa Avatar answered Oct 10 '22 18:10

Richa