Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
895152ab
Commit
895152ab
authored
Sep 17, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:小米手机10以下安卓系统获取不到设备id问题
parent
d3d16055
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ActionCountUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
+3
-4
No files found.
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
View file @
895152ab
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment