Skip to content

Commit

Permalink
Backend: add logical partition block mapper rw support
Browse files Browse the repository at this point in the history
Thanks LuK1337 & erfanoabdi @ Lineage
  • Loading branch information
osm0sis committed May 12, 2020
1 parent b3767d1 commit 53ce3e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion META-INF/com/google/android/update-binary
Expand Up @@ -308,7 +308,7 @@ EOF
}
do_modules() {
test "$(file_getprop anykernel.sh do.modules)" == 1 || return 1;
local modcon moddir modtarget module umask;
local block modcon moddir modtarget module slot umask;
if [ "$(file_getprop anykernel.sh do.systemless)" == 1 ]; then
cd $AKHOME/modules;
ui_print " " "Creating kernel helper Magisk module...";
Expand All @@ -331,6 +331,13 @@ do_modules() {
else
cd $AKHOME/modules;
ui_print " " "Pushing modules...";
if [ -d /dev/block/mapper ]; then
for block in system vendor; do
for slot in "" _a _b; do
$BB blockdev --setrw /dev/block/mapper/$block$slot 2>/dev/null;
done;
done;
fi;
if [ ! -d /postinstall/tmp ]; then
$BB mount -o rw,remount -t auto /system;
$BB mount -o rw,remount -t auto /vendor 2>/dev/null;
Expand Down

0 comments on commit 53ce3e4

Please sign in to comment.