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
c8f65fc9
Commit
c8f65fc9
authored
Jun 26, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix selinux error while installing Magisk on some devices
parent
7684602e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
InstallMagisk.java
src/full/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java
+4
-4
No files found.
src/full/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java
View file @
c8f65fc9
...
...
@@ -168,12 +168,12 @@ public class InstallMagisk extends ParallelTask<Void, Void, Boolean> {
if
(
isSigned
)
{
console
.
add
(
"- Signing boot image with test keys"
);
File
signed
=
new
File
(
installDir
,
"signed.img"
);
try
(
InputStream
in
=
new
BufferedInputStream
(
new
FileInputStream
(
patched
)
);
try
(
InputStream
in
=
new
SuFileInputStream
(
patched
);
OutputStream
out
=
new
BufferedOutputStream
(
new
FileOutputStream
(
signed
))
)
{
SignBoot
.
doSignature
(
"/boot"
,
in
,
out
,
null
,
null
);
}
signed
.
renameTo
(
patched
);
Shell
.
Sync
.
su
(
"mv -f "
+
signed
+
" "
+
patched
);
}
return
patched
;
}
...
...
@@ -194,7 +194,7 @@ public class InstallMagisk extends ParallelTask<Void, Void, Boolean> {
out
=
new
BufferedOutputStream
(
new
FileOutputStream
(
dest
));
break
;
}
try
(
InputStream
in
=
new
FileInputStream
(
patched
))
{
try
(
InputStream
in
=
new
Su
FileInputStream
(
patched
))
{
ShellUtils
.
pump
(
in
,
out
);
out
.
close
();
}
...
...
@@ -215,7 +215,7 @@ public class InstallMagisk extends ParallelTask<Void, Void, Boolean> {
mm
.
keepVerity
?
""
:
"patch_dtbo_image"
);
break
;
}
patched
.
delete
(
);
Shell
.
Sync
.
su
(
"rm -f "
+
patched
);
}
@Override
...
...
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