platform_system_core/fastboot
David Pursell 04396f62da fastboot: fix set_active for legacy A/B.
Legacy A/B implementations use _a and _b slot names, but currently the
set_active command is unconditionally stripping the _ prefix. This CL
adds some code to add the _ back in if connected to a legacy A/B
implementation.

This isn't a complete fix (there are other places in the code that also
unconditionally strip the prefix) but is sufficient for Android Things
use case, and we want to keep this change as small and safe as possible
to avoid breaking anything else.

Bug: http://b/32996227
Test: `fastboot set_active _a` and `fastboot set_active a` works on
      both AndroidThings Edison board and Marlin.
Test: AndroidThings Edison flashall script now completes successfully.
Change-Id: I1a07e48b9e2726f386e9ece5267a9f1d8edefe22
2016-12-15 16:27:48 -08:00
..
.clang-format fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
Android.mk Merge "Rely on the platform -std default." 2016-10-14 02:28:38 +00:00
bootimg_utils.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
bootimg_utils.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
engine.cpp Remove unnecessary ARRAY_SIZE macros. 2016-06-28 14:48:45 -07:00
fastboot.cpp fastboot: fix set_active for legacy A/B. 2016-12-15 16:27:48 -08:00
fastboot.h Add android::base::GetExecutablePath, switch adb and fastboot over. 2016-09-01 09:24:24 -07:00
fastboot_protocol.txt fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
fs.cpp Update the header path for ext4_utils. 2016-10-09 10:23:36 -07:00
fs.h Add --wipe-and-use-fbe option to fastboot for FBE userdata marker. 2015-12-03 18:02:25 +00:00
protocol.cpp Use more std::string in fastboot. 2016-04-29 08:30:13 -07:00
socket.cpp Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
socket.h Fix google-explicit-constructor warnings in system/core. 2016-07-26 11:26:01 -07:00
socket_mock.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_mock.h fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_test.cpp Fix clang-tidy performance warnings in syste/core. 2016-08-01 11:55:42 -07:00
tcp.cpp Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
tcp.h fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
tcp_test.cpp fastboot: fix TCP protocol version check. 2016-02-17 10:00:09 -08:00
transport.h Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
udp.cpp Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
udp.h fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
udp_test.cpp fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
usb.h fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_linux.cpp Switch fastboot/init/libprocessgroup to std::this_thread::sleep_for. 2016-11-14 17:08:47 -08:00
usb_osx.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_windows.cpp Switch fastboot/init/libprocessgroup to std::this_thread::sleep_for. 2016-11-14 17:08:47 -08:00
usbtest.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
util.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00