From 188b64778c6949bfd389ea3a2c90944bbcf106e2 Mon Sep 17 00:00:00 2001 From: William Loh Date: Wed, 24 Apr 2024 00:06:01 +0000 Subject: [PATCH] Create app-metadata directory App metadata bundles, also known as Android Safety Labels (ASL), contains information about the app's privacy and security practices. This information is used to help users make more informed choices when, for example, granting access to permissions. ASL can currently only be preloaded on the system image or distributed by the installer and written to a file in the app's codePath. To support embedded ASL in APK we need to extract ASLs from APKs to a writeable location. For non-preloaded apps we can write to the app's codePath like the installer provided ASLs, however, we need to create a new writable directory for preloaded apps located on read only partitions. Bug: 336618214 Test: manual Change-Id: I651b2dab45c3132d8467c507dc4ee304001f73f5 --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index e3896b1b2..2a3e22e6c 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -870,6 +870,9 @@ on post-fs-data mkdir /data/app-lib 0771 system system encryption=Require mkdir /data/app 0771 system system encryption=Require + # Create directory for app metadata files + mkdir /data/app-metadata 0700 system system encryption=Require + # create directory for updated font files. mkdir /data/fonts/ 0771 root root encryption=Require mkdir /data/fonts/files 0771 system system