how to decode android.os.Build.SERIAL?

前端 未结 4 2017
攒了一身酷
攒了一身酷 2020-12-11 07:28

I\'m working on the recurring serial number topic to provide a unique id.

I try this :

       String serial = null; 

        try {
            Clas         


        
4条回答
  •  悲哀的现实
    2020-12-11 08:05

    If you want to get the serial number as shown on the back of the device and if you are using the Samsung Galaxy Tab then why not use the 'ril.serialnumber' property

    Items changed to what your device should show:

    $ adb shell getprop | grep serial
    [ril.serialnumber]: [RF2C202WYME]
    [ro.boot.serialno]: [c4f12fdd949f22f]
    [ro.serialno]: [c4f12fdd949f22f]
    

    Pre-jellybean 'ro.boot.serialno' didn't exist

提交回复
热议问题