common.mk 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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. $(foreach sku, taro diwali cape ukee, \
  58. $(eval PRODUCT_COPY_FILES += \
  59. $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(sku)/audio_effects.xml \
  60. $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(sku)/audio_policy_configuration.xml \
  61. ))
  62. PRODUCT_COPY_FILES += \
  63. frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
  64. frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
  65. frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
  66. frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
  67. frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
  68. frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
  69. frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
  70. # Automotive
  71. PRODUCT_PACKAGES += \
  72. [email protected]
  73. # Bluetooth
  74. PRODUCT_PACKAGES += \
  75. [email protected] \
  76. android.hardware.bluetooth.audio-impl \
  77. [email protected] \
  78. [email protected] \
  79. [email protected] \
  80. [email protected]
  81. PRODUCT_COPY_FILES += \
  82. frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
  83. frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
  84. # Boot control
  85. PRODUCT_PACKAGES += \
  86. [email protected] \
  87. [email protected] \
  88. [email protected]
  89. PRODUCT_PACKAGES_DEBUG += \
  90. bootctl
  91. # Camera
  92. PRODUCT_PACKAGES += \
  93. [email protected] \
  94. [email protected] \
  95. libcamera2ndk_vendor \
  96. [email protected] \
  97. [email protected]
  98. PRODUCT_PACKAGES += \
  99. libMegviiFacepp-0.5.2 \
  100. libmegface
  101. PRODUCT_COPY_FILES += \
  102. frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
  103. frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
  104. frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
  105. frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
  106. # Capabilityconfigstore
  107. PRODUCT_PACKAGES += \
  108. [email protected]
  109. # Display
  110. PRODUCT_PACKAGES += \
  111. [email protected] \
  112. vendor.qti.hardware.display.allocator-service \
  113. vendor.qti.hardware.display.composer-service
  114. PRODUCT_PACKAGES += \
  115. init.qti.display_boot.rc \
  116. init.qti.display_boot.sh
  117. PRODUCT_PACKAGES += \
  118. [email protected] \
  119. vendor.qti.hardware.display.config-V2-ndk_platform.vendor \
  120. [email protected]
  121. PRODUCT_COPY_FILES += \
  122. hardware/qcom-caf/sm8450/display/config/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml
  123. # DRM
  124. PRODUCT_PACKAGES += \
  125. [email protected] \
  126. libdrm.vendor
  127. # Dumpstate
  128. PRODUCT_PACKAGES += \
  129. [email protected]
  130. # Fingerprint
  131. PRODUCT_PACKAGES += \
  132. [email protected] \
  133. libudfpshandler
  134. PRODUCT_COPY_FILES += \
  135. frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
  136. # Fstab
  137. PRODUCT_COPY_FILES += \
  138. $(LOCAL_PATH)/rootdir/etc/charger_fw_fstab.qti:$(TARGET_COPY_OUT_VENDOR)/etc/charger_fw_fstab.qti
  139. PRODUCT_COPY_FILES += \
  140. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom \
  141. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.qcom \
  142. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
  143. # Gatekeeper
  144. PRODUCT_PACKAGES += \
  145. [email protected]
  146. # GPS
  147. PRODUCT_PACKAGES += \
  148. [email protected] \
  149. android.hardware.gnss-aidl-impl-qti \
  150. android.hardware.gnss-aidl-service-qti
  151. PRODUCT_PACKAGES += \
  152. libbatching \
  153. libgeofencing \
  154. libgnss
  155. PRODUCT_PACKAGES += \
  156. apdr.conf \
  157. batching.conf \
  158. gnss_antenna_info.conf \
  159. gps.conf \
  160. izat.conf \
  161. lowi.conf \
  162. sap.conf
  163. PRODUCT_PACKAGES += \
  164. [email protected] \
  165. [email protected]
  166. PRODUCT_COPY_FILES += \
  167. frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
  168. # Graphics
  169. PRODUCT_PACKAGES += \
  170. libgui_vendor
  171. PRODUCT_COPY_FILES += \
  172. frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
  173. frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
  174. frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
  175. frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
  176. 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 \
  177. 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
  178. # Health
  179. PRODUCT_PACKAGES += \
  180. [email protected]
  181. # HIDL
  182. PRODUCT_PACKAGES += \
  183. [email protected] \
  184. [email protected] \
  185. libhidltransport.vendor \
  186. libhwbinder.vendor
  187. # Hotword Enrollement
  188. PRODUCT_COPY_FILES += \
  189. $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-hotword.xml
  190. # Identity
  191. PRODUCT_PACKAGES += \
  192. android.hardware.identity-V3-ndk_platform.vendor \
  193. android.hardware.keymaster-V3-ndk_platform.vendor
  194. # IPACM
  195. PRODUCT_PACKAGES += \
  196. ipacm \
  197. IPACM_cfg.xml \
  198. IPACM_Filter_cfg.xml
  199. # IR
  200. PRODUCT_PACKAGES += \
  201. [email protected] \
  202. [email protected]
  203. PRODUCT_COPY_FILES += \
  204. frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
  205. # JSON
  206. PRODUCT_PACKAGES += \
  207. libjson
  208. # Keymaster
  209. PRODUCT_PACKAGES += \
  210. [email protected] \
  211. android.hardware.security.keymint-V1-ndk_platform.vendor \
  212. android.hardware.security.secureclock-V1-ndk_platform.vendor \
  213. android.hardware.security.sharedsecret-V1-ndk_platform.vendor \
  214. libkeymaster_messages.vendor
  215. PRODUCT_COPY_FILES += \
  216. frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
  217. # Media
  218. PRODUCT_PACKAGES += \
  219. [email protected]
  220. PRODUCT_PACKAGES += \
  221. init.qti.media.rc \
  222. init.qti.media.sh
  223. PRODUCT_COPY_FILES += \
  224. frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
  225. frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml
  226. PRODUCT_COPY_FILES += \
  227. frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
  228. frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
  229. frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
  230. # Network
  231. PRODUCT_PACKAGES += \
  232. [email protected]
  233. PRODUCT_COPY_FILES += \
  234. frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
  235. # Neural networks
  236. PRODUCT_PACKAGES += \
  237. android.hardware.neuralnetworks-V1-ndk_platform.vendor
  238. # NFC
  239. PRODUCT_PACKAGES += \
  240. [email protected] \
  241. libchrome.vendor
  242. PRODUCT_COPY_FILES += \
  243. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  244. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  245. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  246. frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
  247. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  248. frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
  249. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
  250. # Overlays
  251. PRODUCT_PACKAGES += \
  252. CarrierConfigResCommon_Sys \
  253. FrameworksResCommon_Sys \
  254. SettingsResCommon_Sys \
  255. SystemUIResCommon_Sys \
  256. TelecommResCommon_Sys \
  257. TelephonyResCommon_Sys \
  258. WifiResCommon_Sys
  259. PRODUCT_PACKAGES += \
  260. DialerResXiaomi \
  261. FrameworksResTarget_Vendor \
  262. FrameworksResXiaomi \
  263. SettingsProviderResXiaomi \
  264. SettingsResXiaomi \
  265. WifiResTarget \
  266. WifiResTarget_spf
  267. # Partitions
  268. PRODUCT_USE_DYNAMIC_PARTITIONS := true
  269. # Perf
  270. PRODUCT_PACKAGES += \
  271. [email protected]
  272. # Power
  273. PRODUCT_PACKAGES += \
  274. android.hardware.power-service-qti
  275. PRODUCT_COPY_FILES += \
  276. vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
  277. # QTI
  278. PRODUCT_PACKAGES += \
  279. libqti_vndfwk_detect.vendor \
  280. libvndfwk_detect_jni.qti_vendor \
  281. [email protected]
  282. # QXR
  283. PRODUCT_PACKAGES += \
  284. android.hardware.common-V2-ndk_platform.vendor
  285. # Recovery
  286. PRODUCT_PACKAGES += \
  287. fastbootd
  288. PRODUCT_COPY_FILES += \
  289. $(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
  290. # RenderScript
  291. PRODUCT_PACKAGES += \
  292. [email protected]
  293. # RIL
  294. PRODUCT_PACKAGES += \
  295. [email protected] \
  296. [email protected] \
  297. # Secure element
  298. PRODUCT_PACKAGES += \
  299. [email protected]
  300. PRODUCT_COPY_FILES += \
  301. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  302. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml
  303. # Sensors
  304. PRODUCT_PACKAGES += \
  305. [email protected] \
  306. [email protected]
  307. $(foreach sku, taro diwali cape ukee, \
  308. $(eval PRODUCT_COPY_FILES += \
  309. frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.accelerometer.xml \
  310. frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.compass.xml \
  311. frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.gyroscope.xml \
  312. frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.light.xml \
  313. frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.proximity.xml \
  314. frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.stepcounter.xml \
  315. frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/sku_$(sku)/android.hardware.sensor.stepdetector.xml \
  316. ))
  317. # Servicetracker
  318. PRODUCT_PACKAGES += \
  319. [email protected]
  320. # Soong namespaces
  321. PRODUCT_SOONG_NAMESPACES += \
  322. $(LOCAL_PATH) \
  323. hardware/xiaomi
  324. # Telephony
  325. PRODUCT_PACKAGES += \
  326. extphonelib \
  327. extphonelib-product \
  328. extphonelib.xml \
  329. extphonelib_product.xml \
  330. ims-ext-common \
  331. ims_ext_common.xml \
  332. qti-telephony-hidl-wrapper \
  333. qti-telephony-hidl-wrapper-prd \
  334. qti_telephony_hidl_wrapper.xml \
  335. qti_telephony_hidl_wrapper_prd.xml \
  336. qti-telephony-utils \
  337. qti-telephony-utils-prd \
  338. qti_telephony_utils.xml \
  339. qti_telephony_utils_prd.xml \
  340. telephony-ext
  341. PRODUCT_BOOT_JARS += \
  342. telephony-ext
  343. PRODUCT_COPY_FILES += \
  344. frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
  345. frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
  346. frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
  347. frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
  348. # Thermal
  349. PRODUCT_PACKAGES += \
  350. [email protected]
  351. # Touchscreen
  352. PRODUCT_COPY_FILES += \
  353. frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
  354. # Ueventd
  355. PRODUCT_COPY_FILES += \
  356. $(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \
  357. $(LOCAL_PATH)/rootdir/etc/ueventd-odm.rc:$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc
  358. # Update engine
  359. PRODUCT_PACKAGES += \
  360. update_engine \
  361. update_engine_sideload \
  362. update_verifier
  363. PRODUCT_PACKAGES_DEBUG += \
  364. update_engine_client
  365. # USB
  366. PRODUCT_PACKAGES += \
  367. [email protected]
  368. PRODUCT_COPY_FILES += \
  369. frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
  370. frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml
  371. # Vendor service manager
  372. PRODUCT_PACKAGES += \
  373. vndservicemanager
  374. # Vendor init
  375. PRODUCT_COPY_FILES += \
  376. $(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
  377. $(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc \
  378. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_RECOVERY)/root/vendor/etc/init/init.touch_report.rc \
  379. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.touch_report.rc \
  380. $(LOCAL_PATH)/rootdir/etc/init.xiaomi_sm8450.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.xiaomi_sm8450.rc \
  381. PRODUCT_COPY_FILES += \
  382. $(LOCAL_PATH)/rootdir/bin/init.class_main.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.class_main.sh \
  383. $(LOCAL_PATH)/rootdir/bin/init.qcom.class_core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.class_core.sh \
  384. $(LOCAL_PATH)/rootdir/bin/init.qcom.early_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.early_boot.sh \
  385. $(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
  386. $(LOCAL_PATH)/rootdir/bin/init.qcom.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.sh
  387. # Verified boot
  388. PRODUCT_COPY_FILES += \
  389. frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
  390. # Vibrator
  391. PRODUCT_PACKAGES += \
  392. vendor.qti.hardware.vibrator.service
  393. PRODUCT_COPY_FILES += \
  394. vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
  395. # WiFi
  396. PRODUCT_PACKAGES += \
  397. [email protected] \
  398. [email protected] \
  399. hostapd \
  400. hostapd_cli \
  401. libwifi-hal-qcom \
  402. libwpa_client \
  403. wpa_cli \
  404. wpa_supplicant \
  405. wpa_supplicant.conf
  406. PRODUCT_COPY_FILES += \
  407. $(LOCAL_PATH)/wlan/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
  408. $(LOCAL_PATH)/wlan/vendor_cmd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/vendor_cmd.xml \
  409. $(LOCAL_PATH)/wlan/WCNSS_qcom_cfg_qca6490.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/qca6490/WCNSS_qcom_cfg.ini \
  410. $(LOCAL_PATH)/wlan/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
  411. PRODUCT_COPY_FILES += \
  412. frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
  413. frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
  414. frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
  415. frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
  416. frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
  417. # WiFi Display
  418. PRODUCT_PACKAGES += \
  419. libnl \
  420. libwfdaac_vendor