cm: Minor config reorganization

* Move extra tools to common.mk. These are needed for CMFM, and should
   be included for all.
 * Move PhotoTable, LiveWallpapersPicker, SoundRecorder and Screencast
   to common.mk. These apps are extremely small, and only takes up
   less than 1 MB combined.
 * Remove obsolete live wallpapers.
 * Move sound property overrides to common.mk. There's no need
   to have them spread across several files.
 * Include CM audio files from common.mk

Change-Id: If308506cd9cd0a75014de988c242d700db5d16f3
This commit is contained in:
Arne Coucheron 2016-09-09 00:04:09 +02:00 committed by Gerrit Code Review
parent 0525ff2a9e
commit 61536d4497
6 changed files with 26 additions and 58 deletions

View file

@ -63,6 +63,11 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.build.selinux=1 ro.build.selinux=1
# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.notification_sound=Argon.ogg \
ro.config.alarm_alert=Helium.ogg
ifneq ($(TARGET_BUILD_VARIANT),user) ifneq ($(TARGET_BUILD_VARIANT),user)
# Thank you, please drive thru! # Thank you, please drive thru!
PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
@ -123,6 +128,9 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
# Include CM audio files
include vendor/cm/config/cm_audio.mk
# Theme engine # Theme engine
include vendor/cm/config/themes_common.mk include vendor/cm/config/themes_common.mk
@ -143,7 +151,9 @@ PRODUCT_PACKAGES += \
# Optional CM packages # Optional CM packages
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libemoji \ libemoji \
Terminal Terminal \
LiveWallpapersPicker \
PhotoTable
# Include librsjni explicitly to workaround GMS issue # Include librsjni explicitly to workaround GMS issue
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -163,7 +173,9 @@ PRODUCT_PACKAGES += \
CMSettingsProvider \ CMSettingsProvider \
ExactCalculator \ ExactCalculator \
LiveLockScreenService \ LiveLockScreenService \
WeatherProvider WeatherProvider \
SoundRecorder \
Screencast
# Exchange support # Exchange support
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -184,7 +196,18 @@ PRODUCT_PACKAGES += \
oprofiled \ oprofiled \
sqlite3 \ sqlite3 \
strace \ strace \
pigz pigz \
7z \
lib7z \
bash \
bzip2 \
curl \
powertop \
unrar \
unzip \
vim \
wget \
zip
# Custom off-mode charger # Custom off-mode charger
ifneq ($(WITH_CM_CHARGER),false) ifneq ($(WITH_CM_CHARGER),false)

View file

@ -3,37 +3,6 @@ $(call inherit-product, vendor/cm/config/common.mk)
PRODUCT_SIZE := full PRODUCT_SIZE := full
# Include CM audio files
include vendor/cm/config/cm_audio.mk
# Optional CM packages
PRODUCT_PACKAGES += \
Galaxy4 \
HoloSpiralWallpaper \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
NoiseField \
PhaseBeam \
PhotoTable \
SoundRecorder \
PhotoPhase \
Screencast
# Extra tools in CM
PRODUCT_PACKAGES += \
7z \
lib7z \
bash \
bzip2 \
curl \
powertop \
unrar \
unzip \
vim \
wget \
zip
# Themes # Themes
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
HexoLibre HexoLibre

View file

@ -8,11 +8,6 @@ PRODUCT_PACKAGES += \
# Include CM LatinIME dictionaries # Include CM LatinIME dictionaries
PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.notification_sound=Argon.ogg \
ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bootanimation/480.zip:system/media/bootanimation.zip vendor/cm/prebuilt/common/bootanimation/480.zip:system/media/bootanimation.zip

View file

@ -8,11 +8,6 @@ PRODUCT_PACKAGES += \
# Include CM LatinIME dictionaries # Include CM LatinIME dictionaries
PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.notification_sound=Argon.ogg \
ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip

View file

@ -1,11 +1,6 @@
# Inherit common CM stuff # Inherit common CM stuff
$(call inherit-product, vendor/cm/config/common_full.mk) $(call inherit-product, vendor/cm/config/common_full.mk)
# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.notification_sound=Argon.ogg \
ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip

View file

@ -2,12 +2,3 @@
$(call inherit-product, vendor/cm/config/common.mk) $(call inherit-product, vendor/cm/config/common.mk)
PRODUCT_SIZE := mini PRODUCT_SIZE := mini
# Include CM audio files
include vendor/cm/config/cm_audio.mk
# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.notification_sound=Argon.ogg \
ro.config.alarm_alert=Helium.ogg