Search code examples
androidapimodeladb

Android model number mismatch between Settings menu and Build.MODEL


I've tested several Android handsets and found that on some specific devices, the model number presented in "Settings->About->(Phone identity)->Model number" is different from the model number retrieved using Build.MODEL. I'm looking to find out how I can retrieve the model number presented via the Settings menu programmatically.

I've seen this issue on a couple of devices:

  1. Actual Device is HTC Inspire 4G
    • Model number from Settings menu: HTC InspireTM 4G
    • Model number from Build API: Desire HD
  2. Actual Device is Motorola Droid Razr Maxx HD
    • Model number from Settings menu: DROID RAZR MAXX HD
    • Model number from Build API: DROID RAZR HD

I've tried inspecting the build.prop file and did not find the model number found via the Settings menu. Your thoughts and ideas on retrieving the Settings menu value via the Android API or otherwise are appreciated. Thanks in advance!


Solution

  • The devices you mention are not vanilla-Android devices; they include some manufacturer customisation. The Motorola version is much closer to vanilla Android than the HTC version, but even so...

    The exact information displayed in the Settings menu is one of the things that manufacturers may customise whenever they package their version of Android for inclusion on a particular device. There is unlikely to be any portable, reliable way of getting this information.