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
  • 118,520
  • 32
  • 167
  • 192
Lukap
  • 31,523
  • 64
  • 157
  • 244

2 Answers2

0

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

Felix
  • 88,392
  • 43
  • 149
  • 167
0

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

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

DynamicMind
  • 4,240
  • 1
  • 26
  • 43