Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 1 | PRODUCT_BRAND ?= bliss |
Ricardo Cerqueira | 6ed03ff | 2011-11-28 16:37:47 +0000 | [diff] [blame] | 2 | |
Steve Kondik | ba1ca33 | 2012-08-21 02:18:40 -0700 | [diff] [blame] | 3 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
Steve Kondik | ba1ca33 | 2012-08-21 02:18:40 -0700 | [diff] [blame] | 4 | # determine the smaller dimension |
| 5 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 6 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 7 | echo $(TARGET_SCREEN_WIDTH); \ |
| 8 | else \ |
| 9 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 10 | fi ) |
| 11 | |
| 12 | # get a sorted list of the sizes |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 13 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation)) |
Steve Kondik | ba1ca33 | 2012-08-21 02:18:40 -0700 | [diff] [blame] | 14 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 15 | |
| 16 | # find the appropriate size and set |
| 17 | define check_and_set_bootanimation |
| 18 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 19 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 20 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 21 | echo $(1); \ |
| 22 | exit 0; \ |
| 23 | fi; |
| 24 | fi; |
| 25 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 26 | endef |
| 27 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 28 | |
Steven Luo | 367e648 | 2014-01-30 12:51:04 -0800 | [diff] [blame] | 29 | ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true) |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 30 | PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip |
Steven Luo | 367e648 | 2014-01-30 12:51:04 -0800 | [diff] [blame] | 31 | else |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 32 | PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip |
Steve Kondik | a894575 | 2012-03-14 00:10:33 -0700 | [diff] [blame] | 33 | endif |
Steven Luo | 367e648 | 2014-01-30 12:51:04 -0800 | [diff] [blame] | 34 | endif |
Steve Kondik | a894575 | 2012-03-14 00:10:33 -0700 | [diff] [blame] | 35 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 36 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 37 | |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 38 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
| 39 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 40 | ro.com.google.clientidbase=android-google |
| 41 | else |
| 42 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 43 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 44 | endif |
| 45 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 46 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 47 | keyguard.no_require_sim=true \ |
| 48 | ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \ |
| 49 | ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \ |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 50 | ro.com.android.wifi-watchlist=GoogleGuest \ |
| 51 | ro.setupwizard.enterprise_mode=1 \ |
| 52 | ro.com.android.dateformat=MM-dd-yyyy \ |
| 53 | ro.com.android.dataroaming=false |
| 54 | |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 55 | PRODUCT_PROPERTY_OVERRIDES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 56 | ro.build.selinux=1 |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 57 | |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 58 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 59 | # Thank you, please drive thru! |
| 60 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 61 | endif |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 62 | |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 63 | ifneq ($(TARGET_BUILD_VARIANT),eng) |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 64 | # Enable ADB authentication |
| 65 | ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 66 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 67 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 68 | # Backup Tool |
Steve Kondik | bc68cf2 | 2013-10-06 22:41:52 -0700 | [diff] [blame] | 69 | ifneq ($(WITH_GMS),true) |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 70 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 71 | vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 72 | vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
| 73 | vendor/bliss/prebuilt/common/bin/50-bliss.sh:system/addon.d/50-bliss.sh \ |
| 74 | vendor/bliss/prebuilt/common/bin/blacklist:system/addon.d/blacklist |
Steve Kondik | bc68cf2 | 2013-10-06 22:41:52 -0700 | [diff] [blame] | 75 | endif |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 76 | |
Ricardo Cerqueira | aff5e54 | 2014-05-09 22:24:12 +0100 | [diff] [blame] | 77 | # Signature compatibility validation |
| 78 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 79 | vendor/bliss/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh |
Ricardo Cerqueira | aff5e54 | 2014-05-09 22:24:12 +0100 | [diff] [blame] | 80 | |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 81 | # init.d support |
| 82 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 83 | vendor/bliss/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ |
| 84 | vendor/bliss/prebuilt/common/bin/sysinit:system/bin/sysinit |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 85 | |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 86 | ifneq ($(TARGET_BUILD_VARIANT),user) |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 87 | # userinit support |
| 88 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 89 | vendor/bliss/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 90 | endif |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 91 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 92 | # AdAway App |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 93 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 94 | vendor/bliss/prebuilt/AdAway/AdAway.apk:system/priv-app/AdAway/AdAway.apk |
| 95 | |
| 96 | # KernelAdiutor |
| 97 | PRODUCT_COPY_FILES += \ |
| 98 | vendor/bliss/prebuilt/KernelAdiutor/KernelAdiutor.apk:system/app/KernelAdiutor/KernelAdiutor.apk |
| 99 | |
| 100 | # Bliss-specific init file |
| 101 | PRODUCT_COPY_FILES += \ |
| 102 | vendor/bliss/prebuilt/common/etc/init.local.rc:root/init.bliss.rc |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 103 | |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 104 | # Copy over added mimetype supported in libcore.net.MimeUtils |
| 105 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 106 | vendor/bliss/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 107 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 108 | # Enable SIP+VoIP on all targets |
| 109 | PRODUCT_COPY_FILES += \ |
Ricardo Cerqueira | 3ff9b6f | 2012-07-11 11:21:50 +0100 | [diff] [blame] | 110 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 111 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 112 | # Enable wireless Xbox 360 controller support |
| 113 | PRODUCT_COPY_FILES += \ |
| 114 | frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl |
| 115 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 116 | # This is Bliss! |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 117 | PRODUCT_COPY_FILES += \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 118 | vendor/bliss/config/permissions/com.bliss.android.xml:system/etc/permissions/com.bliss.android.xml |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 119 | |
Michael Bestas | c37028d | 2015-11-03 21:39:04 +0200 | [diff] [blame] | 120 | # Theme engine |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 121 | include vendor/bliss/config/themes_common.mk |
| 122 | |
| 123 | # Bliss Audio Mods |
| 124 | -include vendor/bliss/config/bliss_audio_mod.mk |
Ricardo Cerqueira | 9f75d84 | 2012-05-04 10:15:56 +0100 | [diff] [blame] | 125 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 126 | # Required CM packages |
| 127 | PRODUCT_PACKAGES += \ |
Steve Kondik | e0c297d | 2011-12-20 16:16:01 -0800 | [diff] [blame] | 128 | Development \ |
Roman Birg | 52f92f0 | 2015-04-20 18:20:59 -0700 | [diff] [blame] | 129 | BluetoothExt \ |
| 130 | Profiles |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 131 | |
| 132 | # Optional CM packages |
| 133 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | 117984f | 2015-01-04 01:55:24 +0000 | [diff] [blame] | 134 | libemoji \ |
| 135 | Terminal |
Koushik Dutta | 8387c32 | 2011-11-26 17:31:19 -0800 | [diff] [blame] | 136 | |
Steve Kondik | dac3785 | 2015-12-01 13:31:45 -0800 | [diff] [blame] | 137 | # Include librsjni explicitly to workaround GMS issue |
| 138 | PRODUCT_PACKAGES += \ |
| 139 | librsjni |
| 140 | |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 141 | # Custom CM packages |
| 142 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | 50dda4c | 2013-11-05 15:26:20 +0000 | [diff] [blame] | 143 | Launcher3 \ |
Michael Bestas | 8deec44 | 2013-12-13 04:54:49 +0200 | [diff] [blame] | 144 | Trebuchet \ |
DvTonder | f007403 | 2012-12-30 13:37:40 -0500 | [diff] [blame] | 145 | CMFileManager \ |
Steve Kondik | fd3b0e5 | 2014-12-09 13:01:09 -0800 | [diff] [blame] | 146 | Eleven \ |
Giulio Cervera | b6f18ff | 2013-08-20 12:53:56 +0200 | [diff] [blame] | 147 | LockClock \ |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 148 | CMSettingsProvider |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 149 | |
Adnan Begovic | b53c503 | 2015-04-27 16:29:56 -0700 | [diff] [blame] | 150 | # CM Platform Library |
| 151 | PRODUCT_PACKAGES += \ |
Adnan Begovic | aaac132 | 2015-05-05 18:29:29 -0700 | [diff] [blame] | 152 | org.cyanogenmod.platform-res \ |
Adnan Begovic | b53c503 | 2015-04-27 16:29:56 -0700 | [diff] [blame] | 153 | org.cyanogenmod.platform \ |
| 154 | org.cyanogenmod.platform.xml |
Adnan Begovic | b53c503 | 2015-04-27 16:29:56 -0700 | [diff] [blame] | 155 | |
Ricardo Cerqueira | 1780956 | 2013-08-08 00:49:44 +0100 | [diff] [blame] | 156 | # CM Hardware Abstraction Framework |
| 157 | PRODUCT_PACKAGES += \ |
| 158 | org.cyanogenmod.hardware \ |
| 159 | org.cyanogenmod.hardware.xml |
| 160 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 161 | # Other packages |
| 162 | PRODUCT_PACKAGES += \ |
| 163 | BlissOTA \ |
blueyes27 | baf6791 | 2015-12-23 21:48:05 -0800 | [diff] [blame] | 164 | OmniSwitch |
Dark Eyes | 15956a0 | 2015-12-26 23:23:20 -0500 | [diff] [blame^] | 165 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 166 | # Extra tools in Bliss |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 167 | PRODUCT_PACKAGES += \ |
Tanguy Pruvot | ac602b4 | 2013-11-24 13:05:59 +0100 | [diff] [blame] | 168 | libsepol \ |
Steve Kondik | 0898028 | 2012-07-05 01:20:47 -0700 | [diff] [blame] | 169 | mke2fs \ |
Steve Kondik | 1949eb5 | 2012-09-20 17:09:07 -0700 | [diff] [blame] | 170 | tune2fs \ |
Steve Kondik | 1949eb5 | 2012-09-20 17:09:07 -0700 | [diff] [blame] | 171 | nano \ |
| 172 | htop \ |
Steve Kondik | 49852a7 | 2015-11-10 15:05:18 +0100 | [diff] [blame] | 173 | mkfs.ntfs \ |
| 174 | fsck.ntfs \ |
| 175 | mount.ntfs \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 176 | gdbserver \ |
| 177 | micro_bench \ |
| 178 | oprofiled \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 179 | sqlite3 \ |
Steve Kondik | 243e70b | 2015-11-14 21:04:48 +0100 | [diff] [blame] | 180 | strace \ |
| 181 | pigz |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 182 | |
Scott Mertz | 2911a0e | 2015-11-09 11:35:41 -0800 | [diff] [blame] | 183 | WITH_EXFAT ?= true |
| 184 | ifeq ($(WITH_EXFAT),true) |
| 185 | TARGET_USES_EXFAT := true |
| 186 | PRODUCT_PACKAGES += \ |
| 187 | mount.exfat \ |
| 188 | fsck.exfat \ |
| 189 | mkfs.exfat |
| 190 | endif |
| 191 | |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 192 | # Openssh |
| 193 | PRODUCT_PACKAGES += \ |
| 194 | scp \ |
| 195 | sftp \ |
| 196 | ssh \ |
| 197 | sshd \ |
| 198 | sshd_config \ |
| 199 | ssh-keygen \ |
Chirayu Desai | 4bacf67 | 2012-08-19 17:30:04 +0530 | [diff] [blame] | 200 | start-ssh |
| 201 | |
| 202 | # rsync |
| 203 | PRODUCT_PACKAGES += \ |
| 204 | rsync |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 205 | |
Michael Bestas | 7d5d16d | 2014-06-10 20:06:48 +0300 | [diff] [blame] | 206 | # Stagefright FFMPEG plugin |
| 207 | PRODUCT_PACKAGES += \ |
Steve Kondik | 7c96869 | 2015-07-08 09:53:12 -0700 | [diff] [blame] | 208 | libffmpeg_extractor \ |
| 209 | libffmpeg_omx \ |
Steve Kondik | 5970250 | 2015-06-18 02:22:35 -0700 | [diff] [blame] | 210 | media_codecs_ffmpeg.xml |
Michael Bestas | 7d5d16d | 2014-06-10 20:06:48 +0300 | [diff] [blame] | 211 | |
Steve Kondik | 7c96869 | 2015-07-08 09:53:12 -0700 | [diff] [blame] | 212 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 213 | media.sf.omx-plugin=libffmpeg_omx.so \ |
| 214 | media.sf.extractor-plugin=libffmpeg_extractor.so |
| 215 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 216 | # These packages are excluded from user builds |
| 217 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 218 | PRODUCT_PACKAGES += \ |
Steve Kondik | 275701b | 2013-11-06 12:41:34 -0800 | [diff] [blame] | 219 | procmem \ |
| 220 | procrank \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 221 | su |
repo Shareef Ali | 4bcfc31 | 2014-12-29 17:52:04 -0600 | [diff] [blame] | 222 | endif |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 223 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 224 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 225 | persist.sys.root_access=0 |
| 226 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 227 | PRODUCT_PACKAGE_OVERLAYS += vendor/bliss/overlay/common |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 228 | |
Brint E. Kriebel | e0e8c27 | 2014-05-21 23:37:52 -0700 | [diff] [blame] | 229 | # by default, do not update the recovery with system updates |
| 230 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false |
| 231 | |
Dark Eyes | 4345054 | 2015-12-11 22:15:28 -0500 | [diff] [blame] | 232 | # BLISS Versioning System |
| 233 | -include vendor/bliss/config/versions.mk |
| 234 | |
| 235 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 236 | BUILD_DISPLAY_ID=$(BUILD_ID) \ |
| 237 | ro.bliss.version=$(BLISS_VERSION) |
| 238 | |
| 239 | # Team Bliss OTA Updater |
| 240 | ifeq ($(BLISS_DONATE),) |
| 241 | BLISS_DONATE =: http://goo.gl/31q5YL |
| 242 | endif |
| 243 | BLISS_OTA_BUILDDIR := Official |
| 244 | ifeq ($(BLISS_BUILDTYPE),NIGHTLY) |
| 245 | BLISS_OTA_BUILDDIR := Nightlies |
| 246 | endif |
| 247 | BLISS_BASE_URL := http://downloads.blissroms.com/Bliss |
| 248 | ifeq ($(BLISS_DEVICE_URL),) |
| 249 | BLISS_DEVICE_URL := $(BLISS_BASE_URL)/$(BLISS_OTA_BUILDDIR)/$(TARGET_DEVICE) |
| 250 | endif |
| 251 | BLISS_OTA_VERSION := $(shell date +%Y%m%d%H) |
| 252 | BLISS_ROM_NAME := Bliss |
| 253 | |
| 254 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 255 | ro.ota.systemname=$(BLISS_ROM_NAME) \ |
| 256 | ro.ota.version=$(BLISS_OTA_VERSION) \ |
| 257 | ro.ota.device=$(TARGET_DEVICE) \ |
| 258 | ro.ota.manifest=$(BLISS_DEVICE_URL)/ota$(BLISS_OTA_XMLVER).xml |
| 259 | |
| 260 | export BLISS_OTA_ROM=$(BLISS_ROM_NAME) |
| 261 | export BLISS_OTA_VERNAME=$(BLISS_VERSION) |
| 262 | export BLISS_OTA_VER=$(BLISS_OTA_VERSION) |
| 263 | export BLISS_OTA_URL=$(BLISS_DEVICE_URL)/$(BLISS_VERSION).zip |
| 264 | |
Dark Eyes | 996981b | 2015-12-19 14:38:01 -0500 | [diff] [blame] | 265 | ifeq ($(OTA_64),true) |
| 266 | TARGET_ARCH_ABI := arm64-v8a |
| 267 | TARGET_LIB_DIR := lib64 |
| 268 | else |
| 269 | TARGET_ARCH_ABI := armeabi-v7a |
| 270 | TARGET_LIB_DIR := lib |
| 271 | endif |
| 272 | |
| 273 | PRODUCT_COPY_FILES += \ |
| 274 | vendor/bliss/prebuilt/$(TARGET_LIB_DIR)/$(TARGET_ARCH_ABI)/libbypass.so:system/$(TARGET_LIB_DIR)/libbypass.so |
| 275 | |
Akhil Narang | 1fd578a | 2015-11-23 00:23:38 +0530 | [diff] [blame] | 276 | # SuperSU |
| 277 | PRODUCT_COPY_FILES += \ |
| 278 | vendor/bliss/prebuilt/common/UPDATE-SuperSU.zip:system/addon.d/UPDATE-SuperSU.zip \ |
| 279 | vendor/bliss/prebuilt/common/etc/init.d/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon |
| 280 | |
Adnan Begovic | b2bd321 | 2015-06-04 19:23:35 -0700 | [diff] [blame] | 281 | ifndef CM_PLATFORM_SDK_VERSION |
| 282 | # This is the canonical definition of the SDK version, which defines |
| 283 | # the set of APIs and functionality available in the platform. It |
| 284 | # is a single integer that increases monotonically as updates to |
| 285 | # the SDK are released. It should only be incremented when the APIs for |
| 286 | # the new release are frozen (so that developers don't write apps against |
| 287 | # intermediate builds). |
Michael Bestas | eb83dba | 2015-10-07 18:38:03 +0300 | [diff] [blame] | 288 | CM_PLATFORM_SDK_VERSION := 4 |
Adnan Begovic | b2bd321 | 2015-06-04 19:23:35 -0700 | [diff] [blame] | 289 | endif |
| 290 | |
Adnan Begovic | 4534c7a | 2015-08-11 15:51:54 -0700 | [diff] [blame] | 291 | ifndef CM_PLATFORM_REV |
| 292 | # For internal SDK revisions that are hotfixed/patched |
| 293 | # Reset after each CM_PLATFORM_SDK_VERSION release |
| 294 | # If you are doing a release and this is NOT 0, you are almost certainly doing it wrong |
| 295 | CM_PLATFORM_REV := 0 |
| 296 | endif |
| 297 | |
Adnan Begovic | b2bd321 | 2015-06-04 19:23:35 -0700 | [diff] [blame] | 298 | # CyanogenMod Platform SDK Version |
| 299 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 300 | ro.cm.build.version.plat.sdk=$(CM_PLATFORM_SDK_VERSION) |
| 301 | |
Adnan Begovic | 4534c7a | 2015-08-11 15:51:54 -0700 | [diff] [blame] | 302 | # CyanogenMod Platform Internal |
| 303 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 304 | ro.cm.build.version.plat.rev=$(CM_PLATFORM_REV) |
| 305 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 306 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Koushik Dutta | 41fd0aa | 2013-12-07 22:04:17 -0800 | [diff] [blame] | 307 | |
Chris Sarbora | 39b9aa8 | 2014-12-17 14:41:28 -0800 | [diff] [blame] | 308 | $(call prepend-product-if-exists, vendor/extra/product.mk) |