• 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/shusky-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/shusky-kernel/kernel-headers
19
20LOCAL_PATH := device/google/shusky
21
22$(call inherit-product-if-exists, vendor/google_devices/shusky/prebuilts/device-vendor-shiba.mk)
23$(call inherit-product-if-exists, vendor/google_devices/zuma/prebuilts/device-vendor.mk)
24$(call inherit-product-if-exists, vendor/google_devices/zuma/proprietary/device-vendor.mk)
25$(call inherit-product-if-exists, vendor/google_devices/shusky/proprietary/shiba/device-vendor-shiba.mk)
26$(call inherit-product-if-exists, vendor/google_devices/shiba/proprietary/device-vendor.mk)
27$(call inherit-product-if-exists, vendor/google_devices/shusky/proprietary/WallpapersShiba.mk)
28
29DEVICE_PACKAGE_OVERLAYS += device/google/shusky/shiba/overlay
30
31include device/google/shusky/audio/shiba/audio-tables.mk
32include device/google/zuma/device-shipping-common.mk
33include hardware/google/pixel/vibrator/cs40l26/device.mk
34include device/google/gs-common/bcmbt/bluetooth.mk
35include device/google/gs-common/touch/gti/gti.mk
36
37# go/lyric-soong-variables
38$(call soong_config_set,lyric,camera_hardware,shiba)
39$(call soong_config_set,lyric,tuning_product,shiba)
40$(call soong_config_set,google3a_config,target_device,shiba)
41
42# Init files
43PRODUCT_COPY_FILES += \
44	device/google/shusky/conf/init.shiba.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.shiba.rc
45
46# Recovery files
47PRODUCT_COPY_FILES += \
48        device/google/shusky/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.shiba.rc
49
50# MIPI Coex Configs
51PRODUCT_COPY_FILES += \
52        device/google/shusky/shiba/radio/shiba_camera_front_dbr_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_dbr_coex_table.csv \
53        device/google/shusky/shiba/radio/shiba_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \
54		device/google/shusky/shiba/radio/shiba_display_primary_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv
55
56# Camera
57PRODUCT_COPY_FILES += \
58	device/google/shusky/media_profiles_shiba.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
59PRODUCT_PROPERTY_OVERRIDES += \
60        persist.vendor.camera.rls_range_supported=false
61
62# NFC
63PRODUCT_COPY_FILES += \
64	frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
65	frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
66	frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
67	frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
68	frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
69	device/google/shusky/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
70	device/google/shusky/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
71
72PRODUCT_PACKAGES += \
73	NfcNci \
74	Tag \
75	android.hardware.nfc-service.st
76
77# SecureElement
78PRODUCT_PACKAGES += \
79	android.hardware.secure_element-service.thales
80
81PRODUCT_COPY_FILES += \
82	frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
83	frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
84	device/google/shusky/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
85
86# Bluetooth HAL
87PRODUCT_COPY_FILES += \
88	device/google/shusky/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
89PRODUCT_PROPERTY_OVERRIDES += \
90    ro.bluetooth.a2dp_offload.supported=true \
91    persist.bluetooth.a2dp_offload.disabled=false \
92    persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
93
94# Bluetooth Tx power caps
95PRODUCT_COPY_FILES += \
96	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
97	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_CA.csv \
98	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \
99	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \
100	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \
101	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_GKWS6_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GKWS6_CA.csv \
102	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_GKWS6_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GKWS6_EU.csv \
103	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_GKWS6_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GKWS6_JP.csv \
104	$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_shiba_GKWS6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GKWS6_US.csv
105
106# POF
107PRODUCT_PRODUCT_PROPERTIES += \
108    ro.bluetooth.finder.supported=true
109
110# Spatial Audio
111PRODUCT_PACKAGES += \
112	libspatialaudio
113
114# declare use of spatial audio
115PRODUCT_PROPERTY_OVERRIDES += \
116       ro.audio.spatializer_enabled=true
117
118# Audio CCA property
119PRODUCT_PROPERTY_OVERRIDES += \
120	persist.vendor.audio.cca.enabled=false
121
122# DCK properties based on target
123PRODUCT_PROPERTY_OVERRIDES += \
124    ro.gms.dck.eligible_wcc=2 \
125    ro.gms.dck.se_capability=1
126
127# Bluetooth hci_inject test tool
128PRODUCT_PACKAGES_DEBUG += \
129    hci_inject
130
131# Bluetooth OPUS codec
132PRODUCT_PRODUCT_PROPERTIES += \
133    persist.bluetooth.opus.enabled=true
134
135# Bluetooth SAR test tool
136PRODUCT_PACKAGES_DEBUG += \
137    sar_test
138
139# Bluetooth EWP test tool
140PRODUCT_PACKAGES_DEBUG += \
141    ewp_tool
142
143# Bluetooth AAC VBR
144PRODUCT_PRODUCT_PROPERTIES += \
145    persist.bluetooth.a2dp_aac.vbr_supported=true
146
147# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
148ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
149PRODUCT_PRODUCT_PROPERTIES += \
150    persist.bluetooth.bqr.event_mask=295006 \
151    persist.bluetooth.bqr.vnd_quality_mask=29 \
152    persist.bluetooth.bqr.vnd_trace_mask=0 \
153    persist.bluetooth.vendor.btsnoop=true
154else
155PRODUCT_PRODUCT_PROPERTIES += \
156    persist.bluetooth.bqr.event_mask=295006 \
157    persist.bluetooth.bqr.vnd_quality_mask=16 \
158    persist.bluetooth.bqr.vnd_trace_mask=0 \
159    persist.bluetooth.vendor.btsnoop=false
160endif
161
162# Spatial Audio
163PRODUCT_PACKAGES += \
164	libspatialaudio \
165	librondo
166
167# Bluetooth Super Wide Band
168PRODUCT_PRODUCT_PROPERTIES += \
169	bluetooth.hfp.swb.supported=true
170
171# Bluetooth LE Audio
172PRODUCT_PRODUCT_PROPERTIES += \
173	ro.bluetooth.leaudio_switcher.supported=true \
174	bluetooth.profile.bap.unicast.client.enabled=true \
175	bluetooth.profile.csip.set_coordinator.enabled=true \
176	bluetooth.profile.hap.client.enabled=true \
177	bluetooth.profile.mcp.server.enabled=true \
178	bluetooth.profile.ccp.server.enabled=true \
179	bluetooth.profile.vcp.controller.enabled=true
180
181# Bluetooth LE Audio enable hardware offloading
182PRODUCT_PRODUCT_PROPERTIES += \
183	ro.bluetooth.leaudio_offload.supported=true \
184	persist.bluetooth.leaudio_offload.disabled=false
185
186# Bluetooth LE Auido offload capabilities setting
187PRODUCT_COPY_FILES += \
188	device/google/shusky/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
189
190# Bluetooth LE Audio CIS handover to SCO
191# Set the property only for the controller couldn't support CIS/SCO simultaneously. More detailed in b/242908683.
192PRODUCT_PRODUCT_PROPERTIES += \
193	persist.bluetooth.leaudio.notify.idle.during.call=true
194
195# Not support LE Audio dual mic SWB call based on the current launch strategy
196PRODUCT_PRODUCT_PROPERTIES += \
197    bluetooth.leaudio.dual_bidirection_swb.supported=false
198
199# Support One-Handed mode
200PRODUCT_PRODUCT_PROPERTIES += \
201    ro.support_one_handed_mode=true
202
203# Keymaster HAL
204#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
205
206# Gatekeeper HAL
207#LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= android.hardware.gatekeeper@1.0-service.software
208
209
210# Gatekeeper
211# PRODUCT_PACKAGES += \
212# 	android.hardware.gatekeeper@1.0-service.software
213
214# Keymint replaces Keymaster
215# PRODUCT_PACKAGES += \
216# 	android.hardware.security.keymint-service
217
218# Keymaster
219#PRODUCT_PACKAGES += \
220#	android.hardware.keymaster@4.0-impl \
221#	android.hardware.keymaster@4.0-service
222
223#PRODUCT_PACKAGES += android.hardware.keymaster@4.0-service.remote
224#PRODUCT_PACKAGES += android.hardware.keymaster@4.1-service.remote
225#LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service
226#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
227
228# PRODUCT_PROPERTY_OVERRIDES += \
229# 	ro.hardware.keystore_desede=true \
230# 	ro.hardware.keystore=software \
231# 	ro.hardware.gatekeeper=software
232
233# PowerStats HAL
234PRODUCT_SOONG_NAMESPACES += \
235    device/google/shusky/powerstats/shiba \
236    device/google/shusky
237
238# WiFi Overlay
239PRODUCT_PACKAGES += \
240	WifiOverlay2023 \
241	PixelWifiOverlay2023
242
243# Trusty liboemcrypto.so
244PRODUCT_SOONG_NAMESPACES += vendor/google_devices/shusky/prebuilts
245
246# Location
247# SDK build system
248include device/google/gs-common/gps/brcm/device.mk
249
250PRODUCT_COPY_FILES += \
251       device/google/shusky/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer
252
253ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
254        PRODUCT_COPY_FILES += \
255            device/google/shusky/location/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
256            device/google/shusky/location/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf \
257            device/google/shusky/location/gps.xml.sb3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
258else
259        PRODUCT_COPY_FILES += \
260            device/google/shusky/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
261            device/google/shusky/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf \
262            device/google/shusky/location/gps_user.xml.sb3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
263endif
264
265# Set zram size
266PRODUCT_VENDOR_PROPERTIES += \
267	vendor.zram.size=50p \
268	persist.device_config.configuration.disable_rescue_party=true
269
270# Fingerprint HAL
271GOODIX_CONFIG_BUILD_VERSION := g7_trusty
272include device/google/gs101/fingerprint/udfps_common.mk
273ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
274include device/google/gs101/fingerprint/udfps_shipping.mk
275else
276include device/google/gs101/fingerprint/udfps_factory.mk
277endif
278
279# Fingerprint exposure compensation
280PRODUCT_VENDOR_PROPERTIES += \
281    persist.vendor.udfps.auto_exposure_compensation_supported=true
282
283# Display
284PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
285PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.ignore_hdr_camera_layers=true
286# lhbm peak brightness delay: decided by kernel
287PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.primarydisplay.lhbm.frames_to_reach_peak_brightness=0
288
289# display color data
290PRODUCT_COPY_FILES += \
291	device/google/shusky/shiba/panel_config_google-bigsurf_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/panel_config_google-bigsurf_cal0.pb \
292	device/google/shusky/shiba/panel_config_google-shoreline_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/panel_config_google-shoreline_cal0.pb
293
294PRODUCT_VENDOR_PROPERTIES += \
295    persist.vendor.udfps.als_feed_forward_supported=true \
296    persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
297
298PRODUCT_COPY_FILES += \
299	device/google/shusky/shiba/display_colordata_google-bigsurf_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_google-bigsurf_cal0.pb \
300	device/google/shusky/shiba/display_colordata_google-shoreline_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_google-shoreline_cal0.pb \
301    device/google/shusky/shiba/display_golden_google-bigsurf_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_google-bigsurf_cal0.pb \
302    device/google/shusky/shiba/display_golden_google-shoreline_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_google-shoreline_cal0.pb
303
304# Camera Vendor property
305PRODUCT_VENDOR_PROPERTIES += \
306    persist.vendor.camera.front_720P_always_binning=true
307
308# Media Performance Class 14
309PRODUCT_PRODUCT_PROPERTIES += ro.odm.build.media_performance_class=33
310
311# Display LBE
312PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
313
314# Vibrator HAL
315ACTUATOR_MODEL := luxshare_ict_081545
316ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1
317PRODUCT_VENDOR_PROPERTIES += \
318    ro.vendor.vibrator.hal.chirp.enabled=0 \
319    ro.vendor.vibrator.hal.device.mass=0.187 \
320    ro.vendor.vibrator.hal.loc.coeff=2.75 \
321    persist.vendor.vibrator.hal.context.enable=false \
322    persist.vendor.vibrator.hal.context.scale=60 \
323    persist.vendor.vibrator.hal.context.fade=true \
324    persist.vendor.vibrator.hal.context.cooldowntime=1600 \
325    persist.vendor.vibrator.hal.context.settlingtime=5000 \
326    ro.vendor.vibrator.hal.dbc.enable=true \
327    ro.vendor.vibrator.hal.dbc.envrelcoef=8353728 \
328    ro.vendor.vibrator.hal.dbc.riseheadroom=1909602 \
329    ro.vendor.vibrator.hal.dbc.fallheadroom=1909602 \
330    ro.vendor.vibrator.hal.dbc.txlvlthreshfs=2516583 \
331    ro.vendor.vibrator.hal.dbc.txlvlholdoffms=0 \
332    ro.vendor.vibrator.hal.pm.activetimeout=5
333
334# Increment the SVN for any official public releases
335PRODUCT_VENDOR_PROPERTIES += \
336    ro.vendor.build.svn=11
337
338# P23 Devices no longer need rlsservice
339PRODUCT_VENDOR_PROPERTIES += \
340    persist.vendor.camera.rls_supported=false
341
342# WLC userdebug specific
343ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
344    PRODUCT_COPY_FILES += \
345        device/google/zuma/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
346endif
347
348# Setup Wizard device-specific settings
349PRODUCT_PRODUCT_PROPERTIES += \
350    setupwizard.feature.enable_quick_start_flow=true \
351
352# Quick Start device-specific settings
353PRODUCT_PRODUCT_PROPERTIES += \
354    ro.quick_start.oem_id=00e0 \
355    ro.quick_start.device_id=shiba
356
357# PKVM Memory Reclaim
358PRODUCT_VENDOR_PROPERTIES += \
359    hypervisor.memory_reclaim.supported=1
360
361# Settings Overlay
362PRODUCT_PACKAGES += \
363    SettingsShibaOverlay
364
365# Window Extensions
366$(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk)
367
368# Disable Settings large-screen optimization enabled by Window Extensions
369PRODUCT_SYSTEM_PROPERTIES += \
370    persist.settings.large_screen_opt.enabled=false
371
372# Keyboard bottom padding in dp for portrait mode
373PRODUCT_PRODUCT_PROPERTIES += \
374     ro.com.google.ime.kb_pad_port_b=8
375
376# Enable camera exif model/make reporting
377PRODUCT_VENDOR_PROPERTIES += \
378    persist.vendor.camera.exif_reveal_make_model=true
379
380# Enable DeviceAsWebcam support
381PRODUCT_VENDOR_PROPERTIES += \
382    ro.usb.uvc.enabled=true
383
384# DisplayPort should be disabled by default (b/300167292)
385PRODUCT_VENDOR_PROPERTIES += \
386       persist.vendor.usb.displayport.enabled=0
387