android获取设备唯一标识UID

论坛 期权论坛 脚本     
已经匿名di用户   2022-5-29 19:12   2321   0

protected static String getUid() {

String id = android.provider.Settings.System.getString(context

.getContentResolver(),

android.provider.Settings.System.ANDROID_ID);

if (id == null && telephonyManager != null) {

id = telephonyManager.getDeviceId();

}

if (id == null) {

id = "0000000000000000";

}

return id;

}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP