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

Commit 6d31ac18 authored by Bookatz's avatar Bookatz
Browse files

preinstalled-packages-platform for profiles

Unwhitelist packages that are not needed on profiles, such as wallpaper,
navbar, and cutout apps. These system packages will therefore not be
pre-installed on profile users.

Bug: 134605778
Test: Confirmed that these packages do not appear in a profile
Change-Id: Icefbcf8def31450a0f2d93cca12f6fcbf6803cb7
parent da587dc1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ prebuilt_etc {
    src: "preinstalled-packages-platform.xml",
}

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

prebuilt_etc {
    name: "hiddenapi-package-whitelist.xml",
    sub_dir: "sysconfig",
+47 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 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 frameworks-base-overlays, per user type.
     Documentation at frameworks/base/data/etc/preinstalled-packages-platform.xml
-->
<config>
    <install-in-user-type package="com.android.internal.display.cutout.emulation.corner">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.display.cutout.emulation.double">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.display.cutout.emulation.tall">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.gestural">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.gestural_extra_wide_back">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.gestural_narrow_back">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.gestural_wide_back">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.threebutton">
        <install-in user-type="FULL" />
    </install-in-user-type>
    <install-in-user-type package="com.android.internal.systemui.navbar.twobutton">
        <install-in user-type="FULL" />
    </install-in-user-type>
</config>
+3 −0
Original line number Diff line number Diff line
@@ -106,4 +106,7 @@ to pre-existing users, but cannot uninstall system packages from pre-existing us
        <install-in user-type="FULL" />
        <install-in user-type="PROFILE" />
    </install-in-user-type>
    <install-in-user-type package="com.android.wallpaperbackup">
        <install-in user-type="FULL" />
    </install-in-user-type>
</config>
+2 −1
Original line number Diff line number Diff line
@@ -51,7 +51,8 @@ LOCAL_REQUIRED_MODULES := \
	NavigationBarModeGesturalOverlay \
	NavigationBarModeGesturalOverlayNarrowBack \
	NavigationBarModeGesturalOverlayWideBack \
	NavigationBarModeGesturalOverlayExtraWideBack
	NavigationBarModeGesturalOverlayExtraWideBack \
	preinstalled-packages-platform-overlays.xml

include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS)