2013-10-28 16:29:59 +00:00
|
|
|
PRODUCT_BRAND ?= replicant
|
2011-11-28 16:37:47 +00:00
|
|
|
|
2017-06-23 11:04:25 +00:00
|
|
|
ifneq ($(TARGET_BOOTANIMATION_NAME),)
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/replicant/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
|
2014-01-30 20:51:04 +00:00
|
|
|
endif
|
2013-02-28 18:33:25 +00:00
|
|
|
|
2011-11-27 19:56:54 +00:00
|
|
|
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
|
|
|
|
2013-11-06 21:55:11 +00:00
|
|
|
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
|
|
|
|
|
2011-11-27 19:56:54 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2017-01-13 07:41:01 +00:00
|
|
|
keyguard.no_require_sim=true
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2013-08-04 12:25:00 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2013-09-25 16:13:25 +00:00
|
|
|
ro.build.selinux=1
|
2013-08-04 12:25:00 +00:00
|
|
|
|
2016-09-08 22:04:09 +00:00
|
|
|
# Default notification/alarm sounds
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.config.notification_sound=Argon.ogg \
|
|
|
|
ro.config.alarm_alert=Helium.ogg
|
|
|
|
|
2015-09-11 23:13:01 +00:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
2014-02-05 06:59:01 +00:00
|
|
|
# Thank you, please drive thru!
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
|
2015-09-11 23:13:01 +00:00
|
|
|
endif
|
2014-02-05 06:59:01 +00:00
|
|
|
|
2013-03-20 10:47:17 +00:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
2013-02-15 15:46:39 +00:00
|
|
|
# Enable ADB authentication
|
|
|
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
|
2013-03-20 10:47:17 +00:00
|
|
|
endif
|
2013-02-15 15:46:39 +00:00
|
|
|
|
2011-11-27 19:56:54 +00:00
|
|
|
# Copy over the changelog to the device
|
|
|
|
PRODUCT_COPY_FILES += \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2012-03-04 08:37:42 +00:00
|
|
|
# Backup Tool
|
2011-11-27 19:56:54 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2015-12-17 17:24:03 +00:00
|
|
|
vendor/replicant/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
|
|
|
|
vendor/replicant/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
|
|
|
|
vendor/replicant/prebuilt/common/bin/blacklist:system/addon.d/blacklist
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2016-07-06 22:18:29 +00:00
|
|
|
# Backup Services whitelist
|
|
|
|
PRODUCT_COPY_FILES += \
|
2016-12-13 01:08:54 +00:00
|
|
|
vendor/replicant/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2014-05-09 21:24:12 +00:00
|
|
|
# Signature compatibility validation
|
|
|
|
PRODUCT_COPY_FILES += \
|
2015-12-17 17:24:03 +00:00
|
|
|
vendor/replicant/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2011-12-20 20:14:24 +00:00
|
|
|
# init.d support
|
|
|
|
PRODUCT_COPY_FILES += \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
|
|
|
|
vendor/replicant/prebuilt/common/bin/sysinit:system/bin/sysinit
|
2011-12-20 20:14:24 +00:00
|
|
|
|
2015-03-16 12:22:11 +00:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
2012-04-06 01:18:18 +00:00
|
|
|
# userinit support
|
|
|
|
PRODUCT_COPY_FILES += \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
|
2015-03-16 12:22:11 +00:00
|
|
|
endif
|
2013-07-17 15:45:20 +00:00
|
|
|
|
2012-10-18 15:38:25 +00:00
|
|
|
# CM-specific init file
|
|
|
|
PRODUCT_COPY_FILES += \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/prebuilt/common/etc/init.local.rc:root/init.cm.rc
|
2012-10-18 15:38:25 +00:00
|
|
|
|
2015-10-01 18:20:26 +00:00
|
|
|
# Copy over added mimetype supported in libcore.net.MimeUtils
|
2011-12-20 20:14:24 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2015-12-17 17:24:03 +00:00
|
|
|
vendor/replicant/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
|
2011-12-20 20:14:24 +00:00
|
|
|
|
2011-11-27 19:56:54 +00:00
|
|
|
# Enable SIP+VoIP on all targets
|
|
|
|
PRODUCT_COPY_FILES += \
|
2012-07-11 10:21:50 +00:00
|
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
|
2011-11-27 19:56:54 +00:00
|
|
|
|
2013-01-30 20:45:20 +00:00
|
|
|
# Enable wireless Xbox 360 controller support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
|
|
|
|
|
2012-03-26 00:21:32 +00:00
|
|
|
# This is CM!
|
|
|
|
PRODUCT_COPY_FILES += \
|
2013-10-28 16:29:59 +00:00
|
|
|
vendor/replicant/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
|
2012-03-26 00:21:32 +00:00
|
|
|
|
2017-01-26 23:20:39 +00:00
|
|
|
# wifi firmware
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/replicant/prebuilt/common/etc/firmware/htc_9271.fw:system/etc/firmware/htc_9271.fw
|
|
|
|
|
2019-04-09 15:39:56 +00:00
|
|
|
# Copy default EGL overrides
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/replicant/prebuilt/common/etc/libEGL_android:system/etc/libGLES_android \
|
|
|
|
vendor/replicant/prebuilt/common/etc/libEGL_mesa:system/etc/libGLES_mesa
|
|
|
|
|
|
|
|
|
2016-09-08 22:04:09 +00:00
|
|
|
# Include CM audio files
|
2016-12-13 01:08:54 +00:00
|
|
|
include vendor/replicant/config/cm_audio.mk
|
2016-09-08 22:04:09 +00:00
|
|
|
|
2015-11-03 19:39:04 +00:00
|
|
|
# Theme engine
|
2013-10-28 16:29:59 +00:00
|
|
|
include vendor/replicant/config/themes_common.mk
|
2012-05-04 09:15:56 +00:00
|
|
|
|
2016-03-15 21:17:47 +00:00
|
|
|
# CMSDK
|
2016-03-18 09:59:16 +00:00
|
|
|
include vendor/replicant/config/cmsdk_common.mk
|
2016-03-15 21:17:47 +00:00
|
|
|
|
2011-11-27 19:56:54 +00:00
|
|
|
# Required CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2016-07-25 15:45:42 +00:00
|
|
|
CMAudioService \
|
2011-12-21 00:16:01 +00:00
|
|
|
Development \
|
2015-04-21 01:20:59 +00:00
|
|
|
BluetoothExt \
|
2016-07-20 20:19:32 +00:00
|
|
|
Profiles \
|
2016-08-13 08:32:58 +00:00
|
|
|
ThemeManagerService \
|
|
|
|
WeatherManagerService
|
2011-11-27 19:56:54 +00:00
|
|
|
|
|
|
|
# Optional CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-01-04 01:55:24 +00:00
|
|
|
libemoji \
|
2016-09-08 22:04:09 +00:00
|
|
|
Terminal \
|
|
|
|
LiveWallpapersPicker
|
2011-11-27 01:31:19 +00:00
|
|
|
|
2015-12-01 21:31:45 +00:00
|
|
|
# Include librsjni explicitly to workaround GMS issue
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
librsjni
|
2011-11-27 01:31:19 +00:00
|
|
|
|
2015-12-26 08:20:25 +00:00
|
|
|
# Custom packages
|
2011-12-14 22:02:19 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
2011-12-22 16:47:22 +00:00
|
|
|
Trebuchet \
|
2014-12-09 21:29:29 +00:00
|
|
|
AudioFX \
|
2012-12-30 18:37:40 +00:00
|
|
|
CMFileManager \
|
2014-12-09 21:01:09 +00:00
|
|
|
Eleven \
|
2013-08-20 10:53:56 +00:00
|
|
|
LockClock \
|
2017-07-09 13:33:36 +00:00
|
|
|
CyanogenSetupWizard \
|
2015-11-05 01:35:12 +00:00
|
|
|
CMSettingsProvider \
|
2016-03-08 17:12:04 +00:00
|
|
|
ExactCalculator \
|
2016-03-21 17:18:29 +00:00
|
|
|
LiveLockScreenService \
|
2016-05-10 18:04:18 +00:00
|
|
|
WeatherProvider \
|
2016-06-07 22:39:13 +00:00
|
|
|
DataUsageProvider \
|
2016-09-08 22:04:09 +00:00
|
|
|
WallpaperPicker \
|
|
|
|
SoundRecorder \
|
2016-12-15 22:52:09 +00:00
|
|
|
Screencast \
|
2019-11-13 23:01:29 +00:00
|
|
|
F-DroidPrivilegedExtension
|
2011-12-14 22:02:19 +00:00
|
|
|
|
2019-11-13 23:06:04 +00:00
|
|
|
# Adhoc bundled apps
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
F-Droid \
|
|
|
|
Conversations \
|
|
|
|
OpenKeyChain \
|
|
|
|
K9 \
|
|
|
|
DocumentViewer \
|
|
|
|
VLC \
|
|
|
|
WifiPrivacyPolice \
|
|
|
|
Linphone \
|
|
|
|
SimpleGallery \
|
|
|
|
PrivacyBrowser \
|
2019-11-14 18:55:15 +00:00
|
|
|
Greyscale \
|
2019-11-13 23:06:04 +00:00
|
|
|
TorBrowser
|
|
|
|
|
2016-03-14 20:45:43 +00:00
|
|
|
# Exchange support
|
2015-04-27 23:29:56 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
2016-03-14 20:45:43 +00:00
|
|
|
Exchange2
|
2013-03-28 06:14:05 +00:00
|
|
|
|
2012-04-15 09:39:25 +00:00
|
|
|
# Extra tools in CM
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-11-24 12:05:59 +00:00
|
|
|
libsepol \
|
2012-07-05 08:20:47 +00:00
|
|
|
mke2fs \
|
2012-09-21 00:09:07 +00:00
|
|
|
tune2fs \
|
|
|
|
nano \
|
|
|
|
htop \
|
2015-11-10 14:05:18 +00:00
|
|
|
mkfs.ntfs \
|
|
|
|
fsck.ntfs \
|
|
|
|
mount.ntfs \
|
2013-09-25 16:13:25 +00:00
|
|
|
gdbserver \
|
|
|
|
micro_bench \
|
|
|
|
oprofiled \
|
|
|
|
sqlite3 \
|
2015-11-14 20:04:48 +00:00
|
|
|
strace \
|
2016-09-08 22:04:09 +00:00
|
|
|
pigz \
|
|
|
|
7z \
|
|
|
|
lib7z \
|
|
|
|
bash \
|
|
|
|
bzip2 \
|
|
|
|
curl \
|
|
|
|
powertop \
|
|
|
|
unzip \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
zip
|
2012-04-15 09:39:25 +00:00
|
|
|
|
2016-08-08 06:21:29 +00:00
|
|
|
# Custom off-mode charger
|
|
|
|
ifneq ($(WITH_CM_CHARGER),false)
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
charger_res_images \
|
|
|
|
cm_charger_res_images \
|
|
|
|
font_log.png \
|
|
|
|
libhealthd.cm
|
|
|
|
endif
|
2012-04-15 09:39:25 +00:00
|
|
|
|
2016-08-08 06:21:29 +00:00
|
|
|
# ExFAT support
|
2015-11-09 19:35:41 +00:00
|
|
|
WITH_EXFAT ?= true
|
|
|
|
ifeq ($(WITH_EXFAT),true)
|
|
|
|
TARGET_USES_EXFAT := true
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-07-06 11:07:56 +00:00
|
|
|
mount.exfat \
|
|
|
|
fsck.exfat \
|
2015-11-09 19:35:41 +00:00
|
|
|
mkfs.exfat
|
|
|
|
endif
|
2012-04-15 09:39:25 +00:00
|
|
|
|
2012-07-19 10:34:25 +00:00
|
|
|
# Openssh
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
scp \
|
|
|
|
sftp \
|
|
|
|
ssh \
|
|
|
|
sshd \
|
|
|
|
sshd_config \
|
|
|
|
ssh-keygen \
|
2012-08-19 12:00:04 +00:00
|
|
|
start-ssh
|
|
|
|
|
|
|
|
# rsync
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
rsync
|
2012-07-19 10:34:25 +00:00
|
|
|
|
2014-06-10 17:06:48 +00:00
|
|
|
# Stagefright FFMPEG plugin
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-07-08 16:53:12 +00:00
|
|
|
libffmpeg_extractor \
|
|
|
|
libffmpeg_omx \
|
2015-06-18 09:22:35 +00:00
|
|
|
media_codecs_ffmpeg.xml
|
2014-06-10 17:06:48 +00:00
|
|
|
|
2015-07-08 16:53:12 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
media.sf.omx-plugin=libffmpeg_omx.so \
|
|
|
|
media.sf.extractor-plugin=libffmpeg_extractor.so
|
|
|
|
|
2013-09-25 16:13:25 +00:00
|
|
|
# These packages are excluded from user builds
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-11-06 20:41:34 +00:00
|
|
|
procmem \
|
2016-12-28 06:30:35 +00:00
|
|
|
procrank
|
|
|
|
|
|
|
|
# Conditionally build in su
|
|
|
|
ifeq ($(WITH_SU),true)
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-12-21 14:49:06 +00:00
|
|
|
su
|
2016-01-02 17:20:40 +00:00
|
|
|
endif
|
2016-12-28 06:30:35 +00:00
|
|
|
endif
|
2013-09-25 16:13:25 +00:00
|
|
|
|
2016-03-18 09:59:16 +00:00
|
|
|
DEVICE_PACKAGE_OVERLAYS += vendor/replicant/overlay/common
|
2012-05-07 05:49:33 +00:00
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
ifeq ($(USE_OPENGL_RENDERER),true)
|
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/opengl
|
|
|
|
else
|
|
|
|
BOARD_EGL_CFG := vendor/replicant/prebuilt/softwaregl/configs/egl.cfg
|
2013-09-24 16:58:56 +00:00
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.softwaregl=1
|
2016-12-11 12:24:00 +00:00
|
|
|
# use Android's software renderer by default
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.libagl=1
|
2012-05-07 05:49:33 +00:00
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/softwaregl
|
2012-05-07 05:49:33 +00:00
|
|
|
endif
|
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
PRODUCT_VERSION_MAJOR = 6
|
|
|
|
PRODUCT_VERSION_MINOR = 0
|
|
|
|
PRODUCT_VERSION_MAINTENANCE = 1
|
2013-12-13 17:04:14 +00:00
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
REPLICANT_VERSION := "replicant-6.0"
|
2012-02-23 22:07:44 +00:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2015-12-21 14:49:06 +00:00
|
|
|
ro.cm.version=$(REPLICANT_VERSION) \
|
|
|
|
ro.modversion=$(REPLICANT_VERSION)
|
2012-11-13 10:42:11 +00:00
|
|
|
|
2013-10-23 19:56:56 +00:00
|
|
|
-include vendor/cm-priv/keys/keys.mk
|
|
|
|
|
2015-12-21 14:49:06 +00:00
|
|
|
CM_VERSION := $(REPLICANT_VERSION)
|
|
|
|
CM_DISPLAY_VERSION := $(REPLICANT_VERSION)
|
2014-01-09 10:25:31 +00:00
|
|
|
|
2014-01-24 17:58:36 +00:00
|
|
|
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
|
|
|
|
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
|
2014-01-09 10:25:31 +00:00
|
|
|
ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
|
|
|
|
ifndef TARGET_VENDOR_RELEASE_BUILD_ID
|
|
|
|
ifneq ($(CM_EXTRAVERSION),)
|
2014-02-16 17:15:07 +00:00
|
|
|
# Remove leading dash from CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
|
2014-01-09 10:25:31 +00:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
|
|
|
|
else
|
2014-02-16 17:15:07 +00:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
|
2014-01-09 10:25:31 +00:00
|
|
|
endif
|
|
|
|
else
|
2014-02-16 17:15:07 +00:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
|
2014-01-09 10:25:31 +00:00
|
|
|
endif
|
2016-08-06 19:47:23 +00:00
|
|
|
ifeq ($(CM_VERSION_MAINTENANCE),0)
|
2016-07-14 22:42:08 +00:00
|
|
|
CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
|
|
|
|
else
|
2016-08-06 19:47:23 +00:00
|
|
|
CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
|
2016-07-14 22:42:08 +00:00
|
|
|
endif
|
|
|
|
endif
|
2014-01-09 10:25:31 +00:00
|
|
|
endif
|
2014-01-11 16:00:16 +00:00
|
|
|
endif
|
2013-10-29 21:26:32 +00:00
|
|
|
|
2014-01-09 10:25:31 +00:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.display.version=$(CM_DISPLAY_VERSION)
|
2012-05-07 05:49:33 +00:00
|
|
|
|
2014-01-31 19:59:56 +00:00
|
|
|
-include $(WORKSPACE)/build_env/image-auto-bits.mk
|
2013-12-08 06:04:17 +00:00
|
|
|
|
|
|
|
-include vendor/cyngn/product.mk
|
2012-11-13 10:42:11 +00:00
|
|
|
|
2014-12-17 22:41:28 +00:00
|
|
|
$(call prepend-product-if-exists, vendor/extra/product.mk)
|