Nik
Nik

Reputation: 181

Is there any way to retrieve the serial number (SSN) of an android device via a USB connection?

I have a Google Nexus 7 (2013) that's under warranty with a dead LCD screen. To get it replaced I need to provide Asus with the serial number (SSN) which is available in 3 places: - In the device's settings (accessed using LCD, which is dead) - On the Box (No room for those in a studio apartment) - Inside the back panel (but removing the panel will void the warranty)

I have my Nexus 7 connected to my PC and can communicate with it using ADT (Android Development Toolkit). Is there any way I can get the serial number using ADT or other software? I need the actual serial number (SSN) for the device and no the ADT device instance serial number.

Upvotes: 10

Views: 23788

Answers (6)

BJCoop
BJCoop

Reputation: 11

Most of the posts above assume you have enabled ADB on the device. Even if you have not enabled ADB, you run the command

adb devices

It will typically return a line with: "<serial_number> unauthorized"

Upvotes: 1

BuGaU0
BuGaU0

Reputation: 511

For Samsung note 3 I do this >> adb shell getprop ril.serialnumber

it print the Serial Number not UDID number as has been answered above!

Upvotes: 2

Benjamin Lucidarme
Benjamin Lucidarme

Reputation: 1732

Adb given one command for get serial number

adb get-serialno

But it not works always

Upvotes: 6

wuseman
wuseman

Reputation: 1676

No grep command is needed, just use getprop :

adb shell getprop ro.serialno 

Upvotes: 13

Yar
Yar

Reputation: 7447

Another method is to use this command:

adb shell idme print | grep  "^serial"

Upvotes: 0

Nik
Nik

Reputation: 181

Found it! The serial number can be retreived using:

adb shell getprop | grep ro.boot.serialno

I used DDMS to double verify and it is in fact the correct serial number. Thanks Chris!

Upvotes: 8

Related Questions