This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
device_asanti_c.mk
151 lines (127 loc) · 6.15 KB
/
device_asanti_c.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, device/moto/msm8960-common/msm8960.mk)
LOCAL_PATH := device/moto/asanti_c
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
#lights
PRODUCT_PACKAGES += \
lights.msm8960
#custom settings
PRODUCT_PACKAGES += \
PhotonQParts
#scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/scripts/init.goldfish.sh:system/etc/init.goldfish.sh \
$(LOCAL_PATH)/scripts/init.qcom.bt.sh:system/etc/init.qcom.bt.sh \
$(LOCAL_PATH)/scripts/init.qcom.coex.sh:system/etc/init.qcom.coex.sh \
$(LOCAL_PATH)/scripts/init.qcom.fm.sh:system/etc/init.qcom.fm.sh \
$(LOCAL_PATH)/scripts/init.qcom.mdm_links.sh:system/etc/init.qcom.mdm_links.sh \
$(LOCAL_PATH)/scripts/init.qcom.modem_links.sh:system/etc/init.qcom.modem_links.sh \
$(LOCAL_PATH)/scripts/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh \
$(LOCAL_PATH)/scripts/qcamerasrvwrapper.sh:system/bin/qcamerasrvwrapper.sh \
$(LOCAL_PATH)/scripts/sensorsqcomwrapper.sh:system/bin/sensorsqcomwrapper.sh \
$(LOCAL_PATH)/scripts/mount_pds.sh:system/bin/mount_pds.sh
#init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/root/ueventd.qcom.rc:root/ueventd.qcom.rc \
$(LOCAL_PATH)/root/init.mmi.usb.rc:root/init.mmi.usb.rc \
$(LOCAL_PATH)/root/init.mmi.usb.sh:root/init.mmi.usb.sh \
$(LOCAL_PATH)/root/init.msm.rc:root/init.msm.rc \
$(LOCAL_PATH)/root/init.qcom.sh:root/init.qcom.sh \
$(LOCAL_PATH)/root/init.qcom.class_core.sh:root/init.qcom.class_core.sh \
$(LOCAL_PATH)/root/init.qcom.class_main.sh:root/init.qcom.class_main.sh \
$(LOCAL_PATH)/root/init.qcom.rc:root/init.qcom.rc \
$(LOCAL_PATH)/root/fstab.qcom:root/fstab.qcom \
$(LOCAL_PATH)/root/init.target.rc:root/init.target.rc
#media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
#audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/snd_soc_msm_2x:system/etc/snd_soc_msm/snd_soc_msm_2x
#config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/vold.fstab:system/etc/vold.fstab
#wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_qcom_wlan_nv_calibration.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv_calibration.bin \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_qcom_wlan_nv_regulatory.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv_regulatory.bin
# EGL config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/egl.cfg:system/lib/egl/egl.cfg
#adreno
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/a225_pfp.fw:system/etc/firmware/a225_pfp.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/a225_pm4.fw:system/etc/firmware/a225_pm4.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/a225p5_pm4.fw:system/etc/firmware/a225p5_pm4.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/leia_pfp_470.fw:system/etc/firmware/leia_pfp_470.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/leia_pm4_470.fw:system/etc/firmware/leia_pm4_470.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/yamato_pfp.fw:system/etc/firmware/yamato_pfp.fw \
$(LOCAL_PATH)/proprietary/adreno/etc/firmware/yamato_pm4.fw:system/etc/firmware/yamato_pm4.fw \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/eglsubAndroid.so:system/lib/egl/eglsubAndroid.so \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/libEGL_adreno200.so:system/lib/egl/libEGL_adreno200.so \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/libGLESv1_CM_adreno200.so:system/lib/egl/libGLESv1_CM_adreno200.so \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/libGLESv2_adreno200.so:system/lib/egl/libGLESv2_adreno200.so \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/libGLESv2S3D_adreno200.so:system/lib/egl/libGLESv2S3D_adreno200.so \
$(LOCAL_PATH)/proprietary/adreno/lib/egl/libq3dtools_adreno200.so:system/lib/egl/libq3dtools_adreno200.so \
$(LOCAL_PATH)/proprietary/adreno/lib/libC2D2.so:system/lib/libC2D2.so \
$(LOCAL_PATH)/proprietary/adreno/lib/libc2d2_z180.so:system/lib/libc2d2_z180.so \
$(LOCAL_PATH)/proprietary/adreno/lib/libgsl.so:system/lib/libgsl.so \
$(LOCAL_PATH)/proprietary/adreno/lib/libOpenVG.so:system/lib/libOpenVG.so \
$(LOCAL_PATH)/proprietary/adreno/lib/libsc-a2xx.so:system/lib/libsc-a2xx.so
PRODUCT_LOCALES := en_US
PRODUCT_LOCALES += hdpi
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
#misc
PRODUCT_PROPERTY_OVERRIDES += \
persist.fuse_sdcard=true \
ro.usb.mtp_usbnet=0x2e32 \
ro.usb.mtp_usbnet_adb=0x2e33 \
ro.usb.cdrom=0x2e20 \
ro.usb.ms=0x2e21 \
ro.usb.ms_adb=0x2e22 \
ro.usb.ptp=0x2e30 \
ro.usb.ptp_adb=0x2e31 \
ro.hdmi.enable=true \
ro.product.model.exif=XT897
#wifi
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.qc.sub.rstrtlvl=3 \
persist.sys.qc.sub.rdump.on=1 \
persist.sys.qc.sub.rdump.max=20
# QCOM Display
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=240 \
ro.sf.compbypass.enable=1 \
dev.pm.dyn_samplingrate=1 \
debug.egl.hw=1 \
debug.sf.hw=1 \
debug.composition.type=dyn \
debug.gr.numframebuffers=3 \
persist.sys.ui.hw=true \
debug.composition.type=c2d \
debug.enabletr=0 \
ro.hwui.text_cache_width=2048
# IDC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/atmxt-i2c.idc:system/usr/idc/atmxt-i2c.idc \
$(LOCAL_PATH)/idc/qwerty2.idc:system/usr/idc/qwerty2.idc \
$(LOCAL_PATH)/idc/qwerty.idc:system/usr/idc/qwerty.idc \
$(LOCAL_PATH)/idc/keypad_8960.idc:system/usr/idc/keypad_8960.idc
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/keypad_8960.kl:system/usr/keylayout/keypad_8960.kl
# Keychars
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keychars/keypad_8960.kcm:system/usr/keychars/keypad_8960.kcm
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/gps.conf:system/etc/gps.conf \
$(call inherit-product-if-exists, vendor/moto/asanti_c/asanti_c-vendor.mk)