aboutsummaryrefslogtreecommitdiff
path: root/device.mk
diff options
context:
space:
mode:
Diffstat (limited to 'device.mk')
-rw-r--r--device.mk86
1 files changed, 36 insertions, 50 deletions
diff --git a/device.mk b/device.mk
index bd5d794..8736181 100644
--- a/device.mk
+++ b/device.mk
@@ -1,5 +1,3 @@
-# Copyright (C) 2016 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
@@ -20,8 +18,7 @@
# definition file).
#
-$(call inherit-product-if-exists, vendor/zuk/z2_plus/z2_plus-vendor.mk)
-$(call inherit-product-if-exists, device/zuk/z2_plus/vendor/copyfiles.mk)
+$(call inherit-product-if-exists, vendor/zuk/z2/z2-vendor.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
@@ -29,6 +26,7 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
+ frameworks/native/data/etc/android.hardware.audio.pro.xml:system/etc/permissions/android.hardware.audio.pro.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
@@ -39,14 +37,12 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
- frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
- frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
@@ -54,52 +50,51 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
+ frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:system/etc/permissions/android.hardware.vulkan.level.xml \
+ frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
- frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+# Device was launched with M
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.product.first_api_level=23
+
# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=8m \
- dalvik.vm.heapgrowthlimit=256m \
- dalvik.vm.heapsize=512m \
+ dalvik.vm.heapgrowthlimit=288m \
+ dalvik.vm.heapsize=768m \
dalvik.vm.heaptargetutilization=0.75 \
dalvik.vm.heapminfree=512k \
dalvik.vm.heapmaxfree=8m
PRODUCT_PROPERTY_OVERRIDES += \
- ro.hwui.texture_cache_size=96 \
- ro.hwui.layer_cache_size=64 \
- ro.hwui.r_buffer_cache_size=12 \
- ro.hwui.path_cache_size=39 \
+ ro.hwui.texture_cache_size=72 \
+ ro.hwui.layer_cache_size=48 \
+ ro.hwui.path_cache_size=32 \
ro.hwui.gradient_cache_size=1 \
- ro.hwui.drop_shadow_cache_size=7 \
+ ro.hwui.drop_shadow_cache_size=6 \
+ ro.hwui.r_buffer_cache_size=8 \
+ ro.hwui.r_buffer_cache_size=8 \
ro.hwui.texture_cache_flushrate=0.4 \
- ro.hwui.text_small_cache_width=2048 \
- ro.hwui.text_small_cache_height=2048 \
- ro.hwui.text_large_cache_width=3072 \
- ro.hwui.text_large_cache_height=2048
+ ro.hwui.text_small_cache_width=1024 \
+ ro.hwui.text_small_cache_height=1024 \
+ ro.hwui.text_large_cache_width=2048 \
+ ro.hwui.text_large_cache_height=1024
# Haters gonna hate..
PRODUCT_CHARACTERISTICS := nosdcard
-# Alipay
-PRODUCT_PACKAGES += \
- org.ifaa.android.manager
-
-PRODUCT_BOOT_JARS += \
- org.ifaa.android.manager
-
# Audio
PRODUCT_PACKAGES += \
audiod \
@@ -119,7 +114,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
- $(LOCAL_PATH)/audio/listen_platform_info.xml:system/etc/listen_platform_info.xml
+ $(LOCAL_PATH)/audio/listen_platform_info.xml:system/etc/listen_platform_info.xml
# ANT+
PRODUCT_PACKAGES += \
@@ -132,15 +127,7 @@ PRODUCT_COPY_FILES += \
# Camera
PRODUCT_PACKAGES += \
- Snap \
-
-# Gestures
-PRODUCT_PACKAGES += \
- com.cyanogenmod.keyhandler
-
-# Charger
-PRODUCT_PACKAGES += \
- charger_res_images
+ Snap
# Connectivity Engine support (CNE)
PRODUCT_PACKAGES += \
@@ -148,10 +135,6 @@ PRODUCT_PACKAGES += \
com.quicinc.cne \
services-ext
-# CNE
-PRODUCT_PACKAGES += \
- libcnefeatureconfig
-
# Display
PRODUCT_PACKAGES += \
copybit.msm8996 \
@@ -163,7 +146,7 @@ PRODUCT_PACKAGES += \
# Doze mode
PRODUCT_PACKAGES += \
- ZukDoze
+ CmDoze
# Fingerprint sensor
PRODUCT_PACKAGES += \
@@ -175,17 +158,20 @@ PRODUCT_PACKAGES += \
# GPS
PRODUCT_PACKAGES += \
- gps.msm8996 \
libcurl
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
- $(LOCAL_PATH)/gps/etc/lowi.conf:system/etc/lowi.conf \
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \
+ $(LOCAL_PATH)/gps/etc/lowi.conf:system/etc/lowi.conf \
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf
+# Graphics
+PRODUCT_PACKAGES += \
+ libsdm-disp-apis
+
# IPv6
PRODUCT_PACKAGES += \
ebtables \
@@ -206,17 +192,17 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
$(LOCAL_PATH)/keylayout/msm8996-tasha-mtp-snd-card_Button_Jack.kl:system/usr/keylayout/msm8996-tasha-mtp-snd-card_Button_Jack.kl \
- $(LOCAL_PATH)/keylayout/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl
+ $(LOCAL_PATH)/keylayout/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl
# Lights
PRODUCT_PACKAGES += \
lights.msm8996
-# Media
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/calib.cfg:system/etc/calib.cfg \
- $(LOCAL_PATH)/configs/capability.xml:system/etc/capability.xml
+# LiveDisplay native
+PRODUCT_PACKAGES += \
+ libjni_livedisplay
+# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
@@ -278,18 +264,18 @@ PRODUCT_PACKAGES += \
libQWiFiSoftApCfg \
libwpa_client \
hostapd \
- dhcpcd.conf \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/wifi/fstman.ini:system/etc/wifi/fstman.ini \
$(LOCAL_PATH)/wifi/hostapd.accept:system/etc/hostapd/hostapd.accept \
$(LOCAL_PATH)/wifi/hostapd.conf:system/etc/hostapd/hostapd_default.conf \
$(LOCAL_PATH)/wifi/hostapd.deny:system/etc/hostapd/hostapd.deny \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
- $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
+ $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
+ $(LOCAL_PATH)/wifi/fstman.ini:system/etc/wifi/fstman.ini
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat
+