tangorpro: Build TangorproGMSOverlay RRO

* Conditionally enable GMS-specific product overlays related
  to HubUI.

Change-Id: I8eafc030e83dcd807191ea5941bf11e493617683
This commit is contained in:
Nolen Johnson 2023-06-29 17:16:06 -04:00 committed by Michael Bestas
parent 417727c85e
commit 3605af8a45
No known key found for this signature in database
GPG key ID: CC95044519BE6669
4 changed files with 42 additions and 1 deletions

View file

@ -12,7 +12,8 @@ PRODUCT_PACKAGES += \
# RRO # RRO
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
GrilRadioCustomizableNoRadio GrilRadioCustomizableNoRadio \
TangorproGMSOverlay
# Build necessary packages for vendor # Build necessary packages for vendor

View file

@ -0,0 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "TangorproGMSOverlay",
product_specific: true,
}

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.overlay.tangorpro.gms">
<application android:extractNativeLibs="true" android:hasCode="false" />
<overlay android:targetPackage="android"
android:priority="1"
android:requiredSystemPropertyName="ro.com.google.gmsversion"
android:isStatic="true"
android:requiredSystemPropertyValue="*" />
</manifest>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- ComponentName of the default dream (Settings.Secure.DEFAULT_SCREENSAVER_COMPONENT) -->
<string name="config_dreamsDefaultComponent">com.google.assistant.hubui/com.google.assistant.hubui.dream.CuratedPhotoDreamService</string>
<!-- Package that provides the supervised user creation flow. This package must include an
activity with an intent filter for {@link UserManager.ACTION_CREATE_SUPERVISED_USER}.
When this resource is defined, an extra button in user settings screen will be shown
with a title defined in @*android:string/supervised_user_creation_label
and an icon defined in @*android:drawable/ic_add_supervised_user.
That button will fire an intent targeted for this package with the mentioned action.
When this resource is empty, that button will not be shown. -->
<string name="config_supervisedUserCreationPackage">com.google.android.gms</string>
<!-- ComponentNames of the dreams that we should hide -->
<string-array name="config_disabledDreamComponents">
<item>com.google.android.deskclock/com.android.deskclock.Screensaver</item>
<item>com.android.dreams.basic/.Colors</item>
<item>com.google.android.apps.photos/.daydream.PhotosDreamService</item>
<item>com.android.systemui/com.google.android.systemui.lowlightclock.LowLightClockDreamService</item>
</string-array>
</resources>