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