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
.
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
.
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) {
}