From 18e4372cab29af46422066aeac1ed93dd4742c33 Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Tue, 17 Nov 2020 20:06:49 -0800 Subject: [PATCH] Set up /data/fonts directory for updatable system fonts - /data/fonts/files The updated font files are placed this directory. This files under this directory are readable by any apps. Only system_server can write font files to this directory. - /data/fonts/config The font configuration used by system_server is stored in this directory. Only system_server can read/write this directory. Bug: 173517579 Test: atest CtsGraphicsTestCases Change-Id: I3d0edd9e58b456be5f8342a4a7babd77e54e0339 --- rootdir/init.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index fbb48e816..67d91fcb3 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -699,6 +699,11 @@ on post-fs-data mkdir /data/app 0771 system system encryption=Require mkdir /data/property 0700 root root encryption=Require + # create directory for updated font files. + mkdir /data/fonts/ 0771 root root encryption=Require + mkdir /data/fonts/files 0771 system system + mkdir /data/fonts/config 0770 system system + # 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.