diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index 1ff15ed..ffb6603 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=20230801 +# AK_BASE_VERSION=20230810 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 3253e36..3b47744 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -848,17 +848,6 @@ setup_ak() { touch vendor_v3_setup; fi; - # allow multi-partition ramdisk modifying configurations (using reset_ak) - if [ "$block" ] && [ ! -d "$ramdisk" -a ! -d "$patch" ]; then - blockfiles=$home/$(basename $block)-files; - if [ "$(ls $blockfiles 2>/dev/null)" ]; then - cp -af $blockfiles/* $home; - else - mkdir $blockfiles; - fi; - touch $blockfiles/current; - fi; - # target block partition detection enabled by block= or auto (from anykernel.sh) case $block in /dev/*) @@ -915,6 +904,22 @@ setup_ak() { if [ ! "$no_block_display" ]; then ui_print "$block"; fi; + + # allow multi-partition ramdisk modifying configurations (using reset_ak) + name=$(basename $block | sed -e 's/_a$//' -e 's/_b$//'); + if [ "$block" ] && [ ! -d "$ramdisk" -a ! -d "$patch" ]; then + blockfiles=$home/$name-files; + if [ "$(ls $blockfiles 2>/dev/null)" ]; then + cp -af $blockfiles/* $home; + else + mkdir $blockfiles; + fi; + touch $blockfiles/current; + fi; + + # run attributes function for current block if it exists + type attributes >/dev/null 2>&1 && attributes; # backwards compatibility + type ${name}_attributes >/dev/null 2>&1 && ${name}_attributes; } ###