diff options
author | Xin Li <delphij@google.com> | 2019-05-13 15:38:44 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2019-05-13 15:38:44 -0700 |
commit | 01c46e7078bf69ac711a11c1f8faaa1d8b9ef99f (patch) | |
tree | 2b74a771e48b26519e5b12b93b9a0ddd93432a62 | |
parent | 9b682e93f12f78926c0bbdcdfca1d33465550de6 (diff) | |
parent | 626e83b852452bf6a8c7f6754dbebf2ecf3fe5a9 (diff) | |
download | bonito-temp_b_132622481_stage-aosp-master.tar.gz |
DO NOT MERGE - Merge pi-platform-release (PPRL.190505.001) into stage-aosp-mastertemp_b_132622481_stage-aosp-master
Bug: 132622481
Change-Id: If757653ce33354fb4422790c1aec8cb6e247a2ad
25 files changed, 103 insertions, 15 deletions
diff --git a/audio/rt5514_dsp_fw1.bin b/audio/rt5514_dsp_fw1.bin Binary files differindex 138d47a8..1b7ea9fc 100644 --- a/audio/rt5514_dsp_fw1.bin +++ b/audio/rt5514_dsp_fw1.bin diff --git a/audio/rt5514_dsp_fw2.bin b/audio/rt5514_dsp_fw2.bin Binary files differindex ed44abdc..bb8b13b5 100644 --- a/audio/rt5514_dsp_fw2.bin +++ b/audio/rt5514_dsp_fw2.bin diff --git a/audio/rt5514_dsp_fw3.bin b/audio/rt5514_dsp_fw3.bin Binary files differindex e0685319..0d90a93d 100644 --- a/audio/rt5514_dsp_fw3.bin +++ b/audio/rt5514_dsp_fw3.bin diff --git a/audio/rt5514_dsp_fw4.bin b/audio/rt5514_dsp_fw4.bin Binary files differnew file mode 100644 index 00000000..9e334a18 --- /dev/null +++ b/audio/rt5514_dsp_fw4.bin diff --git a/audio_platform_info_intcodec_b4.xml b/audio_platform_info_intcodec_b4.xml index 53a82d95..b18b5b37 100644 --- a/audio_platform_info_intcodec_b4.xml +++ b/audio_platform_info_intcodec_b4.xml @@ -47,6 +47,7 @@ <device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="14"/> <device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" acdb_id="19"/> <device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" acdb_id="19"/> + <device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="117"/> <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" acdb_id="201"/> <device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="8"/> <device name="SND_DEVICE_IN_VOICE_DMIC_TMUS" acdb_id="99"/> diff --git a/audio_platform_info_intcodec_s4.xml b/audio_platform_info_intcodec_s4.xml index 04267538..0a31eefe 100644 --- a/audio_platform_info_intcodec_s4.xml +++ b/audio_platform_info_intcodec_s4.xml @@ -47,6 +47,7 @@ <device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="14"/> <device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" acdb_id="19"/> <device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" acdb_id="19"/> + <device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="117"/> <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" acdb_id="201"/> <device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="8"/> <device name="SND_DEVICE_IN_VOICE_DMIC_TMUS" acdb_id="99"/> diff --git a/device-bonito.mk b/device-bonito.mk index 9086c032..da2eb08c 100644 --- a/device-bonito.mk +++ b/device-bonito.mk @@ -46,4 +46,4 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Add white point compensated coefficient PRODUCT_PROPERTY_OVERRIDES += \ - vendor.display.white_point_compensated_coefficient=0.0051,-0.3462,18.964,0.0047,-0.1155,-10.312,0.005,-0.2931,12.301 + vendor.display.adaptive_white_coefficient=0.0051,-0.3462,18.964,0.0047,-0.1155,-10.312,0.005,-0.2931,12.301 diff --git a/device-sargo.mk b/device-sargo.mk index f8c185a4..2edf6450 100644 --- a/device-sargo.mk +++ b/device-sargo.mk @@ -48,4 +48,4 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Add white point compensated coefficient PRODUCT_PROPERTY_OVERRIDES += \ - vendor.display.white_point_compensated_coefficient=0.0031,0.5535,-87.498,0.0031,0.5535,-87.498,0.0031,0.5535,-87.498 + vendor.display.adaptive_white_coefficient=0.0031,0.5535,-87.498,0.0031,0.5535,-87.498,0.0031,0.5535,-87.498 @@ -91,6 +91,7 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init.insmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.insmod.sh \ $(LOCAL_PATH)/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg \ $(LOCAL_PATH)/thermal-engine-$(PRODUCT_HARDWARE).conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-$(PRODUCT_HARDWARE).conf \ + $(LOCAL_PATH)/init.firstboot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.firstboot.sh \ $(LOCAL_PATH)/init.ramoops.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ramoops.sh # Edge Sense initialization script. @@ -249,6 +250,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ vendor.display.foss.config=1 \ vendor.display.foss.config_path=/vendor/etc/FOSSConfig.xml +# Add saturation parameters +PRODUCT_PROPERTY_OVERRIDES += \ + vendor.display.adaptive_saturation_parameter=1.1574,-0.0426,-0.0426,-0.143,1.057,-0.143,-0.0144,-0.0144,1.1856 + # b/73168288 PRODUCT_PROPERTY_OVERRIDES += \ vendor.display.disable_rotator_downscale=1 @@ -732,7 +737,8 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/google/bonito/audio/rt5514_dsp_fw1.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw1.bin \ device/google/bonito/audio/rt5514_dsp_fw2.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw2.bin \ - device/google/bonito/audio/rt5514_dsp_fw3.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw3.bin + device/google/bonito/audio/rt5514_dsp_fw3.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw3.bin \ + device/google/bonito/audio/rt5514_dsp_fw4.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw4.bin # Keymaster configuration PRODUCT_COPY_FILES += \ diff --git a/init.firstboot.sh b/init.firstboot.sh new file mode 100755 index 00000000..05a1b856 --- /dev/null +++ b/init.firstboot.sh @@ -0,0 +1,18 @@ +#!/vendor/bin/sh + +# Init starts this script in the factory, to trigger shutdown after +# setupwizard has started, and USB is removed. + +# wait for system to settle down after sys.boot_complete +sleep 5 + +# Wait for USB to be removed. +type=`cat /sys/class/power_supply/usb/typec_mode` +while [ "x$type" != "xNothing attached" ]; do + echo Wait for \"$type\" == \"Nothing attached\" + sleep 1; + type=`cat /sys/class/power_supply/usb/typec_mode` +done; + +# Shutdown +setprop sys.powerctl shutdown diff --git a/init.hardware.rc b/init.hardware.rc index a1bf6541..5a5a1468 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -503,8 +503,8 @@ on property:sys.boot_completed=1 write /dev/stune/top-app/blkio.group_idle 2 write /dev/stune/rt/blkio.group_idle 2 - write /dev/stune/blkio.weight 10 - write /dev/stune/foreground/blkio.weight 100 + write /dev/stune/blkio.weight 1000 + write /dev/stune/foreground/blkio.weight 1000 write /dev/stune/background/blkio.weight 10 write /dev/stune/top-app/blkio.weight 1000 write /dev/stune/rt/blkio.weight 1000 @@ -842,3 +842,11 @@ on property:vendor.all.modules.ready=1 wait /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input2/read_report chown system system /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input2/read_report chown system system /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input2/suspend + +on property:sys.boot_completed=1 && property:ro.boot.mode=firstboot + start init-firstboot-sh + +service init-firstboot-sh /vendor/bin/init.firstboot.sh + user nobody + disabled + oneshot diff --git a/nfc/libnfc-nxp.bonito.conf b/nfc/libnfc-nxp.bonito.conf index 65b63c15..76947866 100644 --- a/nfc/libnfc-nxp.bonito.conf +++ b/nfc/libnfc-nxp.bonito.conf @@ -194,7 +194,7 @@ NXP_I2C_FRAGMENTATION_ENABLED=0x00 ############################################################################### # Core configuration settings -NXP_CORE_CONF={ 20, 02, 31, 0F, +NXP_CORE_CONF={ 20, 02, 2D, 0F, 85, 01, 01, 28, 01, 00, 21, 01, 00, @@ -202,7 +202,7 @@ NXP_CORE_CONF={ 20, 02, 31, 0F, 31, 01, 03, 32, 01, 60, 38, 01, 01, - 33, 04, 01, 02, 03, 04, + 33, 00, 54, 01, 06, 50, 01, 02, 5B, 01, 00, diff --git a/nfc/libnfc-nxp.sargo.conf b/nfc/libnfc-nxp.sargo.conf index 69b3b409..32cff77f 100644 --- a/nfc/libnfc-nxp.sargo.conf +++ b/nfc/libnfc-nxp.sargo.conf @@ -194,7 +194,7 @@ NXP_I2C_FRAGMENTATION_ENABLED=0x00 ############################################################################### # Core configuration settings -NXP_CORE_CONF={ 20, 02, 31, 0F, +NXP_CORE_CONF={ 20, 02, 2D, 0F, 85, 01, 01, 28, 01, 00, 21, 01, 00, @@ -202,7 +202,7 @@ NXP_CORE_CONF={ 20, 02, 31, 0F, 31, 01, 03, 32, 01, 60, 38, 01, 01, - 33, 04, 01, 02, 03, 04, + 33, 00, 54, 01, 06, 50, 01, 02, 5B, 01, 00, diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 74d2e717..3845c0e7 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -389,6 +389,14 @@ meanings. --> <integer name="config_defaultNotificationVibrationIntensity">3</integer> + <!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR + requirements --> + <bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">true</bool> + + <!-- Boolean indicating whether framework should use detection of softAP mode to set the tx + power limit for meeting SAR requirements --> + <bool translatable="false" name="config_wifi_framework_enable_soft_ap_sar_tx_power_limit">true</bool> + <!-- Applications which are disabled unless matching a particular sku --> <string-array name="config_disableApksUnlessMatchedSku_apk_list" translatable="false"> <item>com.felicanetworks.mfs</item> diff --git a/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020b.png b/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020b.png Binary files differindex 507d0a1d..6a481a78 100644 --- a/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020b.png +++ b/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020b.png diff --git a/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020d.png b/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020d.png Binary files differindex dc68894a..dc6d0dcd 100644 --- a/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020d.png +++ b/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020d.png diff --git a/powerhint.json b/powerhint.json index 4b3572cf..127a5e32 100644 --- a/powerhint.json +++ b/powerhint.json @@ -185,6 +185,15 @@ "HoldFd": true }, { + "Name": "ForegroundCpuset", + "Path": "/dev/cpuset/foreground/cpus", + "Values": [ + "0-5", + "0-5,7" + ], + "ResetOnInit": true + }, + { "Name": "SchedBoost", "Path": "/proc/sys/kernel/sched_boost", "Values": [ @@ -257,6 +266,12 @@ }, { "PowerHint": "LAUNCH", + "Node": "ForegroundCpuset", + "Duration": 5000, + "Value": "0-5" + }, + { + "PowerHint": "LAUNCH", "Node": "SchedBoost", "Duration": 5000, "Value": "1" diff --git a/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020f.png b/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020f.png Binary files differindex 17b71380..861b8ecb 100644 --- a/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020f.png +++ b/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020f.png diff --git a/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020h.png b/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020h.png Binary files differindex b3aa95c8..35c7c4a1 100644 --- a/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020h.png +++ b/sargo/overlay/packages/apps/Settings/res/drawable/regulatory_info_g020h.png diff --git a/self-extractors/extract-lists.txt b/self-extractors/extract-lists.txt index 1535cbb7..de28ec9b 100644 --- a/self-extractors/extract-lists.txt +++ b/self-extractors/extract-lists.txt @@ -5,6 +5,7 @@ ;; qcom) TO_EXTRACT="\ + system/app/QtiTelephonyService/QtiTelephonyService.apk \ system/compatibility_matrix.xml \ system/etc/cne/andsfCne.xml \ system/etc/cne/Nexus/ATT/ATT_profiles.xml \ @@ -86,7 +87,6 @@ system/lib/lib-imsvtutils.so \ system/lib/liblistenjni.so \ system/lib/liblistensoundmodel2.so \ - system/lib/liblogwrap.so \ system/lib/libmdsprpc_system.so \ system/lib/libminui.so \ system/lib/libnl.so \ diff --git a/self-extractors/qcom/staging/Android.mk b/self-extractors/qcom/staging/Android.mk new file mode 100644 index 00000000..b7bee38f --- /dev/null +++ b/self-extractors/qcom/staging/Android.mk @@ -0,0 +1,15 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +ifneq ($(filter bonito, $(TARGET_DEVICE)),) +LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) +LOCAL_MODULE := QtiTelephonyService +LOCAL_MODULE_TAGS := optional +LOCAL_BUILT_MODULE_STEM := package.apk +LOCAL_MODULE_OWNER := qcom +LOCAL_MODULE_CLASS := APPS +LOCAL_SRC_FILES := $(LOCAL_MODULE).apk +LOCAL_CERTIFICATE := platform +include $(BUILD_PREBUILT) +endif diff --git a/self-extractors/qcom/staging/device-partial.mk b/self-extractors/qcom/staging/device-partial.mk index 7c64490c..67e3afb2 100644 --- a/self-extractors/qcom/staging/device-partial.mk +++ b/self-extractors/qcom/staging/device-partial.mk @@ -15,7 +15,8 @@ # AOSP packages required by the blobs PRODUCT_PACKAGES := \ com.android.ims.rcsmanager.xml \ - com.android.ims.rcsmanager + com.android.ims.rcsmanager \ + QtiTelephonyService # blob(s) necessary for bonito hardware PRODUCT_COPY_FILES := \ @@ -100,7 +101,6 @@ PRODUCT_COPY_FILES := \ vendor/qcom/bonito/proprietary/lib-imsvtutils.so:system/lib/lib-imsvtutils.so:qcom \ vendor/qcom/bonito/proprietary/liblistenjni.so:system/lib/liblistenjni.so:qcom \ vendor/qcom/bonito/proprietary/liblistensoundmodel2.so:system/lib/liblistensoundmodel2.so:qcom \ - vendor/qcom/bonito/proprietary/liblogwrap.so:system/lib/liblogwrap.so:qcom \ vendor/qcom/bonito/proprietary/libmdsprpc_system.so:system/lib/libmdsprpc_system.so:qcom \ vendor/qcom/bonito/proprietary/libminui.so:system/lib/libminui.so:qcom \ vendor/qcom/bonito/proprietary/libnl.so:system/lib/libnl.so:qcom \ diff --git a/self-extractors_sargo/extract-lists.txt b/self-extractors_sargo/extract-lists.txt index 1535cbb7..de28ec9b 100644 --- a/self-extractors_sargo/extract-lists.txt +++ b/self-extractors_sargo/extract-lists.txt @@ -5,6 +5,7 @@ ;; qcom) TO_EXTRACT="\ + system/app/QtiTelephonyService/QtiTelephonyService.apk \ system/compatibility_matrix.xml \ system/etc/cne/andsfCne.xml \ system/etc/cne/Nexus/ATT/ATT_profiles.xml \ @@ -86,7 +87,6 @@ system/lib/lib-imsvtutils.so \ system/lib/liblistenjni.so \ system/lib/liblistensoundmodel2.so \ - system/lib/liblogwrap.so \ system/lib/libmdsprpc_system.so \ system/lib/libminui.so \ system/lib/libnl.so \ diff --git a/self-extractors_sargo/qcom/staging/Android.mk b/self-extractors_sargo/qcom/staging/Android.mk new file mode 100644 index 00000000..9d06c02b --- /dev/null +++ b/self-extractors_sargo/qcom/staging/Android.mk @@ -0,0 +1,16 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +ifneq ($(filter sargo, $(TARGET_DEVICE)),) +LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) +LOCAL_MODULE := QtiTelephonyService +LOCAL_MODULE_TAGS := optional +LOCAL_BUILT_MODULE_STEM := package.apk +LOCAL_MODULE_OWNER := qcom +LOCAL_MODULE_CLASS := APPS +LOCAL_SRC_FILES := $(LOCAL_MODULE).apk +LOCAL_CERTIFICATE := platform +include $(BUILD_PREBUILT) +endif + diff --git a/self-extractors_sargo/qcom/staging/device-partial.mk b/self-extractors_sargo/qcom/staging/device-partial.mk index 8be5d82f..c62a33cf 100644 --- a/self-extractors_sargo/qcom/staging/device-partial.mk +++ b/self-extractors_sargo/qcom/staging/device-partial.mk @@ -15,7 +15,8 @@ # AOSP packages required by the blobs PRODUCT_PACKAGES := \ com.android.ims.rcsmanager.xml \ - com.android.ims.rcsmanager + com.android.ims.rcsmanager \ + QtiTelephonyService # blob(s) necessary for sargo hardware PRODUCT_COPY_FILES := \ @@ -100,7 +101,6 @@ PRODUCT_COPY_FILES := \ vendor/qcom/sargo/proprietary/lib-imsvtutils.so:system/lib/lib-imsvtutils.so:qcom \ vendor/qcom/sargo/proprietary/liblistenjni.so:system/lib/liblistenjni.so:qcom \ vendor/qcom/sargo/proprietary/liblistensoundmodel2.so:system/lib/liblistensoundmodel2.so:qcom \ - vendor/qcom/sargo/proprietary/liblogwrap.so:system/lib/liblogwrap.so:qcom \ vendor/qcom/sargo/proprietary/libmdsprpc_system.so:system/lib/libmdsprpc_system.so:qcom \ vendor/qcom/sargo/proprietary/libminui.so:system/lib/libminui.so:qcom \ vendor/qcom/sargo/proprietary/libnl.so:system/lib/libnl.so:qcom \ |