Blankj / Blankj/AndroidUtilCode

java. lang. SecurityException: getDeviceId / java. lang. SecurityException: getImeiForSlot

Open
#1,703 0 comments 0 reactions 1 assignee Claimed by @Blankj View on GitHub
bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

## 描述 Bug

DeviceUtils.java 和 PhoneUtils.java 出现大量授权相关的错误,

项目配置:
```
ext {
minSdkVersion = 19
buildToolsVersion = "28.0.3"
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = 28
kotlin_version = '1.3.72'
}
```

- AndroidUtilCode 的版本: com.blankj:utilcodex:1.31.0
- 出现 Bug 的设备型号:vivo / xiaomi / oppo / 还有很多其他类型的设备
- 设备的 Android 版本:android9 / level28 , android10 / level29

## 相关代码

```
PhoneUtils.getDeviceId() ;

PhoneUtils.getIMEI();

DeviceUtils.getMacAddress();

```

## 异常堆栈

```
java. lang. SecurityException: getDeviceId
```

## 截图

image

image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.