diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 284826e..b275704 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -57,14 +57,14 @@ mount_apex() { [ -e /dev/block/loop1 ] && minorx=$($BB ls -l /dev/block/loop1 | $BB awk '{ print $6 }'); num=0; for apex in /system_root/system/apex/*; do - dest=/apex/$($BB basename $apex .apex); - case $dest in - *.current|*.release) dest=$(echo $dest | $BB rev | $BB cut -d. -f2- | $BB rev);; - esac; + dest=/apex/$($BB basename $apex | $BB sed -E -e 's;\.apex$|\.capex$;;' -e 's;\.current$|\.release$;;'); $BB mkdir -p $dest; case $apex in - *.apex) + *.apex|*.capex) + $BB unzip -qo $apex original_apex -d /apex; + [ -f /apex/original_apex ] && apex=/apex/original_apex; $BB unzip -qo $apex apex_payload.img -d /apex; + $BB mv -f /apex/original_apex $dest.apex 2>/dev/null; $BB mv -f /apex/apex_payload.img $dest.img; $BB mount -t ext4 -o ro,noatime $dest.img $dest 2>/dev/null; if [ $? != 0 ]; then diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index dcc55de..5dc0c20 100644 --- a/META-INF/com/google/android/updater-script +++ b/META-INF/com/google/android/updater-script @@ -3,4 +3,4 @@ # Dummy file; update-binary is a shell script (DO NOT CHANGE) # # -# AK_BASE_VERSION=20211018 +# AK_BASE_VERSION=20211118