Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
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
Administrator
Magisk
Commits
0a0ad9a1
Commit
0a0ad9a1
authored
Mar 31, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump to 4.3.1
parent
234bead5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
build.gradle
app/build.gradle
+2
-2
MagiskManager.java
app/src/main/java/com/topjohnwu/magisk/MagiskManager.java
+8
-1
No files found.
app/build.gradle
View file @
0a0ad9a1
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
applicationId
"com.topjohnwu.magisk"
applicationId
"com.topjohnwu.magisk"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
25
targetSdkVersion
25
versionCode
2
7
versionCode
2
8
versionName
"4.3.
0
"
versionName
"4.3.
1
"
jackOptions
{
jackOptions
{
enabled
true
enabled
true
jackInProcess
true
jackInProcess
true
...
...
app/src/main/java/com/topjohnwu/magisk/MagiskManager.java
View file @
0a0ad9a1
...
@@ -64,6 +64,7 @@ public class MagiskManager extends Application {
...
@@ -64,6 +64,7 @@ public class MagiskManager extends Application {
public
boolean
magiskHide
;
public
boolean
magiskHide
;
public
boolean
isDarkTheme
;
public
boolean
isDarkTheme
;
public
boolean
updateNotification
;
public
boolean
updateNotification
;
public
boolean
busybox
;
public
int
suRequestTimeout
;
public
int
suRequestTimeout
;
public
int
suLogTimeout
=
14
;
public
int
suLogTimeout
=
14
;
public
int
suAccessState
;
public
int
suAccessState
;
...
@@ -104,7 +105,7 @@ public class MagiskManager extends Application {
...
@@ -104,7 +105,7 @@ public class MagiskManager extends Application {
.
putBoolean
(
"dark_theme"
,
isDarkTheme
)
.
putBoolean
(
"dark_theme"
,
isDarkTheme
)
.
putBoolean
(
"magiskhide"
,
magiskHide
)
.
putBoolean
(
"magiskhide"
,
magiskHide
)
.
putBoolean
(
"notification"
,
updateNotification
)
.
putBoolean
(
"notification"
,
updateNotification
)
.
putBoolean
(
"busybox"
,
Utils
.
commandExists
(
"busybox"
)
)
.
putBoolean
(
"busybox"
,
busybox
)
.
putBoolean
(
"hosts"
,
new
File
(
"/magisk/.core/hosts"
).
exists
())
.
putBoolean
(
"hosts"
,
new
File
(
"/magisk/.core/hosts"
).
exists
())
.
putBoolean
(
"disable"
,
Utils
.
itemExist
(
MAGISK_DISABLE_FILE
))
.
putBoolean
(
"disable"
,
Utils
.
itemExist
(
MAGISK_DISABLE_FILE
))
.
putString
(
"su_request_timeout"
,
String
.
valueOf
(
suRequestTimeout
))
.
putString
(
"su_request_timeout"
,
String
.
valueOf
(
suRequestTimeout
))
...
@@ -150,6 +151,12 @@ public class MagiskManager extends Application {
...
@@ -150,6 +151,12 @@ public class MagiskManager extends Application {
magiskVersion
=
Double
.
POSITIVE_INFINITY
;
magiskVersion
=
Double
.
POSITIVE_INFINITY
;
}
}
}
}
ret
=
Shell
.
sh
(
"getprop persist.magisk.busybox"
);
try
{
busybox
=
Utils
.
isValidShellResponse
(
ret
)
&&
Integer
.
parseInt
(
ret
.
get
(
0
))
!=
0
;
}
catch
(
NumberFormatException
e
)
{
busybox
=
false
;
}
ret
=
Shell
.
sh
(
"getprop ro.magisk.disable"
);
ret
=
Shell
.
sh
(
"getprop ro.magisk.disable"
);
try
{
try
{
disabled
=
Utils
.
isValidShellResponse
(
ret
)
&&
Integer
.
parseInt
(
ret
.
get
(
0
))
!=
0
;
disabled
=
Utils
.
isValidShellResponse
(
ret
)
&&
Integer
.
parseInt
(
ret
.
get
(
0
))
!=
0
;
...
...
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