diff --git a/aosp_felix.mk b/aosp_felix.mk index 9cd514a..949a93a 100644 --- a/aosp_felix.mk +++ b/aosp_felix.mk @@ -16,10 +16,8 @@ TARGET_LINUX_KERNEL_VERSION := 5.10 -DEVICE_USES_NO_TRUSTY := true USE_SWIFTSHADER := true BOARD_USES_SWIFTSHADER := true -BOARD_WITHOUT_RADIO := true $(call inherit-product, device/google/gs201/aosp_common.mk) $(call inherit-product, device/google/felix/device-felix.mk) diff --git a/audio/felix/audio-tables.mk b/audio/felix/audio-tables.mk index cabcd77..0ab8715 100644 --- a/audio/felix/audio-tables.mk +++ b/audio/felix/audio-tables.mk @@ -22,7 +22,8 @@ PRODUCT_COPY_FILES += \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/config/audio_platform_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_configuration.xml \ - device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/config/sound_trigger_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_configuration.xml + device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/config/sound_trigger_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_configuration.xml \ + frameworks/av/services/audiopolicy/config/bluetooth_with_le_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml # AudioEffectHAL Configuration PRODUCT_COPY_FILES += \ @@ -45,6 +46,7 @@ PRODUCT_COPY_FILES += \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HEADSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HEADSET.dat \ + device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/mcps.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/mcps.dat \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_config.ini:$(TARGET_COPY_OUT_VENDOR)/etc/waves_config.ini \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/waves_preset.mps diff --git a/audio/felix/config/audio_platform_configuration.xml b/audio/felix/config/audio_platform_configuration.xml index f8cd663..9a55347 100644 --- a/audio/felix/config/audio_platform_configuration.xml +++ b/audio/felix/config/audio_platform_configuration.xml @@ -286,7 +286,7 @@ - + diff --git a/audio/felix/config/audio_policy_configuration.xml b/audio/felix/config/audio_policy_configuration.xml index 6093ec9..c8f3f6c 100644 --- a/audio/felix/config/audio_policy_configuration.xml +++ b/audio/felix/config/audio_policy_configuration.xml @@ -28,7 +28,7 @@ Speaker - diff --git a/audio/felix/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/felix/config/audio_policy_configuration_a2dp_offload_disabled.xml index 085c19c..3c78481 100644 --- a/audio/felix/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/felix/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -28,7 +28,7 @@ Speaker - diff --git a/audio/felix/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/felix/config/audio_policy_configuration_bluetooth_legacy_hal.xml index e10e883..e21e5e4 100644 --- a/audio/felix/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/felix/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -28,7 +28,7 @@ Speaker - diff --git a/audio/felix/config/mixer_paths.xml b/audio/felix/config/mixer_paths.xml index 722f744..808e53d 100644 --- a/audio/felix/config/mixer_paths.xml +++ b/audio/felix/config/mixer_paths.xml @@ -27,7 +27,8 @@ - + + @@ -47,6 +48,10 @@ + + + + diff --git a/audio/felix/config/mixer_paths_factory.xml b/audio/felix/config/mixer_paths_factory.xml index db90b41..9bc6171 100644 --- a/audio/felix/config/mixer_paths_factory.xml +++ b/audio/felix/config/mixer_paths_factory.xml @@ -35,6 +35,14 @@ + + + + + + + + @@ -372,11 +380,13 @@ + + diff --git a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-cali.wmfw b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-cali.wmfw index 5530a4d..19ed6b0 100644 Binary files a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-cali.wmfw and b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-cali.wmfw differ diff --git a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-diag.wmfw b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-diag.wmfw index 616262a..bd972a4 100644 Binary files a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-diag.wmfw and b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-diag.wmfw differ diff --git a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-prot.wmfw b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-prot.wmfw index 5530a4d..19ed6b0 100644 Binary files a/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-prot.wmfw and b/audio/felix/cs35l41/fw/cs35l41-dsp1-spk-prot.wmfw differ diff --git a/audio/felix/tuning/fortemedia/mcps.dat b/audio/felix/tuning/fortemedia/mcps.dat new file mode 100644 index 0000000..04fc100 Binary files /dev/null and b/audio/felix/tuning/fortemedia/mcps.dat differ diff --git a/audio/felix/tuning/waves/waves_preset.mps b/audio/felix/tuning/waves/waves_preset.mps index a6ba0d4..0237e66 100644 Binary files a/audio/felix/tuning/waves/waves_preset.mps and b/audio/felix/tuning/waves/waves_preset.mps differ diff --git a/conf/init.felix.rc b/conf/init.felix.rc index b146c0a..b8b258e 100644 --- a/conf/init.felix.rc +++ b/conf/init.felix.rc @@ -70,6 +70,9 @@ on property:vendor.mfgapi.touchpanel.permission=1 on post-fs-data chown bluetooth system /proc/bluetooth/timesync + # Speaker amp permission + chmod 644 /mnt/vendor/persist/audio/speaker.cal + # Fingerprint on post-fs-data chown system system /dev/goodix_fp @@ -102,3 +105,9 @@ on init && property:ro.bootmode=normal # SecureElement eSE2 cts mode on property:persist.vendor.se.ese2.mode=ctsmode write /sys/class/st33spi/st33spi/st33spi_state 33 + +# charger driver exposes now finer grain control, map demo mode to those properties +# NOTE: demo mode can only be exit wiping data (which reset the persist properties) +on property:sys.retaildemo.enabled=1 + setprop persist.vendor.charge.stop.level 35 + setprop persist.vendor.charge.start.level 30 diff --git a/device-felix.mk b/device-felix.mk index dffb664..fa99dfb 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -22,11 +22,13 @@ $(call inherit-product-if-exists, vendor/google_devices/felix/prebuilts/device-v $(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk) $(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk) $(call inherit-product-if-exists, vendor/google_devices/felix/proprietary/felix/device-vendor-felix.mk) +$(call inherit-product-if-exists, vendor/google_devices/felix/proprietary/device-vendor.mk) DEVICE_PACKAGE_OVERLAYS += device/google/felix/felix/overlay -include device/google/gs201/device-shipping-common.mk include device/google/felix/audio/felix/audio-tables.mk +include device/google/gs201/device-shipping-common.mk +$(call soong_config_set,fp_hal_feature,pixel_product, product_a) include hardware/google/pixel/vibrator/cs40l26/device-stereo.mk include device/google/gs101/bluetooth/bluetooth.mk ifeq ($(filter factory_felix, $(TARGET_PRODUCT)),) @@ -63,6 +65,12 @@ PRODUCT_COPY_FILES += \ device/google/felix/felix/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \ device/google/felix/felix/display_golden_cal1.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal1.pb +# Display LBE +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 + +#config of display brightness dimming +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.brightness.dimming.usage=1 + # NFC PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ @@ -105,14 +113,18 @@ PRODUCT_COPY_FILES += \ # Bluetooth HAL DEVICE_MANIFEST_FILE += \ - device/google/pantah/bluetooth/manifest_bluetooth.xml + device/google/felix/bluetooth/manifest_bluetooth.xml PRODUCT_SOONG_NAMESPACES += \ vendor/broadcom/bluetooth PRODUCT_PACKAGES += \ android.hardware.bluetooth@1.1-service.bcmbtlinux \ bt_vendor.conf PRODUCT_COPY_FILES += \ - device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf + device/google/felix/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf +PRODUCT_PROPERTY_OVERRIDES += \ + ro.bluetooth.a2dp_offload.supported=true \ + persist.bluetooth.a2dp_offload.disabled=false \ + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac # Keymaster HAL #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service @@ -220,3 +232,7 @@ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/felix/prebuilts # Set zram size PRODUCT_VENDOR_PROPERTIES += \ vendor.zram.size=3g + +# Set support one-handed mode +PRODUCT_PRODUCT_PROPERTIES += \ + ro.support_one_handed_mode=true diff --git a/felix/BoardConfig.mk b/felix/BoardConfig.mk index 718ec84..6f33c15 100644 --- a/felix/BoardConfig.mk +++ b/felix/BoardConfig.mk @@ -21,4 +21,5 @@ USES_DEVICE_GOOGLE_FELIX := true include device/google/gs201/BoardConfig-common.mk -include vendor/google_devices/gs201/prebuilts/BoardConfigVendor.mk +-include vendor/google_devices/felix/proprietary/BoardConfigVendor.mk include device/google/felix-sepolicy/felix-sepolicy.mk diff --git a/felix/overlay/frameworks/base/core/res/res/values/config.xml b/felix/overlay/frameworks/base/core/res/res/values/config.xml index 4a30b76..0fbd648 100644 --- a/felix/overlay/frameworks/base/core/res/res/values/config.xml +++ b/felix/overlay/frameworks/base/core/res/res/values/config.xml @@ -253,22 +253,4 @@ "local:4619827677550801153" - - "local:4619827677550801152" - 0 - 510 - 0 - - - - "local:4619827677550801153" - 0 - 590 - 0 - - - - @array/config_sfps_sensor_props_1 - @array/config_sfps_sensor_props_2 - diff --git a/felix/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/felix/overlay/frameworks/base/packages/SystemUI/res/values/config.xml index 45a32eb..cdc708a 100644 --- a/felix/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ b/felix/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -20,49 +20,6 @@ - - com.google.sensor.binned_brightness - - - true - - - true - - - - -1 - 3 - 3 - 16 - 16 - - - - - -1 - 133 - 0 - 0 - 0 - - - - - - Binned Brightness 1 (wake-up) - Binned Brightness 0 (wake-up) - Binned Brightness 0 (wake-up) - - diff --git a/manifest.xml b/manifest.xml index b87c09a..73b4e42 100644 --- a/manifest.xml +++ b/manifest.xml @@ -2,7 +2,7 @@ android.hardware.audio hwbinder - 7.0 + 7.1 IDevicesFactory default @@ -143,7 +143,7 @@ vendor.google.whitechapel.audio.audioext hwbinder - 2.0 + 3.0 IAudioExt default diff --git a/media_profiles_felix.xml b/media_profiles_felix.xml index 338f171..ee7a033 100644 --- a/media_profiles_felix.xml +++ b/media_profiles_felix.xml @@ -646,6 +646,19 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +