简体   繁体   English

Android Build.SERIAL-是十六进制吗?

[英]Android Build.SERIAL - is it hex?

Android offers the hardware serial number as an option for identifying the device (guaranteed if there is no TelephonyManager DeviceID). Android提供了硬件序列号作为识别设备的选项(如果没有TelephonyManager DeviceID,则予以保证)。 The documentation says: 该文件说:

public static final String SERIAL

Added in API level 9
A hardware serial number, if available. Alphanumeric only, case-insensitive.

All the ones I've seen are hex, as in no alphabetic chars above 'F'. 我见过的所有字符都是十六进制的,就像在'F'上方没有字母字符一样。 Is this guaranteed? 这样可以保证吗?

No, it's not. 不,这不对。 The documentation doesn't say that it is, and it seems that HTC has Zs in their serial numbers . 文档没有说是这样,似乎HTC的序列号中有Z。

The new format will read similar to HT[year][month][day]. 新格式将类似于HT [year] [month] [day]。 I presume that they wish to be this precise for warranty purposes. 我想他们出于保修目的希望如此精确。

The month format shall be between 1 - 12, but the day format will take a slightly different shape. 月格式应介于1到12之间,但日格式应略有不同。

Days will go from 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G, H, J, K, L, M, N, P, R, S, T, V, W, X, Y, Z. Day Z represents day 31. 天数将从1、2、3、4、5、6、7、8、9,A,B,C,D,E,F,G,H,J,K,L,M,N,P, R,S,T,V,W,X,Y,Z。第Z天代表第31天。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM