0

enter image description here

I want to get the Product SN from an Android device (not to be confused with the Android ID or device id). I have been searching and unable to find a way to do this.

For example, the above device would give me a product SN of i5321402000187.

Joel
  • 4,661
  • 9
  • 36
  • 52

1 Answers1

0

its a hidden api..try this;

String serial = null; 

try {
    Class<?> c = Class.forName("android.os.SystemProperties");
    Method get = c.getMethod("get", String.class);
    serial = (String) get.invoke(c, "ro.serialno");
} catch (Exception ignored) {
}
FD_
  • 12,888
  • 4
  • 33
  • 62
Fred Grott
  • 3,435
  • 1
  • 22
  • 18