From 1f04060be06545c86c0d377b8dd81e6f4cbb1c9f Mon Sep 17 00:00:00 2001 From: Adam Bookatz Date: Thu, 14 Jan 2021 13:50:29 -0800 Subject: [PATCH] UserSystemPackageInstaller auto-treats static overlays The UserSystemPackageInstaller installs packages on new users based on their configuration in an allowlist. An exception was made for auto-generated RROs, which were instead installed based on their overlay target package's configuration (thus avoiding the need for manually allowlisting each such overlay). This is now expanded to all static overlays (which should include auto-generated RROs, according to the bug). That is: Static overlays no longer need to be mentioned in the list, but will instead be installed based on the listing for their overlay target package. Test: atest UserSystemPackageInstallerTest Fixes: 172956245 Change-Id: I6b974bba20ee059a8f744092db7c3441580d327f --- data/etc/preinstalled-packages-platform.xml | 5 +- .../server/pm/UserSystemPackageInstaller.java | 47 ++++++------------- .../pm/UserSystemPackageInstallerTest.java | 46 +++++++++--------- 3 files changed, 38 insertions(+), 60 deletions(-) diff --git a/data/etc/preinstalled-packages-platform.xml b/data/etc/preinstalled-packages-platform.xml index 625558406b9c0..ff8d96dd23f27 100644 --- a/data/etc/preinstalled-packages-platform.xml +++ b/data/etc/preinstalled-packages-platform.xml @@ -17,9 +17,8 @@