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