Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Korakot Chaovavanich http://korakot.stumbleupon.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Looking up phone model using firmware code

You can lookup the firmware code by
   1  
   2  dial *#0000#

For pys60 you can use
   1  
   2  >>> import sysinfo
   3  >>> sysinfo.sw_version()
   4  u'V 3.42.1 16-10-03 NHL-10 (c) NMP'
   5  >>> firmware = _.split(' ')[3]
   6  >>> firmware
   7  u'NHL-10'
   8  >>>

Looking at the table here, a mapping can be made.
   1  
   2  >>> mapping = {
   3    'RM-51': '3230',
   4    'RM-38': '3250',
   5    'NHM-10': '3600',
   6    'NHM-10X': '3620',
   7    'NHL-8': '3650',
   8    'NHL-8X': '3660',
   9    'RM-25': '6260',
  10    'RM-29': '6260b',
  11    'NHL-10': '6600',
  12    'NHL-12': '6620',
  13    'NHL-12X': '6620',
  14    'RM-1': '6630',
  15    'RH-67': '6670',
  16    'RH-68': '6670b',
  17    'RM-36': '6680',
  18    'RM-57': '6681',
  19    'RM-58': '6682',
  20    'RH-51': '7610',
  21    'RH-52': '7610b',
  22    'NHL-2NA': '7650',
  23    'RM-49': 'E60-1',
  24    'RM-89': 'E61-1',
  25    'RM-10': 'E70-1',
  26    'RM-24': 'E70-?',
  27    'NEM-4': 'N-Gage',
  28    'RH-29': 'N-Gage QD (asia/europe)',
  29    'RH-47': 'N-Gage QD (americas)',
  30    'RM-84': 'N70-1',
  31    'RM-99': 'N70-5',
  32    'RM-67': 'N71-1',
  33    'RM-112': 'N71-5',
  34    'RM-91': 'N80-3',
  35    'RM-92': 'N80-1',
  36    'RM-42': 'N90-1',
  37    'RM-43': 'N91-1',
  38    'RM-158': 'N91-5' }
  39  >>> mapping[firmware]
  40  '6600'
  41  >>>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS