Skip to content

Commit

Permalink
addons: Update google sysconfig prebuilts
Browse files Browse the repository at this point in the history
* Remove unnecessary feature enable.

Signed-off-by: Pranav Vashi <[email protected]>
  • Loading branch information
neobuddy89 committed Jan 12, 2025
1 parent ecd4a7a commit 1a35f6f
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 47 deletions.
4 changes: 2 additions & 2 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ endif

PRODUCT_COPY_FILES += \
vendor/addons/prebuilt/product/etc/permissions/com.android.angle.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/com.android.angle.xml \
vendor/addons/prebuilt/product/etc/sysconfig/contextual_search.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/contextual_search.xml \
vendor/addons/prebuilt/product/etc/sysconfig/dialer_experience.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/dialer_experience.xml \
vendor/addons/prebuilt/product/etc/sysconfig/google.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/google.xml \
vendor/addons/prebuilt/product/etc/sysconfig/google_build.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/google_build.xml \
vendor/addons/prebuilt/product/etc/sysconfig/google_exclusives_enable.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/google_exclusives_enable.xml \
vendor/addons/prebuilt/product/etc/sysconfig/google-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/google-hiddenapi-package-whitelist.xml \
vendor/addons/prebuilt/product/etc/sysconfig/nexus.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/nexus.xml \
vendor/addons/prebuilt/product/etc/sysconfig/pixel_2016_exclusive.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/pixel_2016_exclusive.xml \
vendor/addons/prebuilt/product/etc/sysconfig/nga.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/nga.xml \
vendor/addons/prebuilt/product/etc/sysconfig/preinstalled-packages-product-pixel-2017-and-newer.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-product-pixel-2017-and-newer.xml \
vendor/addons/prebuilt/product/etc/sysconfig/preinstalled-packages-product-pixel-2018-and-newer.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-product-pixel-2018-and-newer.xml \
vendor/addons/prebuilt/product/etc/sysconfig/preinstalled-packages-product-pixel-2019-and-newer.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-product-pixel-2019-and-newer.xml \
Expand Down
6 changes: 6 additions & 0 deletions prebuilt/product/etc/sysconfig/contextual_search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- These are configurations that should exist on devices that suppot Contextual Search -->
<config>
<!-- This feature identifies devices with Contextual Search (Circle to Search) -->
<feature name="com.google.android.feature.CONTEXTUAL_SEARCH"/>
</config>
9 changes: 3 additions & 6 deletions prebuilt/product/etc/sysconfig/google-hiddenapi-package-whitelist.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ This XML file declares which platform apps that need to access internal APIs.
<hidden-api-whitelisted-app package="android.car.cluster.maserati" />
<hidden-api-whitelisted-app package="com.android.apps.tag" />
<hidden-api-whitelisted-app package="com.android.auto.embedded.cts.verifier" />
<hidden-api-whitelisted-app package="com.android.car.bugreport" />
<hidden-api-whitelisted-app package="com.android.car.carlauncher" />
<hidden-api-whitelisted-app package="com.android.car.home" />
<hidden-api-whitelisted-app package="com.android.car.retaildemo" />
<hidden-api-whitelisted-app package="com.android.car.settingslib.robotests" />
<hidden-api-whitelisted-app package="com.android.car.setupwizardlib.robotests" />
<hidden-api-whitelisted-app package="com.android.cardock" />
<hidden-api-whitelisted-app package="com.android.connectivity.metrics" />
<hidden-api-whitelisted-app package="com.android.facelock" />
<hidden-api-whitelisted-app package="com.android.google.gce.gceservice" />
<hidden-api-whitelisted-app package="com.android.hotwordenrollment.okgoogle" />
<hidden-api-whitelisted-app package="com.android.hotwordenrollment.tgoogle" />
Expand All @@ -49,11 +51,9 @@ This XML file declares which platform apps that need to access internal APIs.
<hidden-api-whitelisted-app package="com.android.tv.provision" />
<hidden-api-whitelisted-app package="com.google.SSRestartDetector" />
<hidden-api-whitelisted-app package="com.google.android.apps.nexuslauncher" />
<hidden-api-whitelisted-app package="com.google.android.apps.turbo" />
<hidden-api-whitelisted-app package="com.google.android.apps.wallpaper" />
<hidden-api-whitelisted-app package="com.google.android.asdiv" />
<hidden-api-whitelisted-app package="com.google.android.athome.globalkeyinterceptor" />
<hidden-api-whitelisted-app package="com.google.android.car.bugreport" />
<hidden-api-whitelisted-app package="com.google.android.car.defaultstoragemonitoringcompanionapp" />
<hidden-api-whitelisted-app package="com.google.android.car.diagnosticrecorder" />
<hidden-api-whitelisted-app package="com.google.android.car.diagnosticverifier" />
Expand All @@ -74,8 +74,6 @@ This XML file declares which platform apps that need to access internal APIs.
<hidden-api-whitelisted-app package="com.google.android.gsf" />
<hidden-api-whitelisted-app package="com.google.android.hardwareinfo" />
<hidden-api-whitelisted-app package="com.google.android.hiddenmenu" />
<hidden-api-whitelisted-app package="com.google.android.onetimeinitializer" />
<hidden-api-whitelisted-app package="com.google.android.packageinstaller" />
<hidden-api-whitelisted-app package="com.google.android.permissioncontroller" />
<hidden-api-whitelisted-app package="com.google.android.partner.provisioning" />
<hidden-api-whitelisted-app package="com.google.android.partnersetup" />
Expand All @@ -84,15 +82,14 @@ This XML file declares which platform apps that need to access internal APIs.
<hidden-api-whitelisted-app package="com.google.android.printservice.recommendation" />
<hidden-api-whitelisted-app package="com.google.android.sampledeviceowner" />
<hidden-api-whitelisted-app package="com.google.android.apps.scone" />
<hidden-api-whitelisted-app package="com.google.android.apps.pixel.dcservice" />
<hidden-api-whitelisted-app package="com.google.android.sdksetup" />
<hidden-api-whitelisted-app package="com.google.android.setupwizard" />
<hidden-api-whitelisted-app package="com.google.android.storagemanager" />
<hidden-api-whitelisted-app package="com.google.android.tag" />
<hidden-api-whitelisted-app package="com.google.android.tungsten.overscan" />
<hidden-api-whitelisted-app package="com.google.android.tungsten.setupwraith" />
<hidden-api-whitelisted-app package="com.google.android.tv.bugreportsender" />
<hidden-api-whitelisted-app package="com.google.android.tv.frameworkpackagestubs" />
<hidden-api-whitelisted-app package="com.google.android.tv.pairedsetup" />
<hidden-api-whitelisted-app package="com.google.android.vendorloggingservice" />
<hidden-api-whitelisted-app package="com.google.android.volta" />
<hidden-api-whitelisted-app package="com.google.android.wfcactivation" />
Expand Down
44 changes: 43 additions & 1 deletion prebuilt/product/etc/sysconfig/google.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<allow-ignore-location-settings package="com.google.android.gms" attributionTag="com.google.android.gms.thunderbird" />
<allow-ignore-location-settings package="com.google.android.dialer" attributionTag="*" />

<!-- SCONE must get device location for satellite emergency communications. -->
<allow-ignore-location-settings package="com.google.android.apps.scone" attributionTag="satellite_esos" />

<!-- Satellite access controller must get device location for satellite emergency communications. -->
<allow-ignore-location-settings package="com.android.phone" attributionTag="telephony" />

<!-- OobConfig must always have network access to fetch enterprise and carrier lock config. -->
<allow-in-power-save-except-idle package="com.google.android.apps.work.oobconfig" />
<allow-in-data-usage-save package="com.google.android.apps.work.oobconfig" />
Expand Down Expand Up @@ -60,6 +66,10 @@
<allow-in-power-save package="com.google.android.ims" />
<allow-in-data-usage-save package="com.google.android.ims" />

<!-- Allow SetupWizard keeping at unrestricted mode of Battery usage. -->
<bg-restriction-exemption package="com.google.android.setupwizard"/>
<bg-restriction-exemption package="com.google.android.apps.setupwizard.searchselector"/>

<!-- These Google applications all handle URLs to their websites by default -->

<!-- Apps below are required on all GMS devices -->
Expand Down Expand Up @@ -91,26 +101,58 @@
service="com.google.android.gms/.backup.BackupTransportService" />
<backup-transport-whitelisted-service
service="com.google.android.gms/.backup.component.D2dTransportService" />
<backup-transport-whitelisted-service
service="com.google.android.apps.restore/.transport.BackupTransportService" />
<backup-transport-whitelisted-service
service="com.google.android.apps.restore/.transport.D2dTransportService" />


<!-- Specify the explicit set of other applications that AI services are allowed to
interact with, including the providers that back the implementation of the APIs
provided by the package. -->
<allow-association target="com.google.android.as" allowed="com.android.bluetooth" />
<allow-association target="com.google.android.as" allowed="com.android.bluetooth.services" />
<allow-association target="com.google.android.as" allowed="com.android.providers.contacts" />
<allow-association target="com.google.android.as" allowed="com.android.providers.media" />
<allow-association target="com.google.android.as" allowed="com.android.providers.telephony" />
<allow-association target="com.google.android.as" allowed="com.android.systemui" />
<allow-association target="com.google.android.as" allowed="com.google.android.bluetooth" />
<allow-association target="com.google.android.as" allowed="com.google.android.bluetooth.services" />
<allow-association target="com.google.android.as" allowed="com.google.android.providers.media.module" />
<!-- AI services can bind to its open-source network component. -->
<allow-association target="com.google.android.as" allowed="com.google.android.as.oss" />

<!-- AI services open-source network component can only bind back to the core package. -->
<!-- AI services open-source network component can bind back to the core package. -->
<allow-association target="com.google.android.as.oss" allowed="com.google.android.as" />
<!-- AI services open-source network component can bind to AI Core. -->
<allow-association target="com.google.android.as.oss" allowed="com.google.android.aicore" />

<!-- Pixel Launcher can bind to the open-source network component. -->
<allow-association target="com.google.android.as.oss" allowed="com.google.android.apps.nexuslauncher" />

<!-- Specify the explicit set of other applications whose app data directories are
accessible by other applications. -->
<app-data-isolation-whitelisted-app package="com.google.android.gms" />

<!-- Whitelist of packages that eligible for rollback -->
<rollback-whitelisted-app package="com.android.vending" />
<rollback-whitelisted-app package="com.google.android.gms" />

<!-- Specify the installer eligiable for updating the given GMS package. -->
<update-ownership package="com.google.android.gms" installer="com.android.vending" />

<!-- Denylist of packages that are not eligible for automatic rollback -->
<automatic-rollback-denylisted-app package="com.android.vending" />
<automatic-rollback-denylisted-app package="com.google.android.gms" />

<!-- Allow device lock controller app to schedule jobs and alarms, and have network access when app
in background; otherwise, it may not be able to enforce provision for managed devices. -->
<allow-in-power-save package="com.google.android.devicelockcontroller" />
<allow-in-data-usage-save package="com.google.android.devicelockcontroller" />


<!-- These packages are part of Remote Key Provisioning and are allowed to always have
internet access while in power save mode, or in data saver mode. -->
<allow-in-power-save package="com.google.android.rkpdapp" />
<allow-in-data-usage-save package="com.google.android.rkpdapp" />
</config>
Empty file modified prebuilt/product/etc/sysconfig/google_build.xml
100755 → 100644
Empty file.
21 changes: 0 additions & 21 deletions prebuilt/product/etc/sysconfig/google_exclusives_enable.xml

This file was deleted.

21 changes: 16 additions & 5 deletions prebuilt/product/etc/sysconfig/nexus.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<!-- The feature identifying devices which are able to use the Android Wellbeing app. -->
<feature name="com.google.android.feature.WELLBEING" />

<!-- Enable Zero Touch Provisioning support for 2016 and newer Nexus devices. -->
<feature name="com.google.android.feature.ZERO_TOUCH" />
<!-- The feature identifying devices which are able to use the device-to-device migration
over cable provided by the Pixelmigrate app. -->
<feature name="com.google.android.feature.D2D_CABLE_MIGRATION_FEATURE" />

<!-- Allow WfcActivation app scheduled jobs to run when app in background. -->
<allow-in-power-save-except-idle package="com.google.android.wfcactivation" />
Expand All @@ -23,6 +24,12 @@
<!-- Allow connectivitymonitor service in background -->
<allow-in-power-save package="com.google.android.connectivitymonitor" />

<!-- Allow connectivitythermalpowermanager service in background -->
<allow-in-power-save package="com.google.android.connectivitythermalpowermanager" />

<!-- Allow iwlan service in backgroud-->
<allow-in-power-save package="com.google.android.iwlan" />

<!-- Allow ramdump uploader service in background -->
<allow-in-power-save package="com.android.ramdump" />

Expand All @@ -32,6 +39,10 @@
<!-- Whitelist so headless app JobIntentService can work. b/73250911 -->
<allow-in-power-save-except-idle package="com.google.android.carrier" />

<!-- Whitelist so headless app JobService can work. b/135126855 -->
<!-- Allow CarrierWifi WifiScorerService to run in background. b/334906519 -->
<allow-in-power-save package="com.google.android.apps.carrier.carrierwifi" />

<!-- These are telephony components that need to run in the background -->
<allow-in-power-save package="com.qualcomm.atfwd" />
<allow-in-power-save package="com.qualcomm.embms" />
Expand All @@ -43,9 +54,6 @@
<!-- Pre-installed carrier apps which should be disabled until a matching SIM is inserted. -->
<disabled-until-used-preinstalled-carrier-app package="com.google.android.apps.tycho" />

<!-- Verizon MVS app: pre-installed and should be disabled until Verizon SIM inserted. -->
<disabled-until-used-preinstalled-carrier-app package="com.verizon.mips.services" />

<!-- Whitelist so the app can run JobIntentService in background. b/77932342 -->
<allow-in-power-save-except-idle package="com.google.android.tetheringentitlement" />
<!-- Tethering entitlement check app should have Internet access while in data saving mode,
Expand All @@ -55,4 +63,7 @@
<!-- Allow eMBMS middleware services to run in the background -->
<allow-in-power-save package="com.qualcomm.ltebc_vzw" />
<allow-in-power-save package="com.qualcomm.ltebc" />

<!-- Allow gnss pixel monitor to run in the background -->
<allow-in-power-save package="com.google.android.gnsspixelmonitor" />
</config>
7 changes: 7 additions & 0 deletions prebuilt/product/etc/sysconfig/nga.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- These are configurations that should exist on devices that support Next Generation Assistant -->
<config>
<!-- This feature is meant to be the feature identifying devices that support NGA -->
<feature name="com.google.android.feature.NEXT_GENERATION_ASSISTANT" />
</config>
12 changes: 0 additions & 12 deletions prebuilt/product/etc/sysconfig/pixel_2016_exclusive.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,39 @@
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
<do-not-install-in user-type="android.os.usertype.profile.CLONE" />
</install-in-user-type>

<!-- Screenshots app -->
<install-in-user-type package="com.google.android.apps.pixel.agent">
<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" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>

<!-- Pixel Studio app -->
<install-in-user-type package="com.google.android.apps.pixel.creativeassistant">
<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" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>

<!-- Find My Device app -->
<install-in-user-type package="com.google.android.apps.adm">
<install-in user-type="FULL" />
<install-in user-type="PROFILE" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>

<!-- Pixel play auto-install (PAI) stub app. Enables phonesky to install
certain app prebuilts on device setup or when the first account is added to the user.
Preventing stub app installation disables PAI for the user -->
<install-in-user-type package="android.autoinstalls.config.google.nexus">
<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.PRIVATE" />
</install-in-user-type>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@
<do-not-install-in user-type="android.os.usertype.profile.CLONE" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>

<!-- Preinstallation config corresponding to the Pixel buds app-->
<install-in-user-type package="com.google.android.apps.wearables.maestro.companion">
<install-in user-type="FULL" />
<install-in user-type="PROFILE" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>
</config>

0 comments on commit 1a35f6f

Please sign in to comment.