From 8a1cdb8e9564b191f5cb89340ab637ab218315a5 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Mon, 3 Apr 2023 10:58:18 +0000 Subject: [PATCH] Add initial stopped state packages for AOSP products. AOSP starts with all apps exempt from the stopped state; apps without a launcher entry aren't stopped by default, and all AOSP apps that do have a launcher entry are contained in this sysconfig. Bug: 269129704 Test: Manually inspect Ignore-AOSP-First: Merge conflict from AOSP to internal master (and this needs to go to UDC, als) Change-Id: I752f986a210621510f694b3f62bb5c6151db55d6 --- target/product/aosp_product.mk | 1 + target/product/sysconfig/Android.bp | 6 +++ .../initial-package-stopped-states-aosp.xml | 51 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 target/product/sysconfig/initial-package-stopped-states-aosp.xml diff --git a/target/product/aosp_product.mk b/target/product/aosp_product.mk index e396ad11ff..a4c3a91145 100644 --- a/target/product/aosp_product.mk +++ b/target/product/aosp_product.mk @@ -29,6 +29,7 @@ PRODUCT_PRODUCT_PROPERTIES += \ # More AOSP packages PRODUCT_PACKAGES += \ + initial-package-stopped-states-aosp.xml \ messaging \ PhotoTable \ preinstalled-packages-platform-aosp-product.xml \ diff --git a/target/product/sysconfig/Android.bp b/target/product/sysconfig/Android.bp index 27ac8cf2b4..95042a707e 100644 --- a/target/product/sysconfig/Android.bp +++ b/target/product/sysconfig/Android.bp @@ -55,3 +55,9 @@ prebuilt_etc { src: "preinstalled-packages-platform-telephony-product.xml", } +prebuilt_etc { + name: "initial-package-stopped-states-aosp.xml", + product_specific: true, + sub_dir: "sysconfig", + src: "initial-package-stopped-states-aosp.xml", +} diff --git a/target/product/sysconfig/initial-package-stopped-states-aosp.xml b/target/product/sysconfig/initial-package-stopped-states-aosp.xml new file mode 100644 index 0000000000..f98493f093 --- /dev/null +++ b/target/product/sysconfig/initial-package-stopped-states-aosp.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + +