PageRenderTime 60ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/device.mk

https://gitlab.com/maheshmjmj1099/omni-android-device-lge-hammerhead
Makefile | 374 lines | 255 code | 66 blank | 53 comment | 0 complexity | 7517c29fc7e7472827a6f4cccdf1df6d MD5 | raw file
  1. #
  2. # Copyright (C) 2013 The Android Open-Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # This file includes all definitions that apply to ALL hammerhead devices, and
  17. # are also specific to hammerhead devices
  18. #
  19. # Everything in this directory will become public
  20. PRODUCT_COPY_FILES += \
  21. device/lge/hammerhead/twrp.fstab:recovery/root/etc/twrp.fstab
  22. PRODUCT_COPY_FILES += \
  23. device/lge/hammerhead/init.hammerhead.rc:root/init.hammerhead.rc \
  24. device/lge/hammerhead/init.hammerhead.usb.rc:root/init.hammerhead.usb.rc \
  25. device/lge/hammerhead/init.recovery.hammerhead.rc:root/init.recovery.hammerhead.rc \
  26. device/lge/hammerhead/fstab.hammerhead:root/fstab.hammerhead \
  27. device/lge/hammerhead/ueventd.hammerhead.rc:root/ueventd.hammerhead.rc
  28. # Input device files for hammerhead
  29. PRODUCT_COPY_FILES += \
  30. device/lge/hammerhead/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
  31. device/lge/hammerhead/gpio-keys.kcm:system/usr/keychars/gpio-keys.kcm \
  32. device/lge/hammerhead/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl \
  33. device/lge/hammerhead/qpnp_pon.kcm:system/usr/keychars/qpnp_pon.kcm \
  34. device/lge/hammerhead/Button_Jack.kl:system/usr/keylayout/msm8974-taiko-mtp-snd-card_Button_Jack.kl \
  35. device/lge/hammerhead/Button_Jack.kcm:system/usr/keychars/msm8974-taiko-mtp-snd-card_Button_Jack.kcm \
  36. device/lge/hammerhead/hs_detect.kl:system/usr/keylayout/hs_detect.kl \
  37. device/lge/hammerhead/hs_detect.kcm:system/usr/keychars/hs_detect.kcm
  38. # Prebuilt input device calibration files
  39. PRODUCT_COPY_FILES += \
  40. device/lge/hammerhead/touch_dev.idc:system/usr/idc/touch_dev.idc
  41. PRODUCT_COPY_FILES += \
  42. device/lge/hammerhead/audio_policy.conf:system/etc/audio_policy.conf \
  43. device/lge/hammerhead/mixer_paths.xml:system/etc/mixer_paths.xml
  44. PRODUCT_COPY_FILES += \
  45. frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
  46. frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
  47. frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
  48. device/lge/hammerhead/media_codecs.xml:system/etc/media_codecs.xml \
  49. device/lge/hammerhead/media_profiles.xml:system/etc/media_profiles.xml
  50. PRODUCT_COPY_FILES += \
  51. device/lge/hammerhead/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
  52. # These are the hardware-specific features
  53. PRODUCT_COPY_FILES += \
  54. frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
  55. frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
  56. frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
  57. frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
  58. frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \
  59. frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
  60. frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
  61. frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
  62. frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
  63. frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
  64. frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
  65. frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
  66. frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
  67. frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
  68. frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
  69. frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
  70. frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
  71. frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
  72. frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
  73. frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
  74. frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
  75. frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
  76. frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
  77. # For GPS
  78. PRODUCT_COPY_FILES += \
  79. device/lge/hammerhead/sec_config:system/etc/sec_config
  80. # NFC access control + feature files + configuration
  81. PRODUCT_COPY_FILES += \
  82. frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
  83. frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
  84. device/lge/hammerhead/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
  85. device/lge/hammerhead/nfc/libnfc-brcm-20791b05.conf:system/etc/libnfc-brcm-20791b05.conf
  86. PRODUCT_COPY_FILES += \
  87. device/lge/hammerhead/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf
  88. # For SPN display
  89. PRODUCT_COPY_FILES += \
  90. device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml
  91. PRODUCT_TAGS += dalvik.gc.type-precise
  92. PRODUCT_AAPT_CONFIG := normal
  93. PRODUCT_AAPT_PREF_CONFIG := xxhdpi
  94. PRODUCT_CHARACTERISTICS := nosdcard
  95. DEVICE_PACKAGE_OVERLAYS := \
  96. device/lge/hammerhead/overlay
  97. PRODUCT_PACKAGES := \
  98. libwpa_client \
  99. hostapd \
  100. dhcpcd.conf \
  101. wpa_supplicant \
  102. wpa_supplicant.conf
  103. # Live Wallpapers
  104. PRODUCT_PACKAGES += \
  105. LiveWallpapersPicker \
  106. librs_jni
  107. PRODUCT_PACKAGES += \
  108. gralloc.msm8974 \
  109. libgenlock \
  110. hwcomposer.msm8974 \
  111. memtrack.msm8974 \
  112. libqdutils \
  113. libqdMetaData
  114. PRODUCT_PACKAGES += \
  115. libc2dcolorconvert \
  116. libstagefrighthw \
  117. libOmxCore \
  118. libmm-omxcore \
  119. libOmxVdec \
  120. libOmxVdecHevc \
  121. libOmxVenc
  122. PRODUCT_PACKAGES += \
  123. audio.primary.msm8974 \
  124. audio.a2dp.default \
  125. audio.usb.default \
  126. audio.r_submix.default \
  127. libaudio-resampler
  128. # Audio effects
  129. PRODUCT_PACKAGES += \
  130. libqcomvisualizer \
  131. libqcomvoiceprocessing \
  132. libqcomvoiceprocessingdescriptors \
  133. libqcompostprocbundle
  134. PRODUCT_COPY_FILES += \
  135. device/lge/hammerhead/audio_effects.conf:system/vendor/etc/audio_effects.conf
  136. PRODUCT_PACKAGES += \
  137. libqomx_core \
  138. libmmcamera_interface \
  139. libmmjpeg_interface \
  140. camera.hammerhead \
  141. mm-jpeg-interface-test \
  142. mm-qcamera-app
  143. PRODUCT_PACKAGES += \
  144. keystore.msm8974
  145. PRODUCT_PACKAGES += \
  146. power.msm8974
  147. # GPS configuration
  148. PRODUCT_COPY_FILES += \
  149. device/lge/hammerhead/gps.conf:system/etc/gps.conf
  150. # GPS
  151. PRODUCT_PACKAGES += \
  152. libloc_adapter \
  153. libloc_eng \
  154. libloc_api_v02 \
  155. libloc_ds_api \
  156. libloc_core \
  157. libizat_core \
  158. libgeofence \
  159. libgps.utils \
  160. gps.msm8974 \
  161. flp.msm8974 \
  162. liblbs_core \
  163. flp.conf
  164. # NFC packages
  165. PRODUCT_PACKAGES += \
  166. nfc_nci.bcm2079x.default \
  167. NfcNci \
  168. Tag
  169. PRODUCT_PACKAGES += \
  170. libion
  171. PRODUCT_PACKAGES += \
  172. lights.hammerhead
  173. PRODUCT_PACKAGES += \
  174. com.android.future.usb.accessory
  175. # Filesystem management tools
  176. PRODUCT_PACKAGES += \
  177. e2fsck
  178. # for off charging mode
  179. PRODUCT_PACKAGES += \
  180. charger_res_images
  181. PRODUCT_PACKAGES += \
  182. bdAddrLoader
  183. PRODUCT_PACKAGES += \
  184. power.hammerhead
  185. PRODUCT_PROPERTY_OVERRIDES += \
  186. ro.opengles.version=196608
  187. PRODUCT_PROPERTY_OVERRIDES += \
  188. ro.sf.lcd_density=480
  189. PRODUCT_PROPERTY_OVERRIDES += \
  190. persist.hwc.mdpcomp.enable=true
  191. PRODUCT_PROPERTY_OVERRIDES += \
  192. ro.hwui.texture_cache_size=72 \
  193. ro.hwui.layer_cache_size=48 \
  194. ro.hwui.r_buffer_cache_size=8 \
  195. ro.hwui.path_cache_size=32 \
  196. ro.hwui.gradient_cache_size=1 \
  197. ro.hwui.drop_shadow_cache_size=6 \
  198. ro.hwui.texture_cache_flushrate=0.4 \
  199. ro.hwui.text_small_cache_width=1024 \
  200. ro.hwui.text_small_cache_height=1024 \
  201. ro.hwui.text_large_cache_width=2048 \
  202. ro.hwui.text_large_cache_height=1024
  203. PRODUCT_PROPERTY_OVERRIDES += \
  204. drm.service.enabled=true
  205. # Set sensor streaming rate
  206. PRODUCT_PROPERTY_OVERRIDES += \
  207. ro.qti.sensors.max_geomag_rotv=60 \
  208. ro.qti.sensors.max_gyro_rate=200 \
  209. ro.qti.sensors.max_accel_rate=200 \
  210. ro.qti.sensors.max_grav=200 \
  211. ro.qti.sensors.max_rotvec=200 \
  212. ro.qti.sensors.max_orient=200 \
  213. ro.qti.sensors.max_linacc=200 \
  214. ro.qti.sensors.max_gamerv_rate=200
  215. # Enable optional sensor types
  216. PRODUCT_PROPERTY_OVERRIDES += \
  217. ro.qti.sensors.smd=true \
  218. ro.qti.sensors.game_rv=true \
  219. ro.qti.sensors.georv=true \
  220. ro.qti.sensors.smgr_mag_cal_en=true \
  221. ro.qti.sensors.step_detector=true \
  222. ro.qti.sensors.step_counter=true
  223. ro.qti.sensors.tap=false \
  224. ro.qti.sensors.facing=false \
  225. ro.qti.sensors.tilt=false \
  226. ro.qti.sensors.amd=false \
  227. ro.qti.sensors.rmd=false \
  228. ro.qti.sensors.vmd=false \
  229. ro.qti.sensors.pedometer=false \
  230. ro.qti.sensors.pam=false \
  231. ro.qti.sdk.sensors.gestures=false
  232. # Enable some debug messages by default
  233. PRODUCT_PROPERTY_OVERRIDES += \
  234. persist.debug.sensors.hal=w \
  235. debug.qualcomm.sns.daemon=w \
  236. debug.qualcomm.sns.libsensor1=w
  237. # Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
  238. PRODUCT_PROPERTY_OVERRIDES += \
  239. ro.telephony.call_ring.multiple=0
  240. PRODUCT_PROPERTY_OVERRIDES += \
  241. wifi.interface=wlan0 \
  242. wifi.supplicant_scan_interval=15
  243. # Enable AAC 5.1 output
  244. PRODUCT_PROPERTY_OVERRIDES += \
  245. media.aac_51_output_enabled=true
  246. # Do not power down SIM card when modem is sent to Low Power Mode.
  247. PRODUCT_PROPERTY_OVERRIDES += \
  248. persist.radio.apm_sim_not_pwdn=1
  249. # LTE, CDMA, GSM/WCDMA
  250. PRODUCT_PROPERTY_OVERRIDES += \
  251. ro.telephony.default_network=10 \
  252. telephony.lteOnCdmaDevice=1 \
  253. persist.radio.mode_pref_nv10=1
  254. # update 1x signal strength after 2s
  255. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  256. persist.radio.snapshot_enabled=1 \
  257. persist.radio.snapshot_timer=2
  258. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  259. persist.radio.use_cc_names=true
  260. # If data_no_toggle is 1 then active and dormancy enable at all times.
  261. # If data_no_toggle is 0 there are no reports if the screen is off.
  262. PRODUCT_PROPERTY_OVERRIDES += \
  263. persist.radio.data_no_toggle=1
  264. # Audio Configuration
  265. PRODUCT_PROPERTY_OVERRIDES += \
  266. persist.audio.handset.mic.type=digital \
  267. persist.audio.dualmic.config=endfire \
  268. persist.audio.fluence.voicecall=true \
  269. persist.audio.fluence.voicecomm=true \
  270. persist.audio.fluence.voicerec=false \
  271. persist.audio.fluence.speaker=false
  272. # Setup custom emergency number list based on the MCC. This is needed by RIL
  273. PRODUCT_PROPERTY_OVERRIDES += \
  274. persist.radio.custom_ecc=1
  275. # set default USB configuration
  276. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  277. persist.sys.usb.config=mtp
  278. # Request modem to send PLMN name always irrespective
  279. # of display condition in EFSPN.
  280. # RIL uses this property.
  281. PRODUCT_PROPERTY_OVERRIDES += \
  282. persist.radio.always_send_plmn=true
  283. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  284. rild.libpath=/system/lib/libril-qc-qmi-1.so
  285. # Camera configuration
  286. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  287. camera.disable_zsl_mode=1
  288. # Input resampling configuration
  289. PRODUCT_PROPERTY_OVERRIDES += \
  290. ro.input.noresample=1
  291. # set SELinux property value
  292. PRODUCT_PROPERTY_OVERRIDES += \
  293. ro.build.selinux=1
  294. # Modem debugger
  295. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  296. PRODUCT_PACKAGES += \
  297. QXDMLogger
  298. PRODUCT_COPY_FILES += \
  299. device/lge/hammerhead/init.hammerhead.diag.rc.userdebug:root/init.hammerhead.diag.rc
  300. else
  301. PRODUCT_COPY_FILES += \
  302. device/lge/hammerhead/init.hammerhead.diag.rc.user:root/init.hammerhead.diag.rc
  303. endif
  304. # setup dalvik vm configs.
  305. $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
  306. $(call inherit-product-if-exists, hardware/qcom/msm8x74/msm8x74.mk)
  307. $(call inherit-product-if-exists, vendor/qcom/gpu/msm8x74/msm8x74-gpu-vendor.mk)
  308. $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4339/device-bcm.mk)