Commit 895152ab by YKai

fix:小米手机10以下安卓系统获取不到设备id问题

parent d3d16055
...@@ -218,13 +218,12 @@ class ActionCountUtils { ...@@ -218,13 +218,12 @@ class ActionCountUtils {
val topTaskActivity = val topTaskActivity =
getInstance() getInstance()
.getTopTaskActivity() .getTopTaskActivity()
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) { deviceId = if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
//获取imei //获取imei
deviceId ==Utils.getIMEI(topTaskActivity) Utils.getIMEI(topTaskActivity)
} else { } else {
//android Q及以上取oaid //android Q及以上取oaid
deviceId = DeviceIDHelper.getInstance().deviceId
DeviceIDHelper.getInstance().deviceId
} }
baiduActionDataParams.deviceId(deviceId) baiduActionDataParams.deviceId(deviceId)
baiduActionDataParams.convertType(convertType) baiduActionDataParams.convertType(convertType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment