• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2021 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
17TARGET_KERNEL_DIR ?= device/google/pantah-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/pantah-kernel/kernel-headers
19
20$(call inherit-product-if-exists, vendor/google_devices/pantah/prebuilts/device-vendor-cloudripper.mk)
21$(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk)
22$(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk)
23$(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/cloudripper/device-vendor-cloudripper.mk)
24
25include device/google/gs201/device-shipping-common.mk
26include device/google/pantah/audio/cloudripper/audio-tables.mk
27include hardware/google/pixel/vibrator/cs40l26/device.mk
28include device/google/gs101/bluetooth/bluetooth.mk
29
30DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/pantah/device_framework_matrix_product.xml
31# go/lyric-soong-variables
32$(call soong_config_set,lyric,camera_hardware,cloudripper)
33$(call soong_config_set,lyric,tuning_product,cloudripper)
34$(call soong_config_set,google3a_config,target_device,cloudripper)
35
36# Init files
37PRODUCT_COPY_FILES += \
38	device/google/pantah/conf/init.cloudripper.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.cloudripper.rc
39
40# Recovery files
41PRODUCT_COPY_FILES += \
42        device/google/pantah/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.cloudripper.rc
43
44# insmod files
45PRODUCT_COPY_FILES += \
46	device/google/pantah/init.insmod.cloudripper.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cloudripper.cfg
47
48# Camera
49PRODUCT_COPY_FILES += \
50	device/google/pantah/media_profiles_cloudripper.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
51
52# NFC
53PRODUCT_COPY_FILES += \
54	frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
55	frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
56	frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
57	frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
58	frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
59	frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
60    device/google/pantah/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
61
62ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
63PRODUCT_COPY_FILES += \
64        device/google/pantah/nfc/libnfc-hal-st-debug.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
65else
66PRODUCT_COPY_FILES += \
67        device/google/pantah/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
68endif
69
70PRODUCT_PACKAGES += \
71	NfcNci \
72	Tag \
73	android.hardware.nfc-service.st
74
75# SecureElement
76PRODUCT_PACKAGES += \
77	android.hardware.secure_element@1.2-service-gto \
78	android.hardware.secure_element@1.2-service-gto-ese2
79
80PRODUCT_COPY_FILES += \
81	frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
82	frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
83	device/google/pantah/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
84	device/google/pantah/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
85
86DEVICE_MANIFEST_FILE += \
87	device/google/pantah/nfc/manifest_se.xml
88
89# Thermal Config
90PRODUCT_COPY_FILES += \
91	device/google/pantah/thermal_info_config_cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
92	device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json
93
94# Power HAL config
95PRODUCT_COPY_FILES += \
96	device/google/pantah/powerhint-cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
97
98# Bluetooth HAL
99DEVICE_MANIFEST_FILE += \
100	device/google/pantah/bluetooth/manifest_bluetooth.xml
101PRODUCT_SOONG_NAMESPACES += \
102        vendor/broadcom/bluetooth
103PRODUCT_PACKAGES += \
104	android.hardware.bluetooth@1.1-service.bcmbtlinux \
105	bt_vendor.conf
106PRODUCT_COPY_FILES += \
107	device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
108PRODUCT_PROPERTY_OVERRIDES += \
109    ro.bluetooth.a2dp_offload.supported=true \
110    persist.bluetooth.a2dp_offload.disabled=false \
111    persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
112
113# Spatial Audio
114PRODUCT_PACKAGES += \
115	libspatialaudio \
116	librondo
117
118# Keymaster HAL
119#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
120
121# Gatekeeper HAL
122#LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= android.hardware.gatekeeper@1.0-service.software
123
124
125# Gatekeeper
126# PRODUCT_PACKAGES += \
127# 	android.hardware.gatekeeper@1.0-service.software
128
129# Keymint replaces Keymaster
130# PRODUCT_PACKAGES += \
131# 	android.hardware.security.keymint-service
132
133# Keymaster
134#PRODUCT_PACKAGES += \
135#	android.hardware.keymaster@4.0-impl \
136#	android.hardware.keymaster@4.0-service
137
138#PRODUCT_PACKAGES += android.hardware.keymaster@4.0-service.remote
139#PRODUCT_PACKAGES += android.hardware.keymaster@4.1-service.remote
140#LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service
141#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
142
143# PRODUCT_PROPERTY_OVERRIDES += \
144# 	ro.hardware.keystore_desede=true \
145# 	ro.hardware.keystore=software \
146# 	ro.hardware.gatekeeper=software
147
148# default BDADDR for EVB only
149PRODUCT_PROPERTY_OVERRIDES += \
150	ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
151
152# PowerStats HAL
153PRODUCT_SOONG_NAMESPACES += \
154    device/google/pantah/powerstats/cloudripper
155
156# WiFi Overlay
157PRODUCT_PACKAGES += \
158	WifiOverlay2022_C10 \
159	PixelWifiOverlay2022_C10
160
161PRODUCT_SOONG_NAMESPACES += device/google/pantah/cheetah/
162
163# Trusty liboemcrypto.so
164PRODUCT_SOONG_NAMESPACES += vendor/google_devices/pantah/prebuilts
165
166# Location
167ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
168        PRODUCT_COPY_FILES += \
169                device/google/pantah/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
170                device/google/pantah/location/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
171                device/google/pantah/location/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
172else
173        PRODUCT_COPY_FILES += \
174                device/google/pantah/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
175                device/google/pantah/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
176                device/google/pantah/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
177
178endif
179
180##Audio Vendor property
181PRODUCT_PROPERTY_OVERRIDES += \
182	persist.vendor.audio.cca.enabled=false
183
184# Set zram size
185PRODUCT_VENDOR_PROPERTIES += \
186	vendor.zram.size=3g
187
188PRODUCT_PRODUCT_PROPERTIES += \
189    persist.bluetooth.firmware.selection=BCM.hcd
190
191# Device features
192PRODUCT_COPY_FILES += \
193    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
194