Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame^] | 1 | LOCAL_PATH := device/samsung/gprimeltecan |
| 2 | $(call inherit-product-if-exists, vendor/samsung/gprimeltecan/gprimeltecan-vendor.mk) |
| 3 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) |
| 4 | |
| 5 | # Inherit from common |
| 6 | $(call inherit-product, device/samsung/qcom-common/qcom-common.mk) |
| 7 | |
| 8 | # Also get non-open-source specific aspects if available |
| 9 | $(call inherit-product-if-exists, vendor/samsung/gprimeltecan/gprimeltecan-common-vendor.mk) |
| 10 | |
| 11 | # Common overlay |
| 12 | DEVICE_PACKAGE_OVERLAYS += device/samsung/gprimeltecan/overlay |
| 13 | |
| 14 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 15 | LOCAL_KERNEL := device/samsung/gprimeltecan/kernel |
| 16 | else |
| 17 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 18 | endif |
| 19 | |
| 20 | PRODUCT_COPY_FILES += \ |
| 21 | $(LOCAL_KERNEL):kernel |
| 22 | |
| 23 | #Android EGL implementation |
| 24 | PRODUCT_PACKAGES += libGLES_android |
| 25 | |
| 26 | PRODUCT_PACKAGES += libtime_genoff |
| 27 | |
| 28 | # ANT+ |
| 29 | PRODUCT_PACKAGES += \ |
| 30 | AntHalService \ |
| 31 | antradio_app \ |
| 32 | com.dsi.ant.antradio_library \ |
| 33 | libantradio |
| 34 | |
| 35 | # Audio |
| 36 | PRODUCT_PACKAGES += \ |
| 37 | audio.a2dp.default \ |
| 38 | audio.primary.msm8916 \ |
| 39 | audio.r_submix.default \ |
| 40 | audio.usb.default \ |
| 41 | audiod \ |
| 42 | libaudio-resampler \ |
| 43 | libqcompostprocbundle \ |
| 44 | libqcomvisualizer \ |
| 45 | libqcomvoiceprocessing \ |
| 46 | tinymix |
| 47 | |
| 48 | # Audio configuration |
| 49 | PRODUCT_COPY_FILES += \ |
| 50 | $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \ |
| 51 | $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \ |
| 52 | $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \ |
| 53 | $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \ |
| 54 | $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \ |
| 55 | $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \ |
| 56 | $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \ |
| 57 | $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \ |
| 58 | $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \ |
| 59 | $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml |
| 60 | |
| 61 | # Boot jars |
| 62 | PRODUCT_BOOT_JARS += \ |
| 63 | qcom.fmradio \ |
| 64 | # oem-services \ |
| 65 | tcmiface \ |
| 66 | qcmediaplayer |
| 67 | |
| 68 | # Connectivity Engine support |
| 69 | PRODUCT_PACKAGES += \ |
| 70 | libcnefeatureconfig |
| 71 | |
| 72 | # Display |
| 73 | PRODUCT_PACKAGES += \ |
| 74 | copybit.msm8916 \ |
| 75 | gralloc.msm8916 \ |
| 76 | hwcomposer.msm8916 \ |
| 77 | libtinyxml \ |
| 78 | memtrack.msm8916 |
| 79 | |
| 80 | # Ebtables |
| 81 | PRODUCT_PACKAGES += \ |
| 82 | ebtables \ |
| 83 | ethertypes \ |
| 84 | libebtc |
| 85 | |
| 86 | # FM |
| 87 | PRODUCT_PACKAGES += \ |
| 88 | # FM2 \ |
| 89 | # FMRecord \ |
| 90 | libqcomfm_jni \ |
| 91 | qcom.fmradio |
| 92 | |
| 93 | # INIT |
| 94 | PRODUCT_PACKAGES += \ |
| 95 | fstab.qcom \ |
| 96 | init.carrier.rc \ |
| 97 | init.class_main.sh \ |
| 98 | init.mdm.sh \ |
| 99 | init.qcom.bms.sh \ |
| 100 | init.qcom.class_core.sh \ |
| 101 | init.qcom.early_boot.sh \ |
| 102 | init.qcom.factory.sh \ |
| 103 | init.qcom.syspart_fixup.sh \ |
| 104 | init.qcom.usb.rc \ |
| 105 | init.qcom.usb.sh \ |
| 106 | init.qcom.rc \ |
| 107 | init.qcom.sh \ |
| 108 | init.target.rc \ |
| 109 | ueventd.qcom.rc \ |
| 110 | twrp.fstab |
| 111 | |
| 112 | # Keylayout |
| 113 | PRODUCT_COPY_FILES += \ |
| 114 | $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \ |
| 115 | $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| 116 | $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \ |
| 117 | $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl |
| 118 | |
| 119 | # Keystore |
| 120 | PRODUCT_PACKAGES += \ |
| 121 | keystore.msm8916 |
| 122 | |
| 123 | # libhealthd.qcom |
| 124 | PRODUCT_PACKAGES += \ |
| 125 | libhealthd |
| 126 | |
| 127 | # Lights |
| 128 | PRODUCT_PACKAGES += \ |
| 129 | lights.msm8916 |
| 130 | |
| 131 | # Live Wallpapers |
| 132 | PRODUCT_PACKAGES += \ |
| 133 | librs_jni |
| 134 | |
| 135 | # GPS |
| 136 | PRODUCT_PACKAGES += \ |
| 137 | gps.msm8916 |
| 138 | |
| 139 | PRODUCT_COPY_FILES += \ |
| 140 | $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \ |
| 141 | $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \ |
| 142 | $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \ |
| 143 | $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf |
| 144 | |
| 145 | # macloader |
| 146 | PRODUCT_PACKAGES += macloader |
| 147 | |
| 148 | # Media |
| 149 | PRODUCT_COPY_FILES += \ |
| 150 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ |
| 151 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ |
| 152 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ |
| 153 | # frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \ |
| 154 | $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \ |
| 155 | $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml |
| 156 | |
| 157 | # MSM IRQ Balancer configuration file |
| 158 | PRODUCT_COPY_FILES += \ |
| 159 | $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf |
| 160 | |
| 161 | # Misc |
| 162 | PRODUCT_PACKAGES += \ |
| 163 | curl \ |
| 164 | libbson \ |
| 165 | libcurl \ |
| 166 | tcpdump |
| 167 | |
| 168 | # OMX |
| 169 | PRODUCT_PACKAGES += \ |
| 170 | libdashplayer \ |
| 171 | libdivxdrmdecrypt \ |
| 172 | libmm-omxcore \ |
| 173 | libOmxAacEnc \ |
| 174 | libOmxAmrEnc \ |
| 175 | libOmxCore \ |
| 176 | libOmxEvrcEnc \ |
| 177 | libOmxQcelp13Enc \ |
| 178 | libOmxSwVencMpeg4 \ |
| 179 | libOmxVdec \ |
| 180 | libOmxVdecHevc \ |
| 181 | libOmxVenc \ |
| 182 | libOmxVidEnc \ |
| 183 | libOmxVdpp \ |
| 184 | libstagefrighthw \ |
| 185 | qcmediaplayer |
| 186 | |
| 187 | # Overlay |
| 188 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay |
| 189 | |
| 190 | # Permissions |
| 191 | PRODUCT_COPY_FILES += \ |
| 192 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ |
| 193 | frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ |
| 194 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ |
| 195 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 196 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 197 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 198 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ |
| 199 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 200 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 201 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 202 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 203 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 204 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 205 | frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \ |
| 206 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ |
| 207 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 208 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 209 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| 210 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
| 211 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 212 | frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \ |
| 213 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| 214 | frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml |
| 215 | |
| 216 | # Power HAL |
| 217 | PRODUCT_PACKAGES += \ |
| 218 | power.msm8916 |
| 219 | |
| 220 | # Prebuilt |
| 221 | PRODUCT_COPY_FILES += \ |
| 222 | $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \ |
| 223 | $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \ |
| 224 | $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml |
| 225 | |
| 226 | # Properties |
| 227 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 228 | ro.use_data_netmgrd=false \ |
| 229 | dalvik.vm.heapgrowthlimit=128m \ |
| 230 | ro.security.icd.flagmode=single \ |
| 231 | ro.vendor.extension_library=libqti-perfd-client.so \ |
| 232 | persist.radio.apm_sim_not_pwdn=1 \ |
| 233 | persist.gps.qc_nlp_in_use=1 \ |
| 234 | persist.loc.nlp_name=com.qualcomm.location \ |
| 235 | ro.gps.agps_provider=1 \ |
| 236 | ro.pip.gated=0 |
| 237 | |
| 238 | # Ril |
| 239 | PRODUCT_PACKAGES += \ |
| 240 | libxml2 |
| 241 | |
| 242 | # Screen density |
| 243 | PRODUCT_AAPT_CONFIG := normal hdpi xhdpi |
| 244 | PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| 245 | |
| 246 | # security config |
| 247 | PRODUCT_COPY_FILES += \ |
| 248 | $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config |
| 249 | |
| 250 | # Terminal |
| 251 | PRODUCT_PACKAGES += Terminal |
| 252 | |
| 253 | # USB |
| 254 | PRODUCT_PACKAGES += \ |
| 255 | com.android.future.usb.accessory |
| 256 | |
| 257 | # Wifi |
| 258 | PRODUCT_COPY_FILES += \ |
| 259 | $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \ |
| 260 | $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ |
| 261 | $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ |
| 262 | $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \ |
| 263 | $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \ |
| 264 | $(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin |
| 265 | |
| 266 | PRODUCT_PACKAGES += \ |
| 267 | hostapd \ |
| 268 | hostapd_cli \ |
| 269 | libQWiFiSoftApCfg \ |
| 270 | libqsap_sdk \ |
| 271 | libwpa_client \ |
| 272 | wcnss_service \ |
| 273 | wpa_supplicant |
| 274 | |
| 275 | # Inhert dalvik heap values from aosp |
| 276 | $(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) |