From c0548705a20e93f8e5767e6a7c965b7883b8de3a Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Fri, 8 Dec 2023 20:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20DeviceInfoUtils.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nbee/echolink/utils/DeviceInfoUtils.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/src/main/java/com/nbee/echolink/utils/DeviceInfoUtils.java b/app/src/main/java/com/nbee/echolink/utils/DeviceInfoUtils.java index b3cac20..f117714 100644 --- a/app/src/main/java/com/nbee/echolink/utils/DeviceInfoUtils.java +++ b/app/src/main/java/com/nbee/echolink/utils/DeviceInfoUtils.java @@ -20,22 +20,6 @@ public class DeviceInfoUtils { public static int getDeviceHeight(Context context) { return context.getResources().getDisplayMetrics().heightPixels; } - - /** - * 获取设备的唯一标识, 需要 “android.permission.READ_Phone_STATE”权限 - * Android 10 无法获取此权限 - */ - public static String getIMEI(Context context) { - TelephonyManager tm = (TelephonyManager) context - .getSystemService(Context.TELEPHONY_SERVICE); - String deviceId = tm.getDeviceId(); - if (deviceId == null) { - return "UnKnown"; - } else { - return deviceId; - } - } - /** * 获取厂商名 **/