Load Zygisk modules even if no magic mount is needed

Close #4767
This commit is contained in:
topjohnwu 2021-10-14 01:35:29 -07:00
parent c8ac6c07b0
commit b75ec09998

View File

@ -607,9 +607,7 @@ void magic_mount() {
inject_magisk_bins(system);
}
if (system->is_empty())
return;
if (!system->is_empty()) {
// Handle special read-only partitions
for (const char *part : { "/vendor", "/product", "/system_ext" }) {
struct stat st;
@ -623,6 +621,7 @@ void magic_mount() {
root->prepare();
root->mount();
}
// Mount on top of modules to enable zygisk
if (zygisk_enabled) {