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
228351fc
Commit
228351fc
authored
Feb 10, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent bootloop on non system-as-root devices
Close #1058
parent
8a5b6f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
init.cpp
native/jni/core/init.cpp
+1
-1
No files found.
native/jni/core/init.cpp
View file @
228351fc
...
@@ -503,7 +503,7 @@ int main(int argc, char *argv[]) {
...
@@ -503,7 +503,7 @@ int main(int argc, char *argv[]) {
excl_list
=
nullptr
;
excl_list
=
nullptr
;
}
else
{
}
else
{
// Revert original init binary
// Revert original init binary
link
(
"/.backup/init"
,
"/init"
);
rename
(
"/.backup/init"
,
"/init"
);
rm_rf
(
"/.backup"
);
rm_rf
(
"/.backup"
);
// Do not go further if device is booting into recovery
// Do not go further if device is booting into recovery
...
...
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