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?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Yes,
adb shell cat /system/build.prop
is wonderful, but also as @Matt said, it sometimes differs because of different manufacture.IMHO, the most reliable approach is the built-in command:
adb shell getprop
======================================================================
Here is a comparison for an exception (Genymotion emulator):
By
adb shell cat /system/build.prop
you'll getSo there is no model value :(
By
adb shell getprop
you'll getHere you get the model name: Nexus422ForAutomation :)
With newer devices, you can run
adb devices -l
This will list some devices in a more human readable form
Example:
I'm using this script (on MacOS):
It produces e.g. the following output:
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:
This is what's shown for Samsung Galaxy S 4G:
On a HTC Desire, the output looks like this:
You can refine your query to show only one line:
or
Unfortunately, there is no reliable way to do this since each manufacturer tweaks their build properties
If you type "adb help" into the command line you can see a list of the adb commands and a description for each.