4

When I type

adb devices

in the console, then it prints this:

List of devices attached 
SH16BV815282    device

How do I programmatically get the SH16BV815282, if it possible at all?

I want to get that value by android application at run time. Where this value is actually stored?

Rob Hruska
  • 115,151
  • 29
  • 164
  • 188
Lukap
  • 30,736
  • 61
  • 153
  • 243

2 Answers2

0

It's Build.SERIAL. However, it's only available on Android 2.3+.

Felix
  • 86,568
  • 42
  • 148
  • 166
0

I am using blow code for geting name of the device.

GUIStatics.deviceModel = android.os.Build.MODEL;

DynamicMind
  • 4,180
  • 1
  • 25
  • 43