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
b75ec099
Commit
b75ec099
authored
Oct 14, 2021
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load Zygisk modules even if no magic mount is needed
Close #4767
parent
c8ac6c07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
module.cpp
native/jni/core/module.cpp
+12
-13
No files found.
native/jni/core/module.cpp
View file @
b75ec099
...
...
@@ -607,22 +607,21 @@ void magic_mount() {
inject_magisk_bins
(
system
);
}
if
(
system
->
is_empty
())
return
;
// Handle special read-only partitions
for
(
const
char
*
part
:
{
"/vendor"
,
"/product"
,
"/system_ext"
})
{
struct
stat
st
;
if
(
lstat
(
part
,
&
st
)
==
0
&&
S_ISDIR
(
st
.
st_mode
))
{
if
(
auto
old
=
system
->
extract
(
part
+
1
))
{
auto
new_node
=
new
root_node
(
old
);
root
->
insert
(
new_node
);
if
(
!
system
->
is_empty
())
{
// Handle special read-only partitions
for
(
const
char
*
part
:
{
"/vendor"
,
"/product"
,
"/system_ext"
})
{
struct
stat
st
;
if
(
lstat
(
part
,
&
st
)
==
0
&&
S_ISDIR
(
st
.
st_mode
))
{
if
(
auto
old
=
system
->
extract
(
part
+
1
))
{
auto
new_node
=
new
root_node
(
old
);
root
->
insert
(
new_node
);
}
}
}
}
root
->
prepare
();
root
->
mount
();
root
->
prepare
();
root
->
mount
();
}
// Mount on top of modules to enable zygisk
if
(
zygisk_enabled
)
{
...
...
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