android_system_core/rootdir
David Anderson 456e50193b Implement basic libsnapshot functionality.
This CL implements some of the libsnapshot internals necessary to work
with update_engine. In particular it implements snapshot and update
state, as well as creating and mapping snapshot devices. It does not
implement anything related to merging, nor does it implement the full
update_engine flow.

Update state is stored in /metadata/ota/state. To synchronize callers of
libsnapshot, we always flock() this file at the top of public functions
in SnapshotManager. Internal functions are only called while the lock is
held, and a "LockedFile" guard object is always passed through to
indicate proof-of-lock.

Low-level functions, such as snapshot management, have been moved to
private methods. Higher-level methods designed for update_engine will
ultimately call into these.

This CL also adds some functional tests for SnapshotManager. Test state
is stored in /metadata/ota/test to avoid conflicts with the rest of the
system.

Bug: 136678799
Test: libsnapshot_test gtest
Change-Id: I78c769ed33b307d5214ee386bb13648e35db6cc6
2019-08-02 13:30:08 -07:00
..
avb Adding GSI public keys 2019-03-30 03:07:31 +00:00
etc ld.config for com.android.neuralnetworks APEX. 2019-07-22 11:28:42 +01:00
Android.mk Add libraries txt file to build target 2019-07-24 19:19:01 +09:00
OWNERS
adb_debug.prop Adding adb_debug.prop into debug ramdisk 2019-04-20 06:08:51 +00:00
asan.options
asan_extract.rc
asan_extract.sh
fsverity_init.sh Do not restrict .fs-verity keyring in debuggable build 2019-04-04 16:48:57 -07:00
init-debug.rc
init.environ.rc.in Add an env variable for the tzdata module root 2019-03-12 16:52:36 +00:00
init.rc Implement basic libsnapshot functionality. 2019-08-02 13:30:08 -07:00
init.usb.configfs.rc
init.usb.rc
init.zygote32.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote32_64.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote64.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote64_32.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
ld_config_backward_compatibility_check.py
ueventd.rc
update_and_install_ld_config.mk Merge "ld.config for com.android.neuralnetworks APEX." 2019-07-24 09:12:18 +00:00