Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 unity3d 中获取 android 设备 SN 码?我尝试
SystemInfo.deviceUniqueIdentifier.ToString()
我看到更多信息,但找不到我的 SN 设备代码。
试试这个
TelephonyManager tManager = (TelephonyManager)myActivity.getSystemService(Context.TELEPHONY_SERVICE); 字符串 uid = tManager.getDeviceId();
在清单文件中提及 android:name="android.permission.READ_PHONE_STATE"