Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MobileManager
Project
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
Wang Xu
MobileManager
Commits
1afa2d8d
Commit
1afa2d8d
authored
Apr 15, 2020
by
Baoxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 输错几次密码后(到锁定前),输对一次密码进行系统切换,再次输错密码时,输错次数未被重置
parent
8eceacee
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
Launcher.java
Launcher3/src/com/android/launcher3/Launcher.java
+1
-0
gradle.properties
gradle.properties
+1
-1
ImeiUtil.kt
...n/src/main/java/com/secspace/lib/common/utils/ImeiUtil.kt
+2
-2
Utils.kt
...mmon/src/main/java/com/secspace/lib/common/utils/Utils.kt
+1
-0
my_admin.xml
lib_common/src/main/res/xml/my_admin.xml
+3
-8
No files found.
Launcher3/src/com/android/launcher3/Launcher.java
View file @
1afa2d8d
...
...
@@ -3015,6 +3015,7 @@ public class Launcher extends BaseActivity
InputUtil
.
closeSoftInput
(
getApplicationContext
(),
view
);
if
(
TextUtils
.
equals
(((
EditText
)
view
).
getText
().
toString
(),
Prefs
.
getLoginPwd
(
mAppContext
)))
{
IntentUtil
.
startExitService
(
mAppContext
);
ErrorTimeHelper
.
getInstance
(
mAppContext
).
resetLockTimeAndCount
();
}
else
{
DialogUIUtils
.
showToastCenter
(
"密码错误"
);
ErrorTimeHelper
.
getInstance
(
mAppContext
).
addErrorCount
();
...
...
gradle.properties
View file @
1afa2d8d
...
...
@@ -26,7 +26,7 @@ MAVEN_URL=http://192.168.0.170:13000/nexus/content/repositories/releases/
MAVEN_URL_SNAPSHOT
=
http://192.168.0.170:13000/nexus/content/repositories/releases/
#32位有符号数2147483647(10)
versionIntCode
=
2020041
3
01
versionIntCode
=
2020041
5
01
versionNameMajor
=
1
versionNameMinor
=
0
...
...
lib_common/src/main/java/com/secspace/lib/common/utils/ImeiUtil.kt
View file @
1afa2d8d
...
...
@@ -44,9 +44,9 @@ object ImeiUtil {
tm
.
deviceId
}
catch
(
e
:
Exception
)
{
Log
.
e
(
TAG
,
"No imei was obtained. error is ${e.message}"
)
"unKnown"
NULL
}
if
(
imei
!=
"unKnown"
)
{
if
(
imei
!=
NULL
)
{
if
(
file
.
createNewFile
())
{
val
fileWriter
=
FileWriter
(
file
,
false
)
fileWriter
.
use
{
...
...
lib_common/src/main/java/com/secspace/lib/common/utils/Utils.kt
View file @
1afa2d8d
...
...
@@ -18,6 +18,7 @@ import java.io.FileWriter
import
java.text.SimpleDateFormat
import
java.util.*
const
val
NULL
=
"unknown"
fun
String
.
decrypt
():
String
=
DesUtil
.
decrypt
(
this
)
...
...
lib_common/src/main/res/xml/my_admin.xml
View file @
1afa2d8d
<device-admin
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<uses-policies>
<limit-password
/>
<watch-login
/>
<reset-password
/>
<force-lock
/>
<wipe-data
/>
<expire-password
/>
<encrypted-storage
/>
<disable-camera
/>
<encrypted-storage
/>
<disable-camera
/>
</uses-policies>
</device-admin>
\ No newline at end of file
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