IT门户, 中国互联网人工智能物联网行业资讯平台--公众IT
新闻来源:互联网资料整理       发布时间:2023/4/6 8:35:30       共计:4673 浏览

什么办法可以改变安卓手机机器码?

正常情况下,想得到设备的唯一序号, TelephonyManager.getDeviceId() 就足够了。r   但会暴露DeviceID,最好把这些id加密。加密后的序号仍然可以唯一的识别该设备,例如,使用 String.hashCode() ,结合UUID:r   final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);r r   final String tmDevice, tmSerial, tmPhone, androidId;r r   tmDevice = "" + tm.getDeviceId();r r   tmSerial = "" + tm.getSimSerialNumber();r r   androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);r r   UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode()

版权说明:
本网站凡注明“公众IT 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
您可以扫描右侧微信二维码联系我们。
网站首页 关于我们 联系我们 合作联系 会员说明 新闻投稿 隐私协议 网站地图