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.
This commit is contained in:
Nolen Johnson 2018-06-09 22:04:51 -04:00
parent 3006026072
commit b520864106

View File

@ -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