summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-12-17 18:24:03 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-12-17 18:24:03 +0100
commit71a01dce178fb399e914fae82c0c9a9a8de1b120 (patch)
treee2cb063c06b82bfe22d6f48eb6f8ce2613076237 /config
parentd02579012ac823fdbd7b8e185d65c54aef0eea1f (diff)
parent7f67b4e9402a566b85951a3b21049592e4c070ef (diff)
downloadvendor_replicant-71a01dce178fb399e914fae82c0c9a9a8de1b120.zip
vendor_replicant-71a01dce178fb399e914fae82c0c9a9a8de1b120.tar.gz
vendor_replicant-71a01dce178fb399e914fae82c0c9a9a8de1b120.tar.bz2
Merge remote-tracking branch 'github/cm-13.0' into replicant-6.0
remove prebuilt terminal (built-in terminal app can be activated in dev settings) Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> Conflicts: CHANGELOG.mkdn CONTRIBUTORS.mkdn config/cdma.mk config/cm_audio.mk config/common.mk config/common_full.mk config/common_full_phone.mk config/gsm.mk config/themes_common.mk get-prebuilts overlay/common/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg overlay/common/frameworks/base/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg overlay/common/frameworks/base/core/res/res/drawable-sw720dp-nodpi/default_wallpaper.jpg overlay/common/frameworks/base/core/res/res/drawable-xhdpi/default_wallpaper.jpg overlay/common/frameworks/base/core/res/res/values/config.xml overlay/common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml prebuilt/common/bootanimation/1080.zip prebuilt/common/bootanimation/1200.zip prebuilt/common/bootanimation/240.zip prebuilt/common/bootanimation/320.zip prebuilt/common/bootanimation/360.zip prebuilt/common/bootanimation/480.zip prebuilt/common/bootanimation/540.zip prebuilt/common/bootanimation/600.zip prebuilt/common/bootanimation/720.zip prebuilt/common/bootanimation/768.zip prebuilt/common/bootanimation/800.zip prebuilt/common/etc/apns-conf.xml sepolicy/mac_permissions.xml sepolicy/sepolicy.mk vendorsetup.sh Change-Id: I4fc2a5b00721cae8b3a36f33c36f006142bad44f
Diffstat (limited to 'config')
-rw-r--r--config/cdma.mk3
-rw-r--r--config/cm_audio.mk47
-rw-r--r--config/common.mk321
-rw-r--r--config/common_full.mk36
-rw-r--r--config/common_full_phone.mk23
-rw-r--r--config/common_full_tablet_wifionly.mk16
-rw-r--r--config/common_full_tv.mk12
-rw-r--r--config/common_mini_phone.mk17
-rw-r--r--config/common_mini_tablet_wifionly.mk16
-rw-r--r--config/common_mini_tv.mk15
-rw-r--r--config/gsm.mk12
-rw-r--r--config/permissions/org.cyanogenmod.theme.xml (renamed from config/permissions/com.tmobile.software.themes.xml)18
-rw-r--r--config/telephony.mk17
-rw-r--r--config/themes_common.mk10
14 files changed, 397 insertions, 166 deletions
diff --git a/config/cdma.mk b/config/cdma.mk
deleted file mode 100644
index 15eb7f4..0000000
--- a/config/cdma.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-# CDMA APN list
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/apns-conf-cdma.xml:system/etc/apns-conf.xml
diff --git a/config/cm_audio.mk b/config/cm_audio.mk
index 7d0f4d6..1fb7d31 100644
--- a/config/cm_audio.mk
+++ b/config/cm_audio.mk
@@ -9,30 +9,35 @@ UI_PATH := vendor/replicant/prebuilt/common/media/audio/ui
# Alarms
PRODUCT_COPY_FILES += \
- $(ALARM_PATH)/CyanAlarm.ogg:system/media/audio/alarms/CyanAlarm.ogg \
- $(ALARM_PATH)/NuclearLaunch.ogg:system/media/audio/alarms/NuclearLaunch.ogg
+ $(ALARM_PATH)/CyanAlarm.ogg:system/media/audio/alarms/CyanAlarm.ogg \
+ $(ALARM_PATH)/NuclearLaunch.ogg:system/media/audio/alarms/NuclearLaunch.ogg
# Notifications
PRODUCT_COPY_FILES += \
- $(NOTIFICATION_PATH)/CyanMail.ogg:system/media/audio/notifications/CyanMail.ogg \
- $(NOTIFICATION_PATH)/CyanMessage.ogg:system/media/audio/notifications/CyanMessage.ogg \
- $(NOTIFICATION_PATH)/CyanPing.ogg:system/media/audio/notifications/CyanPing.ogg \
- $(NOTIFICATION_PATH)/Doink.ogg:system/media/audio/notifications/Doink.ogg \
- $(NOTIFICATION_PATH)/Laser.ogg:system/media/audio/notifications/Laser.ogg \
- $(NOTIFICATION_PATH)/Naughty.ogg:system/media/audio/notifications/Naughty.ogg \
- $(NOTIFICATION_PATH)/Pong.ogg:system/media/audio/notifications/Pong.ogg \
- $(NOTIFICATION_PATH)/Rang.ogg:system/media/audio/notifications/Rang.ogg \
- $(NOTIFICATION_PATH)/Stone.ogg:system/media/audio/notifications/Stone.ogg
+ $(NOTIFICATION_PATH)/CyanDoink.ogg:system/media/audio/notifications/CyanDoink.ogg \
+ $(NOTIFICATION_PATH)/CyanMail.ogg:system/media/audio/notifications/CyanMail.ogg \
+ $(NOTIFICATION_PATH)/CyanMessage.ogg:system/media/audio/notifications/CyanMessage.ogg \
+ $(NOTIFICATION_PATH)/Laser.ogg:system/media/audio/notifications/Laser.ogg \
+ $(NOTIFICATION_PATH)/Naughty.ogg:system/media/audio/notifications/Naughty.ogg \
+ $(NOTIFICATION_PATH)/Pong.ogg:system/media/audio/notifications/Pong.ogg \
+ $(NOTIFICATION_PATH)/Rang.ogg:system/media/audio/notifications/Rang.ogg \
+ $(NOTIFICATION_PATH)/Stone.ogg:system/media/audio/notifications/Stone.ogg
# Ringtones
+ifeq ($(TARGET_NEEDS_BOOSTED_SOUNDS),true)
PRODUCT_COPY_FILES += \
- $(RINGTONE_PATH)/Bongo.ogg:system/media/audio/ringtones/Bongo.ogg \
- $(RINGTONE_PATH)/Boxbeat.ogg:system/media/audio/ringtones/Boxbeat.ogg \
- $(RINGTONE_PATH)/CyanTone.ogg:system/media/audio/ringtones/CyanTone.ogg \
- $(RINGTONE_PATH)/Gigolo.ogg:system/media/audio/ringtones/Gigolo.ogg \
- $(RINGTONE_PATH)/Highscore.ogg:system/media/audio/ringtones/Highscore.ogg \
- $(RINGTONE_PATH)/House_of_house.ogg:system/media/audio/ringtones/House_of_house.ogg \
- $(RINGTONE_PATH)/Lyon.ogg:system/media/audio/ringtones/Lyon.ogg \
- $(RINGTONE_PATH)/Rockin.ogg:system/media/audio/ringtones/Rockin.ogg \
- $(RINGTONE_PATH)/Silmarillia.ogg:system/media/audio/ringtones/Silmarillia.ogg
-
+ $(RINGTONE_PATH)/boosted/Boxbeat.ogg:system/media/audio/ringtones/Boxbeat.ogg \
+ $(RINGTONE_PATH)/boosted/CyanTone.ogg:system/media/audio/ringtones/CyanTone.ogg \
+ $(RINGTONE_PATH)/boosted/Highscore.ogg:system/media/audio/ringtones/Highscore.ogg \
+ $(RINGTONE_PATH)/boosted/Lyon.ogg:system/media/audio/ringtones/Lyon.ogg \
+ $(RINGTONE_PATH)/boosted/Rockin.ogg:system/media/audio/ringtones/Rockin.ogg
+else
+PRODUCT_COPY_FILES += \
+ $(RINGTONE_PATH)/Boxbeat.ogg:system/media/audio/ringtones/Boxbeat.ogg \
+ $(RINGTONE_PATH)/CyanTone.ogg:system/media/audio/ringtones/CyanTone.ogg \
+ $(RINGTONE_PATH)/Highscore.ogg:system/media/audio/ringtones/Highscore.ogg \
+ $(RINGTONE_PATH)/Lyon.ogg:system/media/audio/ringtones/Lyon.ogg \
+ $(RINGTONE_PATH)/Rockin.ogg:system/media/audio/ringtones/Rockin.ogg \
+ $(RINGTONE_PATH)/Sheep.mp3:system/media/audio/ringtones/Sheep.mp3 \
+ $(RINGTONE_PATH)/Yukaay.ogg:system/media/audio/ringtones/Yukaay.ogg
+endif
diff --git a/config/common.mk b/config/common.mk
index 344e9d0..c75d252 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -1,27 +1,73 @@
PRODUCT_BRAND ?= replicant
--include vendor/replicant-security/security.mk
-
-SUPERUSER_EMBEDDED := true
-SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
+ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
+# determine the smaller dimension
+TARGET_BOOTANIMATION_SIZE := $(shell \
+ if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
+ echo $(TARGET_SCREEN_WIDTH); \
+ else \
+ echo $(TARGET_SCREEN_HEIGHT); \
+ fi )
+
+# get a sorted list of the sizes
+bootanimation_sizes := $(subst .zip,, $(shell ls vendor/replicant/prebuilt/common/bootanimation))
+bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
+
+# find the appropriate size and set
+define check_and_set_bootanimation
+$(eval TARGET_BOOTANIMATION_NAME := $(shell \
+ if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
+ if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
+ echo $(1); \
+ exit 0; \
+ fi;
+ fi;
+ echo $(TARGET_BOOTANIMATION_NAME); ))
+endef
+$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
+
+ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
+PRODUCT_BOOTANIMATION := vendor/replicant/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
+else
+PRODUCT_BOOTANIMATION := vendor/replicant/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
+endif
+endif
-ifneq ($(TARGET_BOOTANIMATION_NAME),)
- PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
+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),)
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.com.google.clientidbase=android-google
+else
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
+endif
+
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
- ro.com.google.clientidbase=android-google \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.dataroaming=false
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.build.selinux=1
+
+ifneq ($(TARGET_BUILD_VARIANT),user)
+# Thank you, please drive thru!
+PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
+endif
+
ifneq ($(TARGET_BUILD_VARIANT),eng)
# Enable ADB authentication
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
@@ -34,45 +80,40 @@ 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:system/bin/backuptool.sh \
- vendor/replicant/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
+ 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
+
+# Signature compatibility validation
+PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
# init.d support
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/replicant/prebuilt/common/bin/sysinit:system/bin/sysinit
+ifneq ($(TARGET_BUILD_VARIANT),user)
# userinit support
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
-
-# SELinux filesystem labels
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel
+endif
# CM-specific init file
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/etc/init.local.rc:root/init.cm.rc
-# Compcache/Zram support
+# Copy over added mimetype supported in libcore.net.MimeUtils
PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/bin/compcache:system/bin/compcache \
- vendor/replicant/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache
+ vendor/replicant/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
# Prebuilt apps
PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/apps/FDroid.apk:system/app/FDroid.apk \
- vendor/replicant/prebuilt/common/apps/TerminalEmulator.apk:system/app/TerminalEmulator.apk \
- vendor/replicant/prebuilt/common/apps/lib/armeabi/libjackpal-termexec2.so:system/lib/libjackpal-termexec2.so \
- vendor/replicant/prebuilt/common/apps/lib/armeabi/libjackpal-androidterm5.so:system/lib/libjackpal-androidterm5.so
-
-# Bring in camera effects
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
- vendor/replicant/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
+ vendor/replicant/prebuilt/common/apps/FDroid.apk:system/app/FDroid.apk
# Enable SIP+VoIP on all targets
PRODUCT_COPY_FILES += \
@@ -86,60 +127,73 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
vendor/replicant/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
-# Don't export PS1 in /system/etc/mkshrc.
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/mkshrc:system/etc/mkshrc
-
-# T-Mobile theme engine
+# Theme engine
include vendor/replicant/config/themes_common.mk
# Required CM packages
PRODUCT_PACKAGES += \
- Camera \
Development \
- LatinIME \
- Superuser \
- su
+ BluetoothExt \
+ Profiles
# Optional CM packages
PRODUCT_PACKAGES += \
- VoicePlus \
- VideoEditor \
- VoiceDialer \
- SoundRecorder \
- Basic
+ libemoji \
+ Terminal
+
+# Include librsjni explicitly to workaround GMS issue
+PRODUCT_PACKAGES += \
+ librsjni
# Custom CM packages
PRODUCT_PACKAGES += \
+ Launcher3 \
Trebuchet \
- DSPManager \
- libcyanogen-dsp \
- audio_effects.conf \
+ AudioFX \
ReplicantWallpapers \
- Apollo \
CMFileManager \
- LockClock
+ Eleven \
+ LockClock \
+ CyanogenSetupWizard \
+ CMSettingsProvider \
+ ExactCalculator
+
+# CM Platform Library
+PRODUCT_PACKAGES += \
+ org.cyanogenmod.platform-res \
+ org.cyanogenmod.platform \
+ org.cyanogenmod.platform.xml
+# CM Hardware Abstraction Framework
PRODUCT_PACKAGES += \
- CellBroadcastReceiver
+ org.cyanogenmod.hardware \
+ org.cyanogenmod.hardware.xml
# Extra tools in CM
PRODUCT_PACKAGES += \
- openvpn \
- e2fsck \
+ libsepol \
mke2fs \
tune2fs \
- bash \
- vim \
nano \
htop \
- powertop \
- lsof \
+ mkfs.ntfs \
+ fsck.ntfs \
+ mount.ntfs \
+ gdbserver \
+ micro_bench \
+ oprofiled \
+ sqlite3 \
+ strace \
+ pigz
+
+WITH_EXFAT ?= true
+ifeq ($(WITH_EXFAT),true)
+TARGET_USES_EXFAT := true
+PRODUCT_PACKAGES += \
mount.exfat \
fsck.exfat \
- mkfs.exfat \
- ntfsfix \
- ntfs-3g
+ mkfs.exfat
+endif
# Openssh
PRODUCT_PACKAGES += \
@@ -155,28 +209,157 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
rsync
-PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/dictionaries
+# Stagefright FFMPEG plugin
+PRODUCT_PACKAGES += \
+ libffmpeg_extractor \
+ libffmpeg_omx \
+ media_codecs_ffmpeg.xml
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ media.sf.omx-plugin=libffmpeg_omx.so \
+ media.sf.extractor-plugin=libffmpeg_extractor.so
+
+# These packages are excluded from user builds
+ifneq ($(TARGET_BUILD_VARIANT),user)
+PRODUCT_PACKAGES += \
+ procmem \
+ procrank \
+ su
+endif
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ persist.sys.root_access=0
+
PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/common
-ifeq ($(USE_OPENGL_RENDERER),true)
-PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/opengl
+PRODUCT_VERSION_MAJOR = 13
+PRODUCT_VERSION_MINOR = 0
+PRODUCT_VERSION_MAINTENANCE = 0-RC0
+
+# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
+
+ifndef CM_BUILDTYPE
+ ifdef RELEASE_TYPE
+ # Starting with "CM_" is optional
+ RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
+ CM_BUILDTYPE := $(RELEASE_TYPE)
+ endif
+endif
+
+# Filter out random types, so it'll reset to UNOFFICIAL
+ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
+ CM_BUILDTYPE :=
+endif
+
+ifdef CM_BUILDTYPE
+ ifneq ($(CM_BUILDTYPE), SNAPSHOT)
+ ifdef CM_EXTRAVERSION
+ # Force build type to EXPERIMENTAL
+ CM_BUILDTYPE := EXPERIMENTAL
+ # Remove leading dash from CM_EXTRAVERSION
+ CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
+ # Add leading dash to CM_EXTRAVERSION
+ CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
+ endif
+ else
+ ifndef CM_EXTRAVERSION
+ # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
+ CM_BUILDTYPE := EXPERIMENTAL
+ else
+ # Remove leading dash from CM_EXTRAVERSION
+ CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
+ # Add leading dash to CM_EXTRAVERSION
+ CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
+ endif
+ endif
+else
+ # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
+ CM_BUILDTYPE := UNOFFICIAL
+ CM_EXTRAVERSION :=
+endif
+
+ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
+ ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
+ CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
+ endif
+endif
+
+ifeq ($(CM_BUILDTYPE), RELEASE)
+ ifndef TARGET_VENDOR_RELEASE_BUILD_ID
+ CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
+ else
+ ifeq ($(TARGET_BUILD_VARIANT),user)
+ CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
+ else
+ CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
+ endif
+ endif
else
-BOARD_EGL_CFG := vendor/replicant/prebuilt/softwaregl/configs/egl.cfg
+ CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
+endif
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.cm.version=$(CM_VERSION) \
+ ro.cm.releasetype=$(CM_BUILDTYPE) \
+ ro.modversion=$(CM_VERSION) \
+ ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
+
+-include vendor/cm-priv/keys/keys.mk
+
+CM_DISPLAY_VERSION := $(CM_VERSION)
+
+ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
+ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
+ ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
+ ifndef TARGET_VENDOR_RELEASE_BUILD_ID
+ ifneq ($(CM_EXTRAVERSION),)
+ # Remove leading dash from CM_EXTRAVERSION
+ CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
+ TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
+ else
+ TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
+ endif
+ 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
+endif
+endif
-PRODUCT_PROPERTY_OVERRIDES += ro.softwaregl=true
+# by default, do not update the recovery with system updates
+PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
+
+ifndef CM_PLATFORM_SDK_VERSION
+ # This is the canonical definition of the SDK version, which defines
+ # the set of APIs and functionality available in the platform. It
+ # is a single integer that increases monotonically as updates to
+ # the SDK are released. It should only be incremented when the APIs for
+ # the new release are frozen (so that developers don't write apps against
+ # intermediate builds).
+ CM_PLATFORM_SDK_VERSION := 4
+endif
-PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/softwaregl
+ifndef CM_PLATFORM_REV
+ # For internal SDK revisions that are hotfixed/patched
+ # Reset after each CM_PLATFORM_SDK_VERSION release
+ # If you are doing a release and this is NOT 0, you are almost certainly doing it wrong
+ CM_PLATFORM_REV := 0
endif
-PRODUCT_VERSION_MAJOR = 4
-PRODUCT_VERSION_MINOR = 2
-PRODUCT_VERSION_MAINTENANCE = 2
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.cm.display.version=$(CM_DISPLAY_VERSION)
-REPLICANT_VERSION := "replicant-4.2"
+# CyanogenMod Platform SDK Version
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.cm.build.version.plat.sdk=$(CM_PLATFORM_SDK_VERSION)
+# CyanogenMod Platform Internal
PRODUCT_PROPERTY_OVERRIDES += \
- ro.cm.version=$(REPLICANT_VERSION) \
- ro.modversion=$(REPLICANT_VERSION)
+ ro.cm.build.version.plat.rev=$(CM_PLATFORM_REV)
+
+-include $(WORKSPACE)/build_env/image-auto-bits.mk
+
+-include vendor/cyngn/product.mk
--include vendor/replicant/sepolicy/sepolicy.mk
--include $(WORKSPACE)/hudson/image-auto-bits.mk
+$(call prepend-product-if-exists, vendor/extra/product.mk)
diff --git a/config/common_full.mk b/config/common_full.mk
index 82b1e93..ff22653 100644
--- a/config/common_full.mk
+++ b/config/common_full.mk
@@ -1,26 +1,34 @@
# Inherit common CM stuff
$(call inherit-product, vendor/replicant/config/common.mk)
-# Bring in all audio files
-include frameworks/base/data/sounds/NewAudio.mk
-
-# Extra Ringtones
-include frameworks/base/data/sounds/AudioPackageNewWave.mk
-
-# Bring in all video files
-$(call inherit-product, frameworks/base/data/videos/VideoPackage2.mk)
-
# Include CM audio files
include vendor/replicant/config/cm_audio.mk
ifeq ($(USE_OPENGL_RENDERER),true)
PRODUCT_PACKAGES += \
- HoloSpiralWallpaper \
- MagicSmokeWallpapers \
- NoiseField \
Galaxy4 \
+ HoloSpiralWallpaper \
LiveWallpapers \
LiveWallpapersPicker \
- VisualizationWallpapers \
- PhaseBeam
+ MagicSmokeWallpapers
endif
+
+PRODUCT_PACKAGES += \
+ NoiseField \
+ PhaseBeam \
+ PhotoTable \
+ SoundRecorder \
+ PhotoPhase
+
+# Extra tools in CM
+PRODUCT_PACKAGES += \
+ 7z \
+ bash \
+ bzip2 \
+ curl \
+ powertop \
+ unrar \
+ unzip \
+ vim \
+ wget \
+ zip
diff --git a/config/common_full_phone.mk b/config/common_full_phone.mk
index a3af5ce..7c19dda 100644
--- a/config/common_full_phone.mk
+++ b/config/common_full_phone.mk
@@ -1,20 +1,21 @@
# Inherit common CM stuff
$(call inherit-product, vendor/replicant/config/common_full.mk)
-# Default ringtone
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.config.ringtone=Orion.ogg \
- ro.config.notification_sound=Argon.ogg \
- ro.config.alarm_alert=Hassium.ogg
-
+# Required CM packages
PRODUCT_PACKAGES += \
- Mms
+ LatinIME
-# BT config
-PRODUCT_COPY_FILES += \
- system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf
+# Include CM LatinIME dictionaries
+PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/dictionaries
-ifeq ($(TARGET_BOOTANIMATION_NAME),)
+# 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))
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/bootanimation/vertical-480x800.zip:system/media/bootanimation.zip
endif
+
+$(call inherit-product, vendor/replicant/config/telephony.mk)
diff --git a/config/common_full_tablet_wifionly.mk b/config/common_full_tablet_wifionly.mk
index 9730514..fc1cf9c 100644
--- a/config/common_full_tablet_wifionly.mk
+++ b/config/common_full_tablet_wifionly.mk
@@ -1,15 +1,17 @@
# Inherit common CM stuff
$(call inherit-product, vendor/replicant/config/common_full.mk)
-# Default ringtone
+# Required CM packages
+PRODUCT_PACKAGES += \
+ LatinIME
+
+# Include CM LatinIME dictionaries
+PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
+
+# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
- ro.config.ringtone=Orion.ogg \
ro.config.notification_sound=Argon.ogg \
- ro.config.alarm_alert=Hassium.ogg
-
-# BT config
-PRODUCT_COPY_FILES += \
- system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf
+ ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_BOOTANIMATION_NAME),)
PRODUCT_COPY_FILES += \
diff --git a/config/common_full_tv.mk b/config/common_full_tv.mk
new file mode 100644
index 0000000..f7689b7
--- /dev/null
+++ b/config/common_full_tv.mk
@@ -0,0 +1,12 @@
+# Inherit common CM stuff
+$(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))
+ PRODUCT_COPY_FILES += \
+ vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip
+endif
diff --git a/config/common_mini_phone.mk b/config/common_mini_phone.mk
index e72e34a..d6344e2 100644
--- a/config/common_mini_phone.mk
+++ b/config/common_mini_phone.mk
@@ -1,22 +1,21 @@
# Inherit common CM stuff
$(call inherit-product, vendor/replicant/config/common.mk)
-# Bring in all audio files
-include frameworks/base/data/sounds/NewAudio.mk
-
# Include CM audio files
include vendor/replicant/config/cm_audio.mk
-# Default ringtone
+# Required CM packages
+PRODUCT_PACKAGES += \
+ LatinIME
+
+# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
- ro.config.ringtone=Orion.ogg \
ro.config.notification_sound=Argon.ogg \
- ro.config.alarm_alert=Hassium.ogg
-
-PRODUCT_PACKAGES += \
- Mms
+ ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_BOOTANIMATION_NAME),)
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/bootanimation/vertical-320x480.zip:system/media/bootanimation.zip
endif
+
+$(call inherit-product, vendor/cm/config/telephony.mk)
diff --git a/config/common_mini_tablet_wifionly.mk b/config/common_mini_tablet_wifionly.mk
index f29e41b..5ebe2a5 100644
--- a/config/common_mini_tablet_wifionly.mk
+++ b/config/common_mini_tablet_wifionly.mk
@@ -1,21 +1,17 @@
# Inherit common CM stuff
$(call inherit-product, vendor/replicant/config/common.mk)
-# Bring in all audio files
-include frameworks/base/data/sounds/NewAudio.mk
-
# Include CM audio files
include vendor/replicant/config/cm_audio.mk
-# Default ringtone
+# Required CM packages
+PRODUCT_PACKAGES += \
+ LatinIME
+
+# Default notification/alarm sounds
PRODUCT_PROPERTY_OVERRIDES += \
- ro.config.ringtone=Orion.ogg \
ro.config.notification_sound=Argon.ogg \
- ro.config.alarm_alert=Hassium.ogg
-
-# BT config
-PRODUCT_COPY_FILES += \
- system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf
+ ro.config.alarm_alert=Helium.ogg
ifeq ($(TARGET_BOOTANIMATION_NAME),)
PRODUCT_COPY_FILES += \
diff --git a/config/common_mini_tv.mk b/config/common_mini_tv.mk
new file mode 100644
index 0000000..57256ed
--- /dev/null
+++ b/config/common_mini_tv.mk
@@ -0,0 +1,15 @@
+# Inherit common CM stuff
+$(call inherit-product, vendor/cm/config/common.mk)
+
+# 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
+
+ifeq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
+ PRODUCT_COPY_FILES += \
+ vendor/cm/prebuilt/common/bootanimation/800.zip:system/media/bootanimation.zip
+endif
diff --git a/config/gsm.mk b/config/gsm.mk
deleted file mode 100644
index 98e7cee..0000000
--- a/config/gsm.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# GSM APN list
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
-
-# GSM SPN overrides list
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/spn-conf.xml:system/etc/spn-conf.xml
-
-# SIM Toolkit
-PRODUCT_PACKAGES += \
- Stk
-
diff --git a/config/permissions/com.tmobile.software.themes.xml b/config/permissions/org.cyanogenmod.theme.xml
index f1c2f54..4b09eb5 100644
--- a/config/permissions/com.tmobile.software.themes.xml
+++ b/config/permissions/org.cyanogenmod.theme.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2011 The CyanogenMod Project
+<!-- Copyright (C) 2014 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -15,6 +15,14 @@
-->
<permissions>
- <feature name="com.tmobile.software.themes" />
-</permissions>
+ <!-- The features listed here should coincide with the various iterations of
+ the CyanogenMod theme engine. New org.cyanogenmod.theme.vX features
+ should only be added when the structure of the theme apk format is changed
+ -->
+ <!-- This is an alias for org.cyanogenmod.theme.v1 -->
+ <feature name="org.cyanogenmod.theme" />
+
+ <!-- Supports themes using v1 of the theme engine -->
+ <feature name="org.cyanogenmod.theme.v1" />
+</permissions>
diff --git a/config/telephony.mk b/config/telephony.mk
new file mode 100644
index 0000000..b28e26f
--- /dev/null
+++ b/config/telephony.mk
@@ -0,0 +1,17 @@
+# World APN list
+PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
+
+# Selective SPN list for operator number who has the problem.
+PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
+
+# Telephony packages
+PRODUCT_PACKAGES += \
+ messaging \
+ Stk \
+ CellBroadcastReceiver
+
+# Default ringtone
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.config.ringtone=Orion.ogg
diff --git a/config/themes_common.mk b/config/themes_common.mk
index 975df92..eaeb2d2 100644
--- a/config/themes_common.mk
+++ b/config/themes_common.mk
@@ -1,8 +1,8 @@
-# T-Mobile theme engine
+# Theme engine
PRODUCT_PACKAGES += \
- ThemeManager \
- ThemeChooser \
- com.tmobile.themes
+ aapt \
+ ThemeChooser \
+ ThemesProvider
PRODUCT_COPY_FILES += \
- vendor/replicant/config/permissions/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml
+ vendor/replicant/config/permissions/org.cyanogenmod.theme.xml:system/etc/permissions/org.cyanogenmod.theme.xml