Android平板电脑序列号(IMEI没有/ DEVICE_ID /串行) [英] Android Tablet Serial Number (not IMEI/DEVICE_ID/SERIAL)
问题描述
我是新手
我使用的是三星的标签P3100(ICS 4.04)。在菜单设置 - >关于设备 - >状态,我可以得到device.How的序列号以编程方式获得此序列号的价值?
I'm using samsung tab P3100 (ICS 4.04).on menus setting->about device->status, i can got the serial number of device.How to get this serial number value programmatically ?
请帮我...
&android.os.Build.Serial LT;>序列号
android.os.Build.Serial <> Serial Number
请注意:
序列号和LT;> IMEI&LT;> android_id&LT;> MAC地址
Note : Serial number <> IMEI <> android_id <> mac address
推荐答案
您可以在亚行外壳使用getprop命令,并检查自己的文件,其中包含正确的序列number.Many次序列号位于不同文件和code的是设备特定的。
You can use the getprop command on the adb shell and check yourself that which of the files contains the correct Serial number.Many times the serial number is located on different files and code has to be device specific.
敌人SAMUNG标签3,你可以使用下面的code:
Foe samung Tab 3 you can use the following code:
尝试{
Class<?> c = Class.forName("android.os.SystemProperties");
Method get = c.getMethod("get", String.class, String.class);
serialnum = (String) (get.invoke(c, "sys.serialnumber", "unknown"));
} catch (Exception ignored) {
serialnum = "unknown";
}
这篇关于Android平板电脑序列号(IMEI没有/ DEVICE_ID /串行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!