diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..1451bd8 --- /dev/null +++ b/OWNERS @@ -0,0 +1 @@ +per-file powerhint.json = jychen@google.com,jenhaochen@google.com,wvw@google.com,joaodias@google.com diff --git a/audio/bluejay/config/audio_platform_configuration.xml b/audio/bluejay/config/audio_platform_configuration.xml index 2b72e61..f510d08 100644 --- a/audio/bluejay/config/audio_platform_configuration.xml +++ b/audio/bluejay/config/audio_platform_configuration.xml @@ -198,8 +198,8 @@ - - + + diff --git a/audio/bluejay/config/audio_policy_configuration.xml b/audio/bluejay/config/audio_policy_configuration.xml index d07b023..40785ff 100644 --- a/audio/bluejay/config/audio_policy_configuration.xml +++ b/audio/bluejay/config/audio_policy_configuration.xml @@ -37,7 +37,7 @@ samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD"> diff --git a/audio/bluejay/config/mixer_paths.xml b/audio/bluejay/config/mixer_paths.xml index 57e261b..af4517c 100644 --- a/audio/bluejay/config/mixer_paths.xml +++ b/audio/bluejay/config/mixer_paths.xml @@ -30,6 +30,9 @@ + + + diff --git a/bluejay/BoardConfig.mk b/bluejay/BoardConfig.mk index 6c80b2d..cb99800 100644 --- a/bluejay/BoardConfig.mk +++ b/bluejay/BoardConfig.mk @@ -13,10 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +ifdef PHONE_CAR_BOARD_PRODUCT + include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk +else + TARGET_SCREEN_DENSITY := 420 +endif + TARGET_BOARD_INFO_FILE := device/google/bluejay/board-info.txt TARGET_BOOTLOADER_BOARD_NAME := bluejay -TARGET_SCREEN_DENSITY := 420 USES_DEVICE_GOOGLE_BLUEJAY := true +BOARD_KERNEL_CMDLINE += disable_dma32=on include device/google/gs101/BoardConfig-common.mk include device/google/gs101/wifi/BoardConfig-wifi.mk diff --git a/bluejay/overlay/frameworks/base/core/res/res/values/config.xml b/bluejay/overlay/frameworks/base/core/res/res/values/config.xml index 3222ec0..a1b0ce3 100644 --- a/bluejay/overlay/frameworks/base/core/res/res/values/config.xml +++ b/bluejay/overlay/frameworks/base/core/res/res/values/config.xml @@ -152,7 +152,7 @@ when adapting to brighter or darker environments. This parameter controls how quickly brightness changes occur in response to an observed change in light level that exceeds the hysteresis threshold. --> - 2000 + 1000 4000 @@ -166,76 +166,100 @@ com.google.sensor.quick_pickup + + 0.32 + 64 - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 20 - 30 - 40 - 50 - 60 - 70 - 80 - 90 - 100 - + + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + 100 + 200 + 300 + 400 + 500 + 1000 + 2000 + 3000 + 4000 + - - 11373 - 5000 - 4333 - 3666 - 3000 - 2760 - 2520 - 2280 - 2040 - 1800 - 800 - 527 - 500 - 470 - 396 - 322 - 248 - 174 - 99 - 99 - + + 5186 + 4333 + 3666 + 2999 + 2759 + 2519 + 2279 + 2039 + 1799 + 799 + 527 + 499 + 470 + 517 + 565 + 612 + 660 + 708 + 742 + 636 + 582 + 549 + 369 + 294 + 269 + 220 + 220 + - - 853 - 700 - 683 - 666 - 650 - 640 - 630 - 620 - 610 - 600 - 500 - 500 - 440 - 385 - 348 - 311 - 274 - 237 - 200 - 200 - + + 525 + 683 + 666 + 650 + 640 + 630 + 620 + 610 + 600 + 500 + 500 + 440 + 385 + 382 + 379 + 376 + 373 + 371 + 367 + 387 + 397 + 403 + 380 + 345 + 333 + 283 + 283 + diff --git a/bluejay/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/bluejay/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index 992a8f6..c57de12 100644 --- a/bluejay/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/bluejay/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -46,5 +46,14 @@ 950px 1110px - + + 56px + + + 0 + + + 16px + diff --git a/conf/init.bluejay.rc b/conf/init.bluejay.rc index ffd8574..1ee067c 100644 --- a/conf/init.bluejay.rc +++ b/conf/init.bluejay.rc @@ -3,7 +3,7 @@ import /vendor/etc/init/hw/init.gs101.rc import /vendor/etc/init/hw/init.blueport.rc # Start the twoshay touch service -on late-init && property:vendor.device.modules.ready=1 +on property:vendor.device.modules.ready=1 start twoshay # Toggle glove_mode according to touch_sensitivity_mode @@ -30,3 +30,11 @@ on property:ro.boot.hardware.sku=GB17L on property:sys.retaildemo.enabled=1 setprop persist.vendor.charge.stop.level 35 setprop persist.vendor.charge.start.level 30 + +# Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints +on property:sys.boot_completed=1 + trigger override-sf-uclamp + +on override-sf-uclamp + write /proc/vendor_sched/rt_uclamp_min 0 + write /proc/vendor_sched/sf_uclamp_min 0 diff --git a/device-bluejay.mk b/device-bluejay.mk index 2f9e699..d4ecd30 100644 --- a/device-bluejay.mk +++ b/device-bluejay.mk @@ -42,6 +42,8 @@ else include device/google/gs101/fingerprint/udfps_factory.mk endif +# go/lyric-soong-variables +$(call soong_config_set,lyric,camera_hardware,bluejay) $(call soong_config_set,lyric,tuning_product,bluejay) $(call soong_config_set,google3a_config,target_device,bluejay) @@ -60,7 +62,8 @@ PRODUCT_COPY_FILES += \ # Thermal Config PRODUCT_COPY_FILES += \ - device/google/bluejay/thermal_info_config_bluejay.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json + device/google/bluejay/thermal_info_config_bluejay.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ + device/google/bluejay/thermal_info_config_charge_bluejay.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json # Power HAL config PRODUCT_COPY_FILES += \ @@ -98,7 +101,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ NfcNci \ Tag \ - android.hardware.nfc@1.2-service.st + android.hardware.nfc-service.st # SecureElement PRODUCT_PACKAGES += \ @@ -110,7 +113,6 @@ PRODUCT_COPY_FILES += \ device/google/bluejay/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf DEVICE_MANIFEST_FILE += \ - device/google/bluejay/nfc/manifest_nfc.xml \ device/google/bluejay/nfc/manifest_se_bluejay.xml # PowerStats HAL @@ -120,7 +122,7 @@ PRODUCT_SOONG_NAMESPACES += \ # Increment the SVN for any official public releases PRODUCT_VENDOR_PROPERTIES += \ - ro.vendor.build.svn=18 + ro.vendor.build.svn=20 # DCK properties based on target PRODUCT_PROPERTY_OVERRIDES += \ @@ -152,7 +154,8 @@ PRODUCT_COPY_FILES += \ # Bluetooth PRODUCT_PRODUCT_PROPERTIES += \ - persist.bluetooth.a2dp_aac.vbr_supported=true + persist.bluetooth.a2dp_aac.vbr_supported=true \ + persist.bluetooth.firmware.selection=BCM.hcd # Bluetooth HAL PRODUCT_PACKAGES += \ @@ -160,7 +163,7 @@ PRODUCT_PACKAGES += \ # Set zram size PRODUCT_VENDOR_PROPERTIES += \ - vendor.zram.size=2g + vendor.zram.size=3g # Enable camera 1080P 60FPS binning mode PRODUCT_VENDOR_PROPERTIES += \ @@ -221,7 +224,9 @@ PRODUCT_SHIPPING_API_LEVEL := 32 # Vibrator HAL PRODUCT_VENDOR_PROPERTIES += \ - ro.vendor.vibrator.hal.supported_primitives=243 + ro.vendor.vibrator.hal.supported_primitives=243 \ + ro.vendor.vibrator.hal.f0.comp.enabled=0 \ + ro.vendor.vibrator.hal.redc.comp.enabled=0 # Device features PRODUCT_COPY_FILES += \ @@ -231,3 +236,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PRODUCT_PROPERTIES += \ ro.com.google.ime.kb_pad_port_b=6.4 \ ro.com.google.ime.height_ratio=1.05 + +# Enable adpf cpu hint session for SurfaceFlinger +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + debug.sf.enable_adpf_cpu_hint=true diff --git a/gps.xml.b3 b/gps.xml.b3 index a9d4598..99e3b58 100644 --- a/gps.xml.b3 +++ b/gps.xml.b3 @@ -20,7 +20,9 @@ SuplSslMethod="SSLv23_NO_TLSv1_2" SuplEnable="true" - SuplUseApn="true" + SuplUseApn="false" + SuplUseApnNI="true" + SuplDummyCellInfo="true" SuplUseFwCellInfo="false" SuplTlsCertDirPath="/etc/security/cacerts" SuplTlsCertPath="/vendor/etc/gnss/gps.cer" @@ -57,9 +59,11 @@ CpLppeUseAgnssLocForEmptyDbh="true" ReAidingOnHotStart="false" ReAidingIntervalSec="1200" + PpsDevice="/sys/class/pps/pps0/assert_elapsed" />