platform_system_core/fs_mgr/libdm
David Anderson b2cc8cb2d7 libdm: Fallback to legacy ueventd logic if running on an older system.
When delivering single-stage, non-AB OTAs, the updater binary is built
on a newer OS than recovery is compiled with. libdm relies on newer ueventd
behavior which therefore breaks this model. As a workaround, we allow
libdm to fallback to the old ueventd logic if the following conditions
hold true: (1) we're in recovery, (2) the device is not an AB device,
and (3) the release is <= 10.

Since the old ueventd behavior can lead to races in libdm, this fallback
should stay as narrow as possible.

Bug: 156536673
Bug: 155202260
Test: manual test
Change-Id: I7f9da49e4ba8dfe165e0923d9918827d51d090cd
2020-05-29 18:13:48 +00:00
..
include/libdm Abolish DmTargetDefaultKey::IsLegacy 2020-04-07 07:33:05 -07:00
Android.bp Convert vts configs to Android.bp 2020-04-27 16:36:53 +00:00
AndroidTest.xml Make VTS run libdm_test 2019-03-22 15:11:49 -07:00
dm.cpp libdm: Fallback to legacy ueventd logic if running on an older system. 2020-05-29 18:13:48 +00:00
dm_linear_fuzzer.cpp Fix fuzzer name and sizeof(array) 2019-10-21 11:44:08 +00:00
dm_table.cpp libdm: Fix DmTable::num_sectors 2019-10-01 19:43:33 -07:00
dm_target.cpp Abolish DmTargetDefaultKey::IsLegacy 2020-04-07 07:33:05 -07:00
dm_test.cpp Abolish DmTargetDefaultKey::IsLegacy 2020-04-07 07:33:05 -07:00
loop_control.cpp Fix fds libdm_test 2019-10-01 19:43:33 -07:00
loop_control_test.cpp libdm: Fix race conditions in LoopControl::Attach. 2019-07-11 15:39:53 -07:00
test_util.cpp libdm: Add unit tests for dm-linear. 2018-06-25 12:56:14 -07:00
test_util.h Move TempDevice to test_util.h 2019-10-10 20:59:33 +01:00
utility.cpp libdm: Fix WaitForFile early-returning on failed accesses. 2020-03-03 18:59:10 -08:00
utility.h libdm: add an overload of DeleteDevice accepting a timeout_ms 2019-12-05 10:37:47 +00:00