INNER CODE UNIT · Python
get_osiddate_name
crocs-muni/JCAlgTest · AlgTest_Process/cplc.py:114
def get_osiddate_name(os_id, os_date):
"""
Returns human-readable name of operating system based on provided OperatingSystemID and OperatingSystemReleaseDate
@param os_id: string realization of 2 bytes OperatingSystemID (in hexadecimal, e.g., '1291')
@param os_date: string realization of 2 bytes OperatingSystemReleaseDate (in hexadecimal, e.g., '6138')
@returns human-readable os string with release date (if known)
"""
if os_id.find('4051') != -1:
if os_date.find('5158') != -1:return 'JCOP 2.2 (2005)'
if os_date.find('6138') != -1:return 'JCOP 2.2.1 (2006)'
if os_date.find('6345') != -1:return 'JCOP 2.3.1 (2006)'
if os_date.find('7095') != -1:return 'JCOP 2.3.1R? (2007)'
if os_id.find('4700') != -1:
if os_date.find('0000') != -1:return 'JCOP4 (2018)'
if os_date.find('e4d8') != -1:return 'JCOP3 (2015)'
if os_id.find('4791') != -1:
if os_date.find('7351') != -1:return 'JCOP 2.3.2 (2007)'
if os_date.find('8102') != -1:return 'JCOP 2.?.? (2008)'