From 19109b18aeebdc371dd52da5a9335e2a08742b23 Mon Sep 17 00:00:00 2001 From: Rohit R Sekhar Date: Fri, 25 Nov 2022 10:02:59 +0530 Subject: [PATCH 01/30] FP4: Add missing fingerprint libs * Logs mention them --- framework_compatibility_matrix.xml | 8 ++++++++ manifest.xml | 10 ++++++++++ proprietary-files.txt | 2 ++ sepolicy/vendor/hal_fingerprint_default.te | 2 ++ sepolicy/vendor/hwservice.te | 1 + sepolicy/vendor/hwservice_contexts | 1 + 6 files changed, 24 insertions(+) diff --git a/framework_compatibility_matrix.xml b/framework_compatibility_matrix.xml index 066bcd6..5aed642 100644 --- a/framework_compatibility_matrix.xml +++ b/framework_compatibility_matrix.xml @@ -154,6 +154,14 @@ default + + vendor.fpsensor.hardware.fpsensorhidlsvc + 2.0 + + IFpsensorHidlSvc + default + + vendor.pixelworks.hardware.display 1.1 diff --git a/manifest.xml b/manifest.xml index 227f8ce..8ead6a5 100644 --- a/manifest.xml +++ b/manifest.xml @@ -198,6 +198,16 @@ @2.3::IUceService/com.qualcomm.qti.uceservice + + vendor.fpsensor.hardware.fpsensorhidlsvc + hwbinder + 2.0 + + IFpsensorHidlSvc + default + + @2.0::IFpsensorHidlSvc/default + vendor.qti.data.factory hwbinder diff --git a/proprietary-files.txt b/proprietary-files.txt index 000dfbc..15ae394 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -402,6 +402,8 @@ vendor/etc/init/feature_enabler_client.rc # Fingerprint vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service vendor/lib64/hw/fpsensor_fingerprint.default.so +vendor/lib64/libfp_ext_svc2.so +vendor/lib64/vendor.fpsensor.hardware.fpsensorhidlsvc@2.0.so # Gatekeeper vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te index 1e8a862..f816d9d 100644 --- a/sepolicy/vendor/hal_fingerprint_default.te +++ b/sepolicy/vendor/hal_fingerprint_default.te @@ -2,3 +2,5 @@ allow hal_fingerprint_default fpsensor_fp_device:chr_file rw_file_perms; allow hal_fingerprint_default tee_device:chr_file rw_file_perms; set_prop(hal_fingerprint_default, vendor_t2m_sys_prop) + +add_hwservice(hal_fingerprint_default, fp_ext_svc2_hwservice) diff --git a/sepolicy/vendor/hwservice.te b/sepolicy/vendor/hwservice.te index c046c98..fd65be7 100644 --- a/sepolicy/vendor/hwservice.te +++ b/sepolicy/vendor/hwservice.te @@ -1,2 +1,3 @@ +type fp_ext_svc2_hwservice, hwservice_manager_type; type hal_display_hwservice, hwservice_manager_type; type hal_display_iris_hwservice, hwservice_manager_type; diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts index 72ffbb5..85d3109 100644 --- a/sepolicy/vendor/hwservice_contexts +++ b/sepolicy/vendor/hwservice_contexts @@ -1,2 +1,3 @@ +vendor.fpsensor.hardware.fpsensorhidlsvc::IFpsensorHidlSvc u:object_r:fp_ext_svc2_hwservice:s0 vendor.pixelworks.hardware.display::IIris u:object_r:hal_display_iris_hwservice:s0 vendor.pixelworks.hardware.feature::IIrisFeature u:object_r:hal_display_iris_hwservice:s0 -- GitLab From f3cead7990baceae0daa66cf42eb0f8e9ec6dcb6 Mon Sep 17 00:00:00 2001 From: Rohit R Sekhar Date: Thu, 17 Nov 2022 20:29:22 +0530 Subject: [PATCH 02/30] FP4: Bump blobs to FP4.SP1Y.B.041.20230109 Fingerprint: Fairphone/FP4eea/FP4:12/SKQ1.220201.001/SP1Y:user/release-keys --- BoardConfig.mk | 2 +- lineage_FP4.mk | 4 ++-- proprietary-files.txt | 10 ++++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 4c19665..aa7491e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -153,7 +153,7 @@ TARGET_USERIMAGES_USE_F2FS := true ENABLE_VENDOR_RIL_SERVICE := true # Security patch level -VENDOR_SECURITY_PATCH := 2022-11-05 +VENDOR_SECURITY_PATCH := 2022-12-05 # SEPolicy include device/qcom/sepolicy_vndr/SEPolicy.mk diff --git a/lineage_FP4.mk b/lineage_FP4.mk index bcad657..2dea503 100644 --- a/lineage_FP4.mk +++ b/lineage_FP4.mk @@ -25,11 +25,11 @@ PRODUCT_BRAND := Fairphone PRODUCT_MODEL := FP4 PRODUCT_MANUFACTURER := Fairphone -BUILD_FINGERPRINT := "Fairphone/FP4eea/FP4:11/RKQ1.210503.001/FP4I:user/release-keys" +BUILD_FINGERPRINT := "Fairphone/FP4eea/FP4:12/SKQ1.220201.001/SP1Y:user/release-keys" PRODUCT_BUILD_PROP_OVERRIDES += \ TARGET_NAME=FP4eea \ PRODUCT_NAME=FP4eea \ - PRIVATE_BUILD_DESC="qssi-user 11 RKQ1.210503.001 FP4I release-keys" + PRIVATE_BUILD_DESC="qssi-user 12 SKQ1.220201.001 SP1W release-keys" PRODUCT_GMS_CLIENTID_BASE := android-alcatel diff --git a/proprietary-files.txt b/proprietary-files.txt index 15ae394..f0733c9 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# Unpinned blobs from Fairphone/FP4eea/FP4:11/RKQ1.210503.001/FP4I:user/release-keys +# Unpinned blobs from Fairphone/FP4eea/FP4:12/SKQ1.220201.001/SP1Y:user/release-keys # ACDB vendor/etc/acdbdata/MTP/lito-lagoon-fp4-snd-card/Bluetooth_cal.acdb @@ -71,6 +71,7 @@ vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so vendor/lib64/libbtnv.so +vendor/lib64/libsoc_helper.so vendor/lib64/vendor.qti.hardware.fm@1.0.so # Bluetooth (A2DP) @@ -689,8 +690,8 @@ vendor/lib64/unnhal-acc-hta.so vendor/lib64/unnhal-acc-hvx.so # NFC -vendor/bin/hw/android.hardware.nfc@1.2-service.st -vendor/etc/init/android.hardware.nfc@1.2-service.st.rc +vendor/bin/hw/android.hardware.nfc@1.2-service-st +vendor/etc/init/android.hardware.nfc@1.2-service-st.rc vendor/lib64/nfc_nci.st21nfc.st.so # NFC (Configs) @@ -849,7 +850,6 @@ system_ext/etc/permissions/qcrilhook.xml system_ext/etc/permissions/qti_libpermissions.xml system_ext/etc/permissions/qti_permissions.xml system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml -system_ext/etc/permissions/telephonyservice.xml system_ext/framework/qcrilhook.jar -system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk -vendor/app/IWlanService/IWlanService.apk @@ -913,6 +913,7 @@ vendor/lib64/vendor.qti.hardware.radio.atcmdfwd@1.0.so vendor/lib64/vendor.qti.hardware.radio.internal.deviceinfo@1.0.so vendor/lib64/vendor.qti.hardware.radio.lpa@1.0.so vendor/lib64/vendor.qti.hardware.radio.lpa@1.1.so +vendor/lib64/vendor.qti.hardware.radio.lpa@1.2.so vendor/lib64/vendor.qti.hardware.radio.qcrilhook@1.0.so vendor/lib64/vendor.qti.hardware.radio.qtiradio@1.0.so vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.0.so @@ -1139,6 +1140,7 @@ vendor/lib64/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so vendor/lib64/libGPQTEEC_vendor.so vendor/lib64/libGPTEE_vendor.so vendor/lib64/libQTEEConnector_vendor.so +vendor/lib64/libQTEEConnector_listener.so vendor/lib64/vendor.qti.hardware.qteeconnector@1.0.so # Trusted User Interface -- GitLab From 9e149d7ba85dd34a433134e0804a2a83510aa396 Mon Sep 17 00:00:00 2001 From: Rohit R Sekhar Date: Wed, 8 Feb 2023 10:00:26 +0100 Subject: [PATCH 03/30] FP4: Update props from FP4.SP1Y.B.041.20230109 * Cleanup while we are at it --- system.prop | 6 ++++++ system_ext.prop | 6 ++++++ vendor.prop | 10 +++++----- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 system_ext.prop diff --git a/system.prop b/system.prop index fab220d..9c999f7 100644 --- a/system.prop +++ b/system.prop @@ -18,6 +18,9 @@ persist.vendor.cne.feature=1 # e-SIM masterclear.allow_retain_esim_profiles_after_fdr=1 +# GPS +persist.backup.ntpServer=0.pool.ntp.org + # IMS persist.dbg.volte_avail_ovr=1 persist.dbg.vt_avail_ovr=1 @@ -44,3 +47,6 @@ telephony.lteOnCdmaDevice=1 # Sensors persist.vendor.sensors.enable.mag_filter=true + +# System Server +arm64.memtag.process.system_server=off diff --git a/system_ext.prop b/system_ext.prop new file mode 100644 index 0000000..6030f23 --- /dev/null +++ b/system_ext.prop @@ -0,0 +1,6 @@ +# DPM +persist.vendor.dpm.feature=11 + +# Telephony +ro.telephony.sim_slots.count=2 +telephony.active_modems.max_count=2 diff --git a/vendor.prop b/vendor.prop index 36e731f..768690e 100644 --- a/vendor.prop +++ b/vendor.prop @@ -66,11 +66,16 @@ ro.crypto.dm_default_key.options_format.version=2 ro.crypto.volume.filenames_mode=aes-256-cts ro.crypto.volume.metadata.method=dm-default-key +# Dalvik +dalvik.vm.dex2oat64.enabled=true + # Display vendor.display.comp_mask=0 vendor.display.disable_excl_rect=0 vendor.display.disable_excl_rect_partial_fb=1 vendor.display.disable_hw_recovery_dump=1 +vendor.display.disable_idle_time_hdr=1 +vendor.display.disable_idle_time_video=1 vendor.display.disable_offline_rotator=1 vendor.display.disable_scaler=0 vendor.display.enable_allow_idle_fallback=1 @@ -112,17 +117,12 @@ persist.sys.sf.color_saturation=1.0 ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.lito.api30 ro.hardware.egl=adreno ro.hardware.vulkan=adreno -#ro.opengles.version=196610 vendor.gralloc.disable_ubwc=0 vendor.opengles.version=196610 -# GPS -persist.backup.ntpServer=0.pool.ntp.org - # Media debug.stagefright.ccodec=1 debug.stagefright.omx_default_rank=0 -media.settings.xml=/vendor/etc/media_profiles_vendor.xml # Netflix ro.netflix.bsp_rev=Q7250-19133-1 -- GitLab From b8043f4502c8ccff32a7b864b06f0f2bc7022bc0 Mon Sep 17 00:00:00 2001 From: Rohit R Sekhar Date: Fri, 25 Nov 2022 10:02:59 +0530 Subject: [PATCH 04/30] FP4: Bump configs from FP4.SP1Y.B.041.20230109 --- audio/audio_policy_configuration.xml | 14 +++++------- audio/mixer_paths_lagoon_fp4.xml | 11 ++++++++- media/media_codecs.xml | 1 + media/media_codecs_c2.xml | 8 +++---- media/media_codecs_performance.xml | 8 ++++--- media/media_codecs_performance_c2.xml | 2 ++ media/media_codecs_performance_v1.xml | 2 ++ media/media_codecs_performance_v2.xml | 2 ++ media/media_codecs_performance_v3.xml | 2 ++ media/media_codecs_vendor.xml | 1 + media/media_codecs_vendor_v2.xml | 15 +++++++++++++ media/media_codecs_vendor_v3.xml | 15 +++++++++++++ media/media_profiles_vendor.xml | 32 +++++++++++++-------------- 13 files changed, 81 insertions(+), 32 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index e04dac3..79b8ee6 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -1,5 +1,5 @@ - diff --git a/audio/mixer_paths_lagoon_fp4.xml b/audio/mixer_paths_lagoon_fp4.xml index 78bc735..285fb72 100644 --- a/audio/mixer_paths_lagoon_fp4.xml +++ b/audio/mixer_paths_lagoon_fp4.xml @@ -3686,7 +3686,16 @@ - + + + + + + + + + + diff --git a/media/media_codecs.xml b/media/media_codecs.xml index 699f935..4072750 100644 --- a/media/media_codecs.xml +++ b/media/media_codecs.xml @@ -219,6 +219,7 @@ Only the three quirks included above are recognized at this point: + diff --git a/media/media_codecs_c2.xml b/media/media_codecs_c2.xml index 3076916..769fff6 100644 --- a/media/media_codecs_c2.xml +++ b/media/media_codecs_c2.xml @@ -243,8 +243,8 @@ - - + + @@ -380,8 +380,8 @@ - - + + diff --git a/media/media_codecs_performance.xml b/media/media_codecs_performance.xml index e4e44d4..dba2ce1 100644 --- a/media/media_codecs_performance.xml +++ b/media/media_codecs_performance.xml @@ -97,13 +97,13 @@ limitations under the License. - + - + @@ -125,7 +125,7 @@ limitations under the License. - + @@ -183,6 +183,8 @@ limitations under the License. + + diff --git a/media/media_codecs_performance_c2.xml b/media/media_codecs_performance_c2.xml index 2993d2f..a9a4592 100644 --- a/media/media_codecs_performance_c2.xml +++ b/media/media_codecs_performance_c2.xml @@ -132,6 +132,8 @@ + + diff --git a/media/media_codecs_performance_v1.xml b/media/media_codecs_performance_v1.xml index d02b672..55db4df 100644 --- a/media/media_codecs_performance_v1.xml +++ b/media/media_codecs_performance_v1.xml @@ -183,6 +183,8 @@ limitations under the License. + + diff --git a/media/media_codecs_performance_v2.xml b/media/media_codecs_performance_v2.xml index 043dc01..a042b33 100644 --- a/media/media_codecs_performance_v2.xml +++ b/media/media_codecs_performance_v2.xml @@ -171,6 +171,8 @@ limitations under the License. + + diff --git a/media/media_codecs_performance_v3.xml b/media/media_codecs_performance_v3.xml index da92aea..319156f 100644 --- a/media/media_codecs_performance_v3.xml +++ b/media/media_codecs_performance_v3.xml @@ -171,6 +171,8 @@ limitations under the License. + + diff --git a/media/media_codecs_vendor.xml b/media/media_codecs_vendor.xml index 705f3cd..20ec969 100644 --- a/media/media_codecs_vendor.xml +++ b/media/media_codecs_vendor.xml @@ -240,6 +240,7 @@ Only the three quirks included above are recognized at this point: + diff --git a/media/media_codecs_vendor_v2.xml b/media/media_codecs_vendor_v2.xml index 689bcd0..d8309ff 100644 --- a/media/media_codecs_vendor_v2.xml +++ b/media/media_codecs_vendor_v2.xml @@ -140,6 +140,7 @@ Only the three quirks included above are recognized at this point: + @@ -158,6 +159,7 @@ Only the three quirks included above are recognized at this point: + @@ -199,6 +201,7 @@ Only the three quirks included above are recognized at this point: + @@ -211,7 +214,9 @@ Only the three quirks included above are recognized at this point: + + @@ -227,6 +232,7 @@ Only the three quirks included above are recognized at this point: + @@ -243,6 +249,7 @@ Only the three quirks included above are recognized at this point: + @@ -258,6 +265,7 @@ Only the three quirks included above are recognized at this point: + @@ -271,6 +279,7 @@ Only the three quirks included above are recognized at this point: + @@ -285,6 +294,7 @@ Only the three quirks included above are recognized at this point: + @@ -301,6 +311,7 @@ Only the three quirks included above are recognized at this point: + @@ -316,6 +327,7 @@ Only the three quirks included above are recognized at this point: + @@ -332,6 +344,7 @@ Only the three quirks included above are recognized at this point: + @@ -348,6 +361,7 @@ Only the three quirks included above are recognized at this point: + @@ -361,6 +375,7 @@ Only the three quirks included above are recognized at this point: + diff --git a/media/media_codecs_vendor_v3.xml b/media/media_codecs_vendor_v3.xml index 21815f3..552b799 100644 --- a/media/media_codecs_vendor_v3.xml +++ b/media/media_codecs_vendor_v3.xml @@ -140,6 +140,7 @@ Only the three quirks included above are recognized at this point: + @@ -158,6 +159,7 @@ Only the three quirks included above are recognized at this point: + @@ -199,6 +201,7 @@ Only the three quirks included above are recognized at this point: + @@ -211,7 +214,9 @@ Only the three quirks included above are recognized at this point: + + @@ -227,6 +232,7 @@ Only the three quirks included above are recognized at this point: + @@ -243,6 +249,7 @@ Only the three quirks included above are recognized at this point: + @@ -259,6 +266,7 @@ Only the three quirks included above are recognized at this point: + @@ -272,6 +280,7 @@ Only the three quirks included above are recognized at this point: + @@ -286,6 +295,7 @@ Only the three quirks included above are recognized at this point: + @@ -302,6 +312,7 @@ Only the three quirks included above are recognized at this point: + @@ -318,6 +329,7 @@ Only the three quirks included above are recognized at this point: + @@ -334,6 +346,7 @@ Only the three quirks included above are recognized at this point: + @@ -351,6 +364,7 @@ Only the three quirks included above are recognized at this point: + @@ -364,6 +378,7 @@ Only the three quirks included above are recognized at this point: + diff --git a/media/media_profiles_vendor.xml b/media/media_profiles_vendor.xml index 2fd1f9b..a4df3d8 100644 --- a/media/media_profiles_vendor.xml +++ b/media/media_profiles_vendor.xml @@ -186,7 +186,7 @@ channels="2" /> - + - + - + - + - + - + - + - +