Properly handle factory resets

Close #3345
This commit is contained in:
topjohnwu
2020-11-04 04:49:43 -08:00
parent 1e0f96d0fd
commit e21a78164e
2 changed files with 60 additions and 57 deletions

View File

@@ -636,6 +636,7 @@ static void prepare_modules() {
// Setup module mount (workaround nosuid selabel issue)
auto src = MAGISKTMP + "/" MIRRDIR MODULEROOT;
auto dest = MAGISKTMP + "/" MODULEMNT;
xmkdir(dest.data(), 0755);
bind_mount(src.data(), dest.data());
restorecon();