英文:
How to get the serial number of device in Android 10 programmatically?
问题
使用Build.getSerial()时抛出异常:
getSerial:用户10134不满足访问设备标识符的要求。
只有在Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q时才会发生这种情况。
有什么办法可以在Android 10中获取序列号吗?
英文:
When I am using Build.getSerial() it throws an exception
getSerial: The user 10134 does not meet the requirements to access device identifiers.
this happens only when Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q
Any help to get serial number in android 10?
专注分享java语言的经验与见解,让所有开发者获益!
评论