Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
agenew_a16_sos
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b947eaa4
authored
Aug 19, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MEID获取不到 用IMEI1 代替
1 parent
3d6a465e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
app/build.gradle
app/src/main/java/com/toscl/location/hengfeng/util/PhoneUtils.java
app/build.gradle
View file @
b947eaa
...
@@ -14,8 +14,8 @@ android {
...
@@ -14,8 +14,8 @@ android {
applicationId
"com.toscl.location.hengfeng"
applicationId
"com.toscl.location.hengfeng"
minSdkVersion
23
minSdkVersion
23
targetSdkVersion
28
targetSdkVersion
28
versionCode
1
1
versionCode
1
2
versionName
"0.7.
5
"
versionName
"0.7.
6
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes
{
buildTypes
{
...
...
app/src/main/java/com/toscl/location/hengfeng/util/PhoneUtils.java
View file @
b947eaa
...
@@ -629,6 +629,17 @@ public class PhoneUtils {
...
@@ -629,6 +629,17 @@ public class PhoneUtils {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
if
(
TextUtils
.
isEmpty
(
meid
)){
try
{
Method
method
=
telephonyManager
.
getClass
().
getMethod
(
"getDeviceId"
,
int
.
class
);
if
(
TextUtils
.
isEmpty
(
meid
)){
meid
=
(
String
)
method
.
invoke
(
telephonyManager
,
0
);
}
Log
.
e
(
TAG
,
"meid end:"
+
meid
);
}
catch
(
Exception
e
){
}
}
return
meid
;
return
meid
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment