summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDavid Kelly <dkelly@afilias.info>2018-03-12 14:17:24 +0000
committerDavid Kelly <dkelly@afilias.info>2018-07-04 08:23:09 +0000
commitdb6a391957f51c6ed9a768f0c39c61ff7a4f3603 (patch)
tree4ac4a21a61dcddaadd73d9d77d30f985ac059d16 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbc103bdf18e10da12bfe5c205c154a91e5daa866 (diff)
Type Allocation Code & Manufacturer Code
- Addition of getTypeAllocationCode & getManufacturerCode to android.telephony.TelephonyManager. - The Type Allocation Code is the first eight characters of the IMEI. The Type Allocation Code identifies a particular GSM device model. - The Manufacturer Code is the first eight characters of the MEID. The Manufacturer Code identifies the manufacturer of a CDMA device. - The reasoning behind adding getTypeAllocationCode is to be able to obtain the Type Allocation Code without requiring the READ_PHONE_STATE permission. Currently in order to obtain the Type Allocation Code a substring operation must be performed on getImei which is protected by the READ_PHONE_STATE permission. - The reasoning behind adding getManufacturerCode is to be able to obtain the Manufacturer Code without requiring the READ_PHONE_STATE permission. Currently in order to obtain the Manufacturer Code a substring operation must be performed on getMeid which is protected by the READ_PHONE_STATE permission. - The reasoning that these additional methods do not require the READ_PHONE_STATE permission is that neither the Type Allocation Code nor the Manufacturer Code can identify a unique device. The Type Allocation Code and the Manufacturer Code are analogous to other device information such as device model or device screen dimensions. Test: run cts -m CtsTelephonyTestCases Bug: 74613795 Change-Id: I5a586b5a362b39aae13357329efb19eb93f0434c Signed-off-by: David Kelly <dkelly@afilias.info>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions