diff options
Diffstat (limited to 'config/common.mk')
-rw-r--r-- | config/common.mk | 69 |
1 files changed, 53 insertions, 16 deletions
diff --git a/config/common.mk b/config/common.mk index 3ee9b90..f2c8e76 100644 --- a/config/common.mk +++ b/config/common.mk @@ -33,14 +33,6 @@ PRODUCT_BOOTANIMATION := vendor/replicant/prebuilt/common/bootanimation/$(TARGET endif endif -ifdef CM_NIGHTLY -PRODUCT_PROPERTY_OVERRIDES += \ - ro.rommanager.developerid=cyanogenmodnightly -else -PRODUCT_PROPERTY_OVERRIDES += \ - ro.rommanager.developerid=cyanogenmod -endif - PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) @@ -63,6 +55,11 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \ 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) # Thank you, please drive thru! PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 @@ -78,13 +75,15 @@ PRODUCT_COPY_FILES += \ vendor/replicant/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt # Backup Tool -ifneq ($(WITH_GMS),true) PRODUCT_COPY_FILES += \ vendor/replicant/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ vendor/replicant/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ vendor/replicant/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \ vendor/replicant/prebuilt/common/bin/blacklist:system/addon.d/blacklist -endif + +# Backup Services whitelist +PRODUCT_COPY_FILES += \ + vendor/cm/config/permissions/backup.xml:system/etc/sysconfig/backup.xml # Signature compatibility validation PRODUCT_COPY_FILES += \ @@ -125,6 +124,9 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ vendor/replicant/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 include vendor/replicant/config/themes_common.mk @@ -133,14 +135,18 @@ include vendor/replicant/config/cmsdk_common.mk # Required CM packages PRODUCT_PACKAGES += \ + CMAudioService \ Development \ BluetoothExt \ - Profiles + Profiles \ + ThemeManagerService \ + WeatherManagerService # Optional CM packages PRODUCT_PACKAGES += \ libemoji \ - Terminal + Terminal \ + LiveWallpapersPicker # Include librsjni explicitly to workaround GMS issue PRODUCT_PACKAGES += \ @@ -156,7 +162,13 @@ PRODUCT_PACKAGES += \ Eleven \ LockClock \ CMSettingsProvider \ - ExactCalculator + ExactCalculator \ + LiveLockScreenService \ + WeatherProvider \ + DataUsageProvider \ + WallpaperPicker \ + SoundRecorder \ + Screencast # Exchange support PRODUCT_PACKAGES += \ @@ -177,8 +189,29 @@ PRODUCT_PACKAGES += \ oprofiled \ sqlite3 \ strace \ - pigz + pigz \ + 7z \ + lib7z \ + bash \ + bzip2 \ + curl \ + powertop \ + unrar \ + unzip \ + vim \ + wget \ + zip + +# Custom off-mode charger +ifneq ($(WITH_CM_CHARGER),false) +PRODUCT_PACKAGES += \ + charger_res_images \ + cm_charger_res_images \ + font_log.png \ + libhealthd.cm +endif +# ExFAT support WITH_EXFAT ?= true ifeq ($(WITH_EXFAT),true) TARGET_USES_EXFAT := true @@ -266,8 +299,12 @@ ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey) else TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID) endif - CM_DISPLAY_VERSION=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID) - endif + ifeq ($(CM_VERSION_MAINTENANCE),0) + CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD) + else + CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD) + endif +endif endif endif |