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,732
  • 9
  • 39
  • 54

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,947
  • 4
  • 35
  • 62
Fred Grott
  • 3,505
  • 1
  • 23
  • 18