Merge "Create directories under /data/local/tests at boot" am: 480335dfd6 am: bc2fbe9ce4 am: a3ec0fd270

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: Ic4ca2e173cd5846b68c074e74c9e8c3fb4f6dc20
This commit is contained in:
Treehugger Robot 2020-09-03 04:07:36 +00:00 committed by Automerger Merge Worker
commit 8d6ca9d515

View file

@ -661,6 +661,15 @@ on post-fs-data
mkdir /data/vendor/tombstones 0771 root root
mkdir /data/vendor/tombstones/wifi 0771 wifi wifi
# Create directories to push tests to for each linker namespace.
# Create the subdirectories in case the first test is run as root
# so it doesn't end up owned by root.
mkdir /data/local/tests 0700 shell shell
mkdir /data/local/tests/product 0700 shell shell
mkdir /data/local/tests/system 0700 shell shell
mkdir /data/local/tests/unrestricted 0700 shell shell
mkdir /data/local/tests/vendor 0700 shell shell
# create dalvik-cache, so as to enforce our permissions
mkdir /data/dalvik-cache 0771 root root encryption=Require
# create the A/B OTA directory, so as to enforce our permissions