Commit b75ec099 authored by topjohnwu's avatar topjohnwu

Load Zygisk modules even if no magic mount is needed

Close #4767
parent c8ac6c07
...@@ -607,9 +607,7 @@ void magic_mount() { ...@@ -607,9 +607,7 @@ void magic_mount() {
inject_magisk_bins(system); inject_magisk_bins(system);
} }
if (system->is_empty()) if (!system->is_empty()) {
return;
// Handle special read-only partitions // Handle special read-only partitions
for (const char *part : { "/vendor", "/product", "/system_ext" }) { for (const char *part : { "/vendor", "/product", "/system_ext" }) {
struct stat st; struct stat st;
...@@ -623,6 +621,7 @@ void magic_mount() { ...@@ -623,6 +621,7 @@ void magic_mount() {
root->prepare(); root->prepare();
root->mount(); root->mount();
}
// Mount on top of modules to enable zygisk // Mount on top of modules to enable zygisk
if (zygisk_enabled) { if (zygisk_enabled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment