6

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.

Senthil B
  • 61
  • 1
  • 2

2 Answers2

3

You can use

adb shell dumpsys bluetooth_manager

See full answer here: Find connected bluetooth device name using adb?

z1ad
  • 88
  • 1
  • 5
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