Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3001ead9 authored by Cynthia Wasonga's avatar Cynthia Wasonga
Browse files

Prevent pre-installation of aosp system apps on clone profile

Apps and their corresponding config files linked here: go/clone-configs-and-mks

Bug: 238970256
Test: Confirmed that the apps don't get pre-installed on the clone profile

Change-Id: I72beb9fd2ea5bcd5f1bf382a44a14812ef92c07d
parent 572b5b3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
    LiveWallpapersPicker \
    PartnerBookmarksProvider \
    preinstalled-packages-platform-generic-system.xml \
    Stk \
    Tag \

+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ PRODUCT_PACKAGES += \
    MusicFX \
    NfcNci \
    PacProcessor \
    preinstalled-packages-platform-handheld-system.xml \
    PrintRecommendationService \
    PrintSpooler \
    ProxyHandler \
+20 −0
Original line number Diff line number Diff line
@@ -29,9 +29,29 @@ prebuilt_etc {
    src: "preinstalled-packages-platform-full-base.xml",
}

prebuilt_etc {
    name: "preinstalled-packages-platform-generic-system.xml",
    sub_dir: "sysconfig",
    src: "preinstalled-packages-platform-generic-system.xml",
}

prebuilt_etc {
    name: "preinstalled-packages-platform-handheld-product.xml",
    product_specific: true,
    sub_dir: "sysconfig",
    src: "preinstalled-packages-platform-handheld-product.xml",
}

prebuilt_etc {
    name: "preinstalled-packages-platform-handheld-system.xml",
    sub_dir: "sysconfig",
    src: "preinstalled-packages-platform-handheld-system.xml",
}

prebuilt_etc {
    name: "preinstalled-packages-platform-telephony-product.xml",
    product_specific: true,
    sub_dir: "sysconfig",
    src: "preinstalled-packages-platform-telephony-product.xml",
}
+8 −0
Original line number Diff line number Diff line
@@ -20,4 +20,12 @@
    <install-in-user-type package="com.android.wallpaperpicker">
        <install-in user-type="FULL" />
    </install-in-user-type>

    <!-- System packages that should not be pre-installed on the CLONE profile. -->
    <!-- Messages -->
    <install-in-user-type package="com.android.messaging">
        <install-in user-type="FULL" />
        <install-in user-type="PROFILE" />
        <do-not-install-in user-type="android.os.usertype.profile.CLONE" />
    </install-in-user-type>
</config>
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<!-- System packages to preinstall on all devices with generic_system, per user type.
     Documentation at frameworks/base/data/etc/preinstalled-packages-platform.xml
-->
<config>
    <!--  Stk (SIM ToolKit)
    TODO(b/258055479): Check if this should be preinstalled on SYSTEM user -->
    <install-in-user-type package="com.android.stk">
        <install-in user-type="SYSTEM" />
        <install-in user-type="FULL" />
        <install-in user-type="PROFILE" />
        <do-not-install-in user-type="android.os.usertype.profile.CLONE" />
    </install-in-user-type>
</config>
Loading