From 68564baf104a9bd134abe781dafacc1b6c76e498 Mon Sep 17 00:00:00 2001 From: Captain Trips <31455058+capntrips@users.noreply.github.com> Date: Thu, 4 May 2023 11:36:15 -0500 Subject: [PATCH] AK3: clear cow before logical partition replace or resize (#78) --- META-INF/com/google/android/updater-script | 2 +- tools/ak3-core.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index 7095161..7e8bb70 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=20230503 +# AK_BASE_VERSION=20230504 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index aae06ad..dbd235f 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -470,6 +470,8 @@ flash_generic() { else echo "Removing any existing $1_ak3..." >&2; $bin/lptools_static remove $1_ak3; + echo "Clearing any merged cow partitions..." >&2; + $bin/lptools_static clear-cow; echo "Attempting to create $1_ak3..." >&2; if $bin/lptools_static create $1_ak3 $imgsz; then echo "Replacing $1$slot with $1_ak3..." >&2;