Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 593
Nik Avatar asked Aug 14 '14 18:08

Nik


2 Answers

No grep command is needed, just use getprop :

adb shell getprop ro.serialno 
like image 63
wuseman Avatar answered Oct 02 '22 09:10

wuseman


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!

like image 34
Nik Avatar answered Oct 02 '22 09:10

Nik