common.mk 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. #
  2. # Copyright (C) 2020 The LineageOS Project
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Inherit from those products. Most specific first.
  7. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
  8. $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
  9. # Enable project quotas and casefolding for emulated storage without sdcardfs
  10. $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
  11. # Enforce generic ramdisk allow list
  12. $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
  13. # Enable updating of APEXes
  14. $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
  15. # Enable virtual AB with vendor ramdisk
  16. $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
  17. # Setup dalvik vm configs
  18. $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
  19. # Inherit from the proprietary version
  20. $(call inherit-product, vendor/xiaomi/sm8450-common/sm8450-common-vendor.mk)
  21. # A/B
  22. AB_OTA_POSTINSTALL_CONFIG += \
  23. RUN_POSTINSTALL_system=true \
  24. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  25. FILESYSTEM_TYPE_system=ext4 \
  26. POSTINSTALL_OPTIONAL_system=true
  27. AB_OTA_POSTINSTALL_CONFIG += \
  28. RUN_POSTINSTALL_vendor=true \
  29. POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
  30. FILESYSTEM_TYPE_vendor=ext4 \
  31. POSTINSTALL_OPTIONAL_vendor=true
  32. PRODUCT_PACKAGES += \
  33. checkpoint_gc \
  34. otapreopt_script
  35. # ANT+
  36. PRODUCT_PACKAGES += \
  37. [email protected]
  38. # API
  39. PRODUCT_SHIPPING_API_LEVEL := 31
  40. BOARD_API_LEVEL := 31
  41. BOARD_SHIPPING_API_LEVEL := 31
  42. # Atrace
  43. PRODUCT_PACKAGES += \
  44. [email protected]
  45. # Audio
  46. PRODUCT_PACKAGES += \
  47. [email protected] \
  48. [email protected] \
  49. android.hardware.audio.service \
  50. [email protected]
  51. PRODUCT_PACKAGES += \
  52. audio.bluetooth.default \
  53. audio.r_submix.default \
  54. audio.usb.default
  55. PRODUCT_PACKAGES += \
  56. libvolumelistener
  57. PRODUCT_COPY_FILES += \
  58. $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_cape/audio_effects.xml \
  59. $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_effects.xml \
  60. $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_ukee/audio_effects.xml \
  61. $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_cape/audio_policy_configuration.xml \
  62. $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_policy_configuration.xml \
  63. $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_ukee/audio_policy_configuration.xml \
  64. $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_cape/mixer_paths_overlay_dynamic.xml \
  65. $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_dynamic.xml \
  66. $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_ukee/mixer_paths_overlay_dynamic.xml \
  67. $(LOCAL_PATH)/audio/mixer_paths_ukee_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_ukee/mixer_paths_ukee_mtp.xml \
  68. $(LOCAL_PATH)/audio/mixer_paths_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_cape/mixer_paths_waipio_mtp.xml \
  69. $(LOCAL_PATH)/audio/mixer_paths_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_waipio_mtp.xml
  70. PRODUCT_COPY_FILES += \
  71. $(LOCAL_PATH)/audio/backend_conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/backend_conf.xml \
  72. $(LOCAL_PATH)/audio/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \
  73. $(LOCAL_PATH)/audio/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \
  74. $(LOCAL_PATH)/audio/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
  75. $(LOCAL_PATH)/audio/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
  76. $(LOCAL_PATH)/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml
  77. PRODUCT_COPY_FILES += \
  78. frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
  79. frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
  80. frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
  81. frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
  82. frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
  83. frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
  84. frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
  85. # Automotive
  86. PRODUCT_PACKAGES += \
  87. [email protected]
  88. # Bluetooth
  89. PRODUCT_PACKAGES += \
  90. [email protected] \
  91. android.hardware.bluetooth.audio-impl \
  92. [email protected] \
  93. [email protected] \
  94. [email protected] \
  95. [email protected]
  96. PRODUCT_COPY_FILES += \
  97. frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
  98. frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
  99. # Boot control
  100. PRODUCT_PACKAGES += \
  101. [email protected] \
  102. [email protected] \
  103. [email protected]
  104. PRODUCT_PACKAGES_DEBUG += \
  105. bootctl
  106. # Camera
  107. PRODUCT_PACKAGES += \
  108. [email protected] \
  109. [email protected] \
  110. libcamera2ndk_vendor \
  111. [email protected] \
  112. [email protected]
  113. PRODUCT_PACKAGES += \
  114. libMegviiFacepp-0.5.2 \
  115. libmegface
  116. PRODUCT_COPY_FILES += \
  117. frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
  118. frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
  119. frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
  120. frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
  121. # Capabilityconfigstore
  122. PRODUCT_PACKAGES += \
  123. [email protected]
  124. # Display
  125. PRODUCT_PACKAGES += \
  126. [email protected] \
  127. vendor.qti.hardware.display.allocator-service \
  128. vendor.qti.hardware.display.composer-service
  129. PRODUCT_PACKAGES += \
  130. init.qti.display_boot.rc \
  131. init.qti.display_boot.sh
  132. PRODUCT_PACKAGES += \
  133. [email protected] \
  134. vendor.qti.hardware.display.config-V2-ndk_platform.vendor \
  135. [email protected]
  136. PRODUCT_COPY_FILES += \
  137. hardware/qcom-caf/sm8450/display/config/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml
  138. # DRM
  139. PRODUCT_PACKAGES += \
  140. [email protected] \
  141. libdrm.vendor
  142. # Dumpstate
  143. PRODUCT_PACKAGES += \
  144. [email protected]
  145. # Fingerprint
  146. PRODUCT_PACKAGES += \
  147. [email protected] \
  148. libudfpshandler
  149. PRODUCT_COPY_FILES += \
  150. frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
  151. # Fstab
  152. PRODUCT_COPY_FILES += \
  153. $(LOCAL_PATH)/rootdir/etc/charger_fw_fstab.qti:$(TARGET_COPY_OUT_VENDOR)/etc/charger_fw_fstab.qti
  154. PRODUCT_COPY_FILES += \
  155. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom \
  156. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.qcom \
  157. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
  158. # Gatekeeper
  159. PRODUCT_PACKAGES += \
  160. [email protected]
  161. # GPS
  162. PRODUCT_PACKAGES += \
  163. [email protected] \
  164. android.hardware.gnss-aidl-impl-qti \
  165. android.hardware.gnss-aidl-service-qti
  166. PRODUCT_PACKAGES += \
  167. libbatching \
  168. libgeofencing \
  169. libgnss
  170. PRODUCT_PACKAGES += \
  171. apdr.conf \
  172. batching.conf \
  173. gnss_antenna_info.conf \
  174. gps.conf \
  175. izat.conf \
  176. lowi.conf \
  177. sap.conf
  178. PRODUCT_PACKAGES += \
  179. [email protected] \
  180. [email protected]
  181. PRODUCT_COPY_FILES += \
  182. frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
  183. # Graphics
  184. PRODUCT_PACKAGES += \
  185. libgui_vendor
  186. PRODUCT_COPY_FILES += \
  187. frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
  188. frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
  189. frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
  190. frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
  191. frameworks/native/data/etc/android.software.opengles.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
  192. frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
  193. # Health
  194. PRODUCT_PACKAGES += \
  195. [email protected]
  196. # HIDL
  197. PRODUCT_PACKAGES += \
  198. [email protected] \
  199. [email protected] \
  200. libhidltransport.vendor \
  201. libhwbinder.vendor
  202. # Hotword Enrollement
  203. PRODUCT_COPY_FILES += \
  204. $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-hotword.xml
  205. # Identity
  206. PRODUCT_PACKAGES += \
  207. android.hardware.identity-V3-ndk_platform.vendor \
  208. android.hardware.keymaster-V3-ndk_platform.vendor
  209. # IPACM
  210. PRODUCT_PACKAGES += \
  211. ipacm \
  212. IPACM_cfg.xml \
  213. IPACM_Filter_cfg.xml
  214. # IR
  215. PRODUCT_PACKAGES += \
  216. [email protected] \
  217. [email protected]
  218. PRODUCT_COPY_FILES += \
  219. frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
  220. # JSON
  221. PRODUCT_PACKAGES += \
  222. libjson
  223. # Keymaster
  224. PRODUCT_PACKAGES += \
  225. [email protected] \
  226. android.hardware.security.keymint-V1-ndk_platform.vendor \
  227. android.hardware.security.secureclock-V1-ndk_platform.vendor \
  228. android.hardware.security.sharedsecret-V1-ndk_platform.vendor \
  229. libkeymaster_messages.vendor
  230. PRODUCT_COPY_FILES += \
  231. frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
  232. # Media
  233. PRODUCT_PACKAGES += \
  234. [email protected]
  235. PRODUCT_PACKAGES += \
  236. init.qti.media.rc \
  237. init.qti.media.sh
  238. PRODUCT_COPY_FILES += \
  239. frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
  240. frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml
  241. PRODUCT_COPY_FILES += \
  242. frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
  243. frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
  244. frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
  245. # Network
  246. PRODUCT_PACKAGES += \
  247. [email protected]
  248. PRODUCT_COPY_FILES += \
  249. frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
  250. # Neural networks
  251. PRODUCT_PACKAGES += \
  252. android.hardware.neuralnetworks-V1-ndk_platform.vendor
  253. # NFC
  254. PRODUCT_PACKAGES += \
  255. [email protected] \
  256. libchrome.vendor
  257. PRODUCT_COPY_FILES += \
  258. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  259. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  260. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  261. frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
  262. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  263. frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
  264. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
  265. # Overlays
  266. PRODUCT_PACKAGES += \
  267. CarrierConfigResCommon_Sys \
  268. FrameworksResCommon_Sys \
  269. SettingsResCommon_Sys \
  270. SystemUIResCommon_Sys \
  271. TelecommResCommon_Sys \
  272. TelephonyResCommon_Sys \
  273. WifiResCommon_Sys
  274. PRODUCT_PACKAGES += \
  275. DialerResXiaomi \
  276. FrameworksResTarget_Vendor \
  277. FrameworksResXiaomi \
  278. SettingsProviderResXiaomi \
  279. SettingsResXiaomi \
  280. WifiResTarget \
  281. WifiResTarget_spf
  282. # Partitions
  283. PRODUCT_USE_DYNAMIC_PARTITIONS := true
  284. # Perf
  285. PRODUCT_PACKAGES += \
  286. [email protected]
  287. # Power
  288. PRODUCT_PACKAGES += \
  289. android.hardware.power-service-qti
  290. PRODUCT_COPY_FILES += \
  291. vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
  292. # QTI
  293. PRODUCT_PACKAGES += \
  294. libqti_vndfwk_detect.vendor \
  295. libvndfwk_detect_jni.qti_vendor \
  296. [email protected]
  297. # QXR
  298. PRODUCT_PACKAGES += \
  299. android.hardware.common-V2-ndk_platform.vendor
  300. # Recovery
  301. PRODUCT_PACKAGES += \
  302. fastbootd
  303. PRODUCT_COPY_FILES += \
  304. $(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
  305. # RenderScript
  306. PRODUCT_PACKAGES += \
  307. [email protected]
  308. # RIL
  309. PRODUCT_PACKAGES += \
  310. [email protected] \
  311. [email protected] \
  312. # Secure element
  313. PRODUCT_PACKAGES += \
  314. [email protected]
  315. PRODUCT_COPY_FILES += \
  316. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  317. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml
  318. # Sensors
  319. PRODUCT_PACKAGES += \
  320. [email protected]
  321. PRODUCT_COPY_FILES += \
  322. frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.accelerometer.xml \
  323. frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.ambient_temperature.xml \
  324. frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.barometer.xml \
  325. frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.compass.xml \
  326. frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.gyroscope.xml \
  327. frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.hifi_sensors.xml \
  328. frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.light.xml \
  329. frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.proximity.xml \
  330. frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.relative_humidity.xml \
  331. frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.stepcounter.xml \
  332. frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_cape/android.hardware.sensor.stepdetector.xml \
  333. frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.accelerometer.xml \
  334. frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.compass.xml \
  335. frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.gyroscope.xml \
  336. frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.light.xml \
  337. frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.proximity.xml \
  338. frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.stepcounter.xml \
  339. frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_taro/android.hardware.sensor.stepdetector.xml
  340. # Servicetracker
  341. PRODUCT_PACKAGES += \
  342. [email protected]
  343. # Soong namespaces
  344. PRODUCT_SOONG_NAMESPACES += \
  345. $(LOCAL_PATH) \
  346. hardware/xiaomi
  347. # Telephony
  348. PRODUCT_PACKAGES += \
  349. extphonelib \
  350. extphonelib-product \
  351. extphonelib.xml \
  352. extphonelib_product.xml \
  353. ims-ext-common \
  354. ims_ext_common.xml \
  355. qti-telephony-hidl-wrapper \
  356. qti-telephony-hidl-wrapper-prd \
  357. qti_telephony_hidl_wrapper.xml \
  358. qti_telephony_hidl_wrapper_prd.xml \
  359. qti-telephony-utils \
  360. qti-telephony-utils-prd \
  361. qti_telephony_utils.xml \
  362. qti_telephony_utils_prd.xml \
  363. telephony-ext
  364. PRODUCT_BOOT_JARS += \
  365. telephony-ext
  366. PRODUCT_COPY_FILES += \
  367. frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
  368. frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
  369. frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
  370. frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
  371. # Thermal
  372. PRODUCT_PACKAGES += \
  373. [email protected]
  374. # Touchscreen
  375. PRODUCT_COPY_FILES += \
  376. frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
  377. # Ueventd
  378. PRODUCT_COPY_FILES += \
  379. $(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \
  380. $(LOCAL_PATH)/rootdir/etc/ueventd-odm.rc:$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc
  381. # Update engine
  382. PRODUCT_PACKAGES += \
  383. update_engine \
  384. update_engine_sideload \
  385. update_verifier
  386. PRODUCT_PACKAGES_DEBUG += \
  387. update_engine_client
  388. # USB
  389. PRODUCT_PACKAGES += \
  390. [email protected]
  391. PRODUCT_COPY_FILES += \
  392. frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
  393. frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml
  394. # Vendor service manager
  395. PRODUCT_PACKAGES += \
  396. vndservicemanager
  397. # Vendor init
  398. PRODUCT_COPY_FILES += \
  399. $(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
  400. $(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc \
  401. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_RECOVERY)/root/vendor/etc/init/init.touch_report.rc \
  402. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.touch_report.rc \
  403. $(LOCAL_PATH)/rootdir/etc/init.xiaomi_sm8450.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.xiaomi_sm8450.rc \
  404. PRODUCT_COPY_FILES += \
  405. $(LOCAL_PATH)/rootdir/bin/init.class_main.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.class_main.sh \
  406. $(LOCAL_PATH)/rootdir/bin/init.qcom.class_core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.class_core.sh \
  407. $(LOCAL_PATH)/rootdir/bin/init.qcom.early_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.early_boot.sh \
  408. $(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
  409. $(LOCAL_PATH)/rootdir/bin/init.qcom.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.sh
  410. # Verified boot
  411. PRODUCT_COPY_FILES += \
  412. frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
  413. # Vibrator
  414. PRODUCT_PACKAGES += \
  415. vendor.qti.hardware.vibrator.service
  416. PRODUCT_COPY_FILES += \
  417. vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
  418. # WiFi
  419. PRODUCT_PACKAGES += \
  420. [email protected] \
  421. [email protected] \
  422. hostapd \
  423. hostapd_cli \
  424. libwifi-hal-qcom \
  425. libwpa_client \
  426. wpa_cli \
  427. wpa_supplicant \
  428. wpa_supplicant.conf
  429. PRODUCT_COPY_FILES += \
  430. $(LOCAL_PATH)/wlan/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
  431. $(LOCAL_PATH)/wlan/vendor_cmd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/vendor_cmd.xml \
  432. $(LOCAL_PATH)/wlan/WCNSS_qcom_cfg_qca6490.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/qca6490/WCNSS_qcom_cfg.ini \
  433. $(LOCAL_PATH)/wlan/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
  434. PRODUCT_COPY_FILES += \
  435. frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
  436. frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
  437. frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
  438. frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
  439. frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
  440. # WiFi Display
  441. PRODUCT_PACKAGES += \
  442. libnl \
  443. libwfdaac_vendor