获取Android设备id
//获取设备id相关 @SuppressLint("MissingPermission") public static String getSN() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { return Build.getSerial(); } else { return Build.SERIAL; } }
//获取设备id相关 @SuppressLint("MissingPermission") public static String getSN() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { return Build.getSerial(); } else { return Build.SERIAL; } }