Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use adb.exe to find a description of a phone?

Tags:

android

adb

If I call the command "adb.exe devices" I get a list of devices with a unique ID for each. These IDs are perfect for programming but not very human readable. Is there any way I can link one of these IDs to a (not necessarily unique) description of the phone? For example, if I have a device with an ID 1234567890abcdef is there any way I can figure that in real life it is a Motorola Droid X?

like image 742
TwentyMiles Avatar asked Jun 16 '11 19:06

TwentyMiles


1 Answers

In Android there is a Model number entry in settings that shows phone name.

There is a way to quickly see this via command line:

adb shell cat /system/build.prop | grep "product"

This is what's shown for Samsung Galaxy S 4G:

ro.product.model=SGH-T959V
ro.product.brand=TMOUS
ro.product.name=SGH-T959V
ro.product.device=SGH-T959V
ro.product.board=SGH-T959V
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Samsung
ro.product.locale.language=en
ro.product.locale.region=US
# ro.build.product is obsolete; use ro.product.device
ro.build.product=SGH-T959V

On a HTC Desire, the output looks like this:

ro.product.model=HTC Desire
ro.product.brand=htc_wwe
ro.product.name=htc_bravo
ro.product.device=bravo
ro.product.board=bravo
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=

You can refine your query to show only one line:

adb shell cat /system/build.prop | grep "ro.product.device"

or

adb shell cat /system/build.prop | grep "ro.product.model"
like image 186
inazaruk Avatar answered Oct 03 '22 23:10

inazaruk