I am trying to get the serial number of my Lenovo Idea Tab running Android. I tried all the options available in Google search, which are:
Class<?> c = Class.forName("android.os.SystemProperties");
Method get = c.getMethod("get", String.class);
String serial = (String) get.invoke(c, "ril.serialnumber" );
String serial_no = (String) get.invoke(c, "ro.serialno");
String serial_no1 = (String) get.invoke(c, "sys.serialnumber");
ro.serialno
is giving a value as 8TYDE67HYLUOZPOZ
, but the serial number shown in "Status -> About Tablet" is HGC2TKH4
, and the printed serial number in the back side of the tab is also HGC2TKH4
.
ril.serialnumber
and sys.serialnumber
are empty.
In some other tabs also, the ril.serialnumber
is empty, but it is supposed to have the serial number, I hope.
Please, how can I find the real serial number of my device on Android?