aboutsummaryrefslogtreecommitdiff
path: root/device.mk
diff options
context:
space:
mode:
Diffstat (limited to 'device.mk')
-rw-r--r--device.mk152
1 files changed, 94 insertions, 58 deletions
diff --git a/device.mk b/device.mk
index 1747faa..7f7fa4e 100644
--- a/device.mk
+++ b/device.mk
@@ -14,6 +14,55 @@
# limitations under the License.
#
+DEVICE_PATH := device/google/shamrock
+
+$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
+$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
+
+$(call inherit-product-if-exists, vendor/google/shamrock/shamrock-vendor.mk)
+
+# Overlay
+DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay
+
+# Boot animation
+TARGET_SCREEN_HEIGHT := 1920
+TARGET_SCREEN_WIDTH := 1080
+TARGET_BOOTANIMATION_HALF_RES := true
+
+# Screen Density
+PRODUCT_AAPT_CONFIG := normal
+PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+
+# Permissions
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
+ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
+ frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
+ frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
+ 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.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.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.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.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.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.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
+ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
+ frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
+ frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
+ frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
+ 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.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
+ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
+ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
+ frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
+ frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:system/etc/permissions/android.hardware.vulkan.level-0.xml \
+ frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version-1_0_3.xml \
+ $(DEVICE_PATH)/configs/com.qualcomm.location.xml:system/etc/permissions/com.qualcomm.location.xml
+
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
@@ -26,19 +75,16 @@ PRODUCT_PACKAGES += \
libtinycompress \
tinymix
+# Audio Configurations
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
- frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml
-
-# Bluetooth
-PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
- frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
-
-# Boot animation
-TARGET_SCREEN_HEIGHT := 1920
-TARGET_SCREEN_WIDTH := 1080
-TARGET_BOOTANIMATION_HALF_RES := true
+ $(DEVICE_PATH)/audio/audio_effects.conf:system/etc/audio_effects.conf \
+ $(DEVICE_PATH)/audio/audio_output_policy.conf:system/etc/audio_output_policy.conf \
+ $(DEVICE_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \
+ $(DEVICE_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
+ $(DEVICE_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml \
+ $(DEVICE_PATH)/audio/mixer_paths_l9300.xml:system/etc/mixer_paths_l9300.xml \
+ $(DEVICE_PATH)/audio/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
+ $(DEVICE_PATH)/audio/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml
# Camera
PRODUCT_PACKAGES += \
@@ -46,16 +92,10 @@ PRODUCT_PACKAGES += \
libmm-qcamera \
Camera2
-PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
- frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml
-
-
# Charger
PRODUCT_PACKAGES += \
charger_res_images
-
# Display
PRODUCT_PACKAGES += \
copybit.msm8952 \
@@ -64,12 +104,6 @@ PRODUCT_PACKAGES += \
libtinyxml \
memtrack.msm8952
-PRODUCT_AAPT_CONFIG := normal
-PRODUCT_AAPT_PREF_CONFIG := xxhdpi
-
-$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
-$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
-
# Init scripts
PRODUCT_PACKAGES += \
fstab.qcom \
@@ -79,7 +113,7 @@ PRODUCT_PACKAGES += \
init.qcom.usb.rc \
init.qcom.power.rc \
init.recovery.qcom.rc \
- ueventd.qcom.rc \
+ ueventd.qcom.rc
# IPv6
PRODUCT_PACKAGES += \
@@ -88,12 +122,21 @@ PRODUCT_PACKAGES += \
libebtc
# GPS
-
PRODUCT_PACKAGES += \
gps.msm8952
+# Gps Configurations
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
+ $(DEVICE_PATH)/gps/flp.conf:system/etc/flp.conf \
+ $(DEVICE_PATH)/gps/gps.conf:system/etc/gps.conf \
+ $(DEVICE_PATH)/gps/izat.conf:system/etc/izat.conf \
+ $(DEVICE_PATH)/gps/lowi.conf:system/etc/lowi.conf \
+ $(DEVICE_PATH)/gps/sap.conf:system/etc/sap.conf
+
+# Keylayout
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/keylayout/cyttsp4_btn.kl:system/usr/keylayout/cyttsp4_btn.kl \
+ $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
# Keystore
ifneq ($(TARGET_PROVIDES_KEYMASTER),true)
@@ -123,8 +166,10 @@ PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
-# Overlays
-DEVICE_PACKAGE_OVERLAYS += device/google/shamrock/overlay
+PRODUCT_COPY_FILES += \
+ $(DEVICE_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
+ $(DEVICE_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
+ $(DEVICE_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
# Power HAL
PRODUCT_PACKAGES += \
@@ -134,12 +179,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
librecovery_updater_cm
-# RIL
-PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
- frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
- frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
-
+# Radio
PRODUCT_PACKAGES += \
librmnetctl \
libxml2 \
@@ -148,27 +188,26 @@ PRODUCT_PACKAGES += \
PRODUCT_BOOT_JARS += \
telephony-ext
+# Radio Configurations
+PRODUCT_COPY_FILES += \
+ $(DEVICE_PATH)/configs/data/dsi_config.xml:system/etc/data/dsi_config.xml \
+ $(DEVICE_PATH)/configs/data/netmgr_config.xml:system/etc/data/netmgr_config.xml \
+ $(DEVICE_PATH)/configs/data/qmi_config.xml:system/etc/data/qmi_config.xml
+
# Sensors
PRODUCT_PACKAGES += \
sensors.msm8952
+# Sensor Configurations
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.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.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.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
+ $(LOCAL_PATH)/sensors/hals.conf:system/etc/sensors/hals.conf \
+ $(LOCAL_PATH)/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf
-# USB
+# Thermal
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
+ $(DEVICE_PATH)/configs/thermal-engine.conf:system/etc/thermal-engine.conf
# Wlan
-PRODUCT_COPY_FILES += \
- 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
-
PRODUCT_PACKAGES += \
libqsap_sdk \
libQWiFiSoftApCfg \
@@ -177,15 +216,12 @@ PRODUCT_PACKAGES += \
wpa_supplicant \
wpa_supplicant.conf
+# Wlan Configurations
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
-
-# Other Permissions
-PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
- frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
- frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
- frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
-
-# Include vendor blobs
-$(call inherit-product-if-exists, vendor/google/shamrock/shamrock-vendor.mk)
+ $(DEVICE_PATH)/configs/sec_config:system/etc/sec_config \
+ $(DEVICE_PATH)/wifi/hostapd.accept:system/etc/hostapd/hostapd.accept \
+ $(DEVICE_PATH)/wifi/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
+ $(DEVICE_PATH)/wifi/hostapd.deny:system/etc/hostapd/hostapd.deny \
+ $(DEVICE_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
+ $(DEVICE_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
+ $(DEVICE_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini