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
a8478ace
Commit
a8478ace
authored
Aug 31, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use macros
parent
72cf5f3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bootstages.c
native/jni/core/bootstages.c
+1
-1
magiskinit.c
native/jni/core/magiskinit.c
+1
-1
No files found.
native/jni/core/bootstages.c
View file @
a8478ace
...
...
@@ -567,7 +567,7 @@ void startup() {
xmount
(
NULL
,
"/"
,
NULL
,
MS_REMOUNT
,
NULL
);
// Remove some traits of Magisk
unlink
(
"/init.magisk.rc"
);
unlink
(
MAGISKRC
);
// GSIs will have to override /sbin/adbd with /system/bin/adbd
if
(
access
(
"/sbin/adbd"
,
F_OK
)
==
0
&&
access
(
"/system/bin/adbd"
,
F_OK
)
==
0
)
{
...
...
native/jni/core/magiskinit.c
View file @
a8478ace
...
...
@@ -452,7 +452,7 @@ int main(int argc, char *argv[]) {
patch_sepolicy
();
// Dump binaries
dump_magiskrc
(
"/init.magisk.rc"
,
0750
);
dump_magiskrc
(
MAGISKRC
,
0750
);
dump_magisk
(
"/sbin/magisk"
,
0755
);
patch_socket_name
(
"/sbin/magisk"
);
rename
(
"/init.bak"
,
"/sbin/magiskinit"
);
...
...
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