Skip to content

Commit

Permalink
vendor: Conditionally build live wallpapers
Browse files Browse the repository at this point in the history
* Also add static version

Change-Id: I5ac12e0b5db814ecedf74e22fcefa5940463c6ca
  • Loading branch information
jhenrique09 committed Nov 23, 2020
1 parent 034eecc commit 4315a71
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ PRODUCT_PRODUCT_PROPERTIES += \
PRODUCT_PRODUCT_PROPERTIES += \
ro.boot.vendor.overlay.theme=com.android.internal.systemui.navbar.gestural

# Live Wallpapers
TARGET_INCLUDE_LIVE_WALLPAPERS ?= true
ifeq ($(TARGET_INCLUDE_LIVE_WALLPAPERS),true)
PRODUCT_PACKAGES += \
PixelLiveWallpapersOverlay
endif

# Face Unlock
#TARGET_FACE_UNLOCK_SUPPORTED ?= true
#ifneq ($(TARGET_GAPPS_ARCH),arm64)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>
<string name="config_deviceProvisioningPackage">com.google.android.apps.work.oobconfig</string>
<string name="config_wallpaperCropperPackage">com.google.android.apps.wallpaper</string>
<string name="default_wallpaper_component">com.breel.wallpapers20/com.breel.wallpapers20.stack.wallpaper.StackWallpaper</string>
<!--string name="default_wallpaper_component">com.breel.wallpapers20/com.breel.wallpapers20.stack.wallpaper.StackWallpaper</string-->
<string name="config_appsAuthorizedForSharedAccounts">;com.android.vending;com.android.settings;</string>
<string name="config_defaultAccessibilityService">com.google.android.marvin.talkback/.TalkBackService</string>
<string name="config_defaultAssistant">com.google.android.googlequicksearchbox</string>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions rro_overlays/PixelLiveWallpapersOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
runtime_resource_overlay {
name: "PixelLiveWallpapersOverlay",
certificate: "platform",
sdk_version: "current",
product_specific: true
}
8 changes: 8 additions & 0 deletions rro_overlays/PixelLiveWallpapersOverlay/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.overlay.breel"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android" android:priority="1" android:isStatic="true" />

<application android:label="PixelLiveWallpapersOverlay" android:hasCode="false"/>
</manifest>
4 changes: 4 additions & 0 deletions rro_overlays/PixelLiveWallpapersOverlay/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="default_wallpaper_component">com.breel.wallpapers20/com.breel.wallpapers20.stack.wallpaper.StackWallpaper</string>
</resources>

0 comments on commit 4315a71

Please sign in to comment.