Android get Serial Number

后端 未结 6 2090
予麋鹿
予麋鹿 2020-12-11 17:26

I am trying to get the device serial number programmatically. I have used the following line:

Build.SERIAL

Which returns something like :

6条回答
  •  感情败类
    2020-12-11 17:44

    this is not your answer?:

    TelephonyManager tManager = (TelephonyManager)myActivity.getSystemService(Context.TELEPHONY_SERVICE);
    String uid = tManager.getDeviceId();
    

    I found it in here

提交回复
热议问题