2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-08-31 12:15:15 +00:00

Do not allow remove the module to be updated

This commit is contained in:
vvb2060
2021-05-26 23:19:00 +08:00
committed by John Wu
parent 9ac0f11d9a
commit 350144df29
3 changed files with 7 additions and 2 deletions

View File

@@ -765,6 +765,8 @@ install_module() {
if $BOOTMODE; then
# Update info for Magisk app
mktouch $NVBASE/modules/$MODID/update
rm -rf $NVBASE/modules/$MODID/remove 2>/dev/null
rm -rf $NVBASE/modules/$MODID/disable 2>/dev/null
cp -af $MODPATH/module.prop $NVBASE/modules/$MODID/module.prop
fi