INNER CODE UNIT · Python

get_os_name

crocs-muni/JCAlgTest · AlgTest_Process/cplc.py:76

def get_os_name(os_id):
    """
    Returns human-readable name of operating system based on provided OperatingSystemID
    @param os_id: string realization of 2 bytes OperatingSystemID (in hexadecimal, e.g., '1291')
    @returns human-readable OS string
    """
    os_id = os_id.lower()
    if os_id.find('0000') != -1: return '(not provided)'
    if os_id.find('ffff') != -1: return '(not provided)'
    if os_id.find('0011') != -1: return 'Schlumberger'
    if os_id.find('0027') != -1: return 'STM027'
    if os_id.find('0230') != -1: return 'G230'
    if os_id.find('1291') != -1: return 'Gemplus/Gemalto TOP'
    if os_id.find('1671') != -1: return 'G&D Sm@rtCafe'
    if os_id.find('1981') != -1: return 'Schlumberger'
    if os_id.find('2041') != -1: return 'Axalto'
    if os_id.find('3231') != -1: return 'Gemplus TOP'
    if os_id.find('4041') != -1: return 'Oberthur OCS'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…