summaryrefslogtreecommitdiff
path: root/code_coverage/empty_policy
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-10-09 16:24:03 -0700
committerDavid Anderson <dvander@google.com>2019-10-16 16:09:38 -0700
commitdfe6d07a4bb9735dd97152e06ccd2da44d95de7d (patch)
treed5555e5b90ed34492873c2fb45f2f0eda9a36f19 /code_coverage/empty_policy
parentd11c6f7fd8ab1cd747d48b086a008f653b77ca3f (diff)
Integrate libsnapshot with the boot control HAL.
This patch translates UpdateState states into a MergeStatus from IBootControl 1.1, and asks the HAL to store it. Unfortunately this patch has to work around a few issues. The first issue is that Soong doesn't allow including only the headers from a HAL. The second issue is that entraining the headers requires linking to libraries that would otherwise not be needed in init. To address this, we now have three ways of linking to libsnapshot: 1. libsnapshot - Has access to gsid and HALs. 2. libsnapshot_nobinder - Has access to HALs, but not binder (for recovery). 3. libsnapshot_init - Does not use binder or HALs. The HAL code is #ifdef'd behind LIBSNAPSHOT_USE_HAL and we make use of forward declarations and dependency injection to minimize its spread. Bug: 139154945 Test: libsnapshot_test gtest Change-Id: I21ffd8a79a43d0589f2f71f346ac1b019584a183
Diffstat (limited to 'code_coverage/empty_policy')
0 files changed, 0 insertions, 0 deletions