I have an android device, which when registered to an account renames itself after the account name. I need to get that name using adb.
Asked
Active
Viewed 8,912 times
6
-
Can you retrieve what you want with the `adb devices` command? – Nino Filiu Feb 21 '19 at 15:22
-
1adb devices retrieves the serial number but I want to get the user friendly name. Thanks. – Senthil B Feb 24 '19 at 14:59
2 Answers
3
You can use
adb shell dumpsys bluetooth_manager
See full answer here: Find connected bluetooth device name using adb?

z1ad
- 88
- 1
- 5
-
2From Mac OS X, I use this to print only the device name: `adb shell dumpsys bluetooth_manager | \grep 'name:' | cut -c9-` – Patrick Webster Oct 17 '20 at 05:01
0
Try this:
./adb shell getprop
It returns all device properties which should also contain the name that you are looking for. I got multiple name properties:
[ro.product.name]: [TA-1032_00WW]
[ro.product.nickname]: [Nokia 3]
[ro.vendor.product.name]: [NE1_00WW_FIH]
I think you are looking for ro.product.nickname. You can get it with this command on Mac/Linux:
./adb shell getprop | grep "ro.product.nickname"
The Windows command should be similar. Something like this:
adb shell
getprop | grep -e 'ro.product.nickname'

Apfelsaft
- 5,766
- 4
- 28
- 37
-
Hey, thanks but I am not looking for the nickname but the user friendly name that can be set by the user himself. – Senthil B Feb 24 '19 at 14:58