From b5208641067994b1e95d3329ed94af621dd264a6 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Sat, 9 Jun 2018 22:04:51 -0400 Subject: [PATCH] updater-binary: Revert "Install to opposite slot" logic * Currently, on both devices enforcing veirty, and devices not enforcing verity, we are unable to flash files to the system partition after a payload (a/b) style flash. Revert this logic until is/when we figure this out. * A/B users will need to flash the ROM, reboot, and install from thee recovery in the other slot. --- build/meta/com/google/android/update-binary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index 7befe87..e2383a8 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -40,9 +40,9 @@ if [ "$SYSTEMASROOT" == "true" ]; then CURRENTSLOT=`getprop ro.boot.slot_suffix` if [ ! -z "$CURRENTSLOT" ]; then if [ "$CURRENTSLOT" == "_a" ]; then - TARGETSYSTEM=/dev/block/bootdevice/by-name/system_b - else TARGETSYSTEM=/dev/block/bootdevice/by-name/system_a + else + TARGETSYSTEM=/dev/block/bootdevice/by-name/system_b fi else TARGETSYSTEM=/dev/block/bootdevice/by-name/system