From 7201ef820f42b035216e44116890fc84dd688fe5 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 31 Aug 2020 16:15:28 -0700 Subject: [PATCH] Create directories under /data/local/tests at boot Create directories under /data/local/tests at boot for atest to use to execute tests on the device. Bug: 138450837 Test: atest binderVendorDoubleLoadTest memunreachable_unit_test memunreachable_binder_test Change-Id: Ic8e5031ad8701a063be14b6db760feb78f3eb412 --- rootdir/init.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 44c8f27b1..faedd446f 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -657,6 +657,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