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
72199472
Commit
72199472
authored
Apr 09, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update libsu
Close #1314
parent
b72004e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
build.gradle
app/build.gradle
+1
-1
Config.java
app/src/main/java/com/topjohnwu/magisk/Config.java
+1
-1
MagiskInstaller.java
...main/java/com/topjohnwu/magisk/tasks/MagiskInstaller.java
+5
-5
No files found.
app/build.gradle
View file @
72199472
...
...
@@ -44,7 +44,7 @@ dependencies {
implementation
'androidx.work:work-runtime:2.0.0'
implementation
'androidx.transition:transition:1.1.0-alpha02'
def
libsuVersion
=
'2.
3.3
'
def
libsuVersion
=
'2.
4.0
'
implementation
"com.github.topjohnwu.libsu:core:${libsuVersion}"
implementation
"com.github.topjohnwu.libsu:io:${libsuVersion}"
...
...
app/src/main/java/com/topjohnwu/magisk/Config.java
View file @
72199472
...
...
@@ -119,7 +119,7 @@ public class Config {
public
static
void
initialize
()
{
SharedPreferences
pref
=
App
.
self
.
prefs
;
SharedPreferences
.
Editor
editor
=
pref
.
edit
();
SuFile
config
=
new
SuFile
(
"/data/adb/"
+
Const
.
MANAGER_CONFIGS
);
File
config
=
SuFile
.
open
(
"/data/adb"
,
Const
.
MANAGER_CONFIGS
);
if
(
config
.
exists
())
{
try
{
SuFileInputStream
is
=
new
SuFileInputStream
(
config
);
...
...
app/src/main/java/com/topjohnwu/magisk/tasks/MagiskInstaller.java
View file @
72199472
...
...
@@ -164,9 +164,9 @@ public abstract class MagiskInstaller {
return
false
;
}
SuFile
init64
=
new
SuFile
(
installDir
,
"magiskinit64"
);
File
init64
=
SuFile
.
open
(
installDir
,
"magiskinit64"
);
if
(
Build
.
VERSION
.
SDK_INT
>=
21
&&
Build
.
SUPPORTED_64_BIT_ABIS
.
length
!=
0
)
{
init64
.
renameTo
(
new
SuFile
(
installDir
,
"magiskinit"
));
init64
.
renameTo
(
SuFile
.
open
(
installDir
,
"magiskinit"
));
}
else
{
init64
.
delete
();
}
...
...
@@ -214,8 +214,8 @@ public abstract class MagiskInstaller {
ShellUtils
.
pump
(
tarIn
,
tarOut
);
}
}
SuFile
boot
=
new
SuFile
(
installDir
,
"boot.img"
);
SuFile
recovery
=
new
SuFile
(
installDir
,
"recovery.img"
);
File
boot
=
SuFile
.
open
(
installDir
,
"boot.img"
);
File
recovery
=
SuFile
.
open
(
installDir
,
"recovery.img"
);
if
(
vbmeta
&&
recovery
.
exists
()
&&
boot
.
exists
())
{
// Install Magisk to recovery
srcBoot
=
recovery
.
getPath
();
...
...
@@ -320,7 +320,7 @@ public abstract class MagiskInstaller {
}
protected
boolean
storeBoot
()
{
SuFile
patched
=
new
SuFile
(
installDir
,
"new-boot.img"
);
File
patched
=
SuFile
.
open
(
installDir
,
"new-boot.img"
);
try
{
OutputStream
os
;
if
(
isTar
)
{
...
...
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