Backend: support Android 12 .capex (compressed apex) files
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
|
||||
#
|
||||
#
|
||||
# AK_BASE_VERSION=20211018
|
||||
# AK_BASE_VERSION=20211118
|
||||
Reference in new issue
Block a user