From b13639b67050fd2010c447db2b23a30c07829321 Mon Sep 17 00:00:00 2001 From: Vinay Verma Date: Sat, 16 Oct 2021 05:27:57 +0200 Subject: [PATCH 01/17] FP5: Disable Async MTE on System Server Async mode MTE is enabled by default on System Server process. Add property arm64.memtag.process.system_server=off This property is read during system server forking process and accordingly Heap Tagging level is set. Change-Id: I5ff384601f15ae5ef3dfcb6c02832843c6f2942c --- vendor.prop | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor.prop b/vendor.prop index b9c9831..964d283 100644 --- a/vendor.prop +++ b/vendor.prop @@ -144,6 +144,9 @@ ro.incremental.enable=yes debug.stagefright.ccodec=4 debug.stagefright.omx_default_rank=0 +# MTE +arm64.memtag.process.system_server=off + # Netflix ro.netflix.bsp_rev=Q875-32408-1 -- GitLab From b723d0a4a9a8327886a96ef0e8ab7882f12f39ff Mon Sep 17 00:00:00 2001 From: Rohit Sekhar Date: Mon, 16 Oct 2023 10:22:26 +0530 Subject: [PATCH 02/17] FP5: Include FPCamera [Sahil Sonar] - Address Fairphone camera SELinux denials Co-authored-by: SahilSonar --- BoardConfig.mk | 2 ++ configs/privapp-permissions-fpcam.xml | 27 +++++++++++++++++++++++++++ device.mk | 4 ++++ proprietary-files.txt | 21 +++++++++++++++++++++ sepolicy/private/property_contexts | 4 ++++ sepolicy/private/system_app.te | 1 + sepolicy/public/property.te | 1 + sepolicy/vendor/file.te | 1 + sepolicy/vendor/file_contexts | 13 +++++++++++++ sepolicy/vendor/hal_camera_default.te | 8 +++++++- sepolicy/vendor/property.te | 1 - sepolicy/vendor/property_contexts | 5 +---- 12 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 configs/privapp-permissions-fpcam.xml create mode 100644 sepolicy/private/property_contexts create mode 100644 sepolicy/private/system_app.te create mode 100644 sepolicy/public/property.te delete mode 100644 sepolicy/vendor/property.te diff --git a/BoardConfig.mk b/BoardConfig.mk index 8f0d160..6d83f88 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -190,6 +190,8 @@ VENDOR_SECURITY_PATCH := 2024-06-05 # SELinux include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor +SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private # Verified Boot BOARD_AVB_ENABLE := true diff --git a/configs/privapp-permissions-fpcam.xml b/configs/privapp-permissions-fpcam.xml new file mode 100644 index 0000000..049ef0e --- /dev/null +++ b/configs/privapp-permissions-fpcam.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + diff --git a/device.mk b/device.mk index 17ad769..c1b0cc0 100644 --- a/device.mk +++ b/device.mk @@ -194,6 +194,10 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml +# FPCamera +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/privapp-permissions-fpcam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-fpcam.xml + # Gatekeeper PRODUCT_PACKAGES += \ android.hardware.gatekeeper@1.0.vendor diff --git a/proprietary-files.txt b/proprietary-files.txt index 36ab8fe..febecb0 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -422,6 +422,27 @@ vendor/etc/camera/tuningversion_fp5.txt vendor/firmware/CAMERA_ICP.elf vendor/firmware/CAMERA_ICP_170.elf +# Camera (FPCamera) +-priv-app/FPCamera/FPCamera.apk +system_ext/etc/public.libraries-tct.txt +system_ext/lib64/libtctcameraalgo_jni.tct.so +vendor/lib64/libtctcameraalgo.so +vendor/lib64/com.tct.cameraalgo.distortion.so +vendor/lib64/com.tct.cameraalgo.gs.so +vendor/lib64/com.tct.cameraalgo.hdr.so +vendor/lib64/com.tct.cameraalgo.hwmfnr.so +vendor/lib64/com.tct.cameraalgo.mirror.so +vendor/lib64/com.tct.cameraalgo.morphozoom.so +vendor/lib64/com.tct.cameraalgo.singlebokeh.so +vendor/lib64/com.tct.cameraalgo.supernight.so +vendor/lib64/com.tct.cameraalgo.tcldualbokeh.so +vendor/lib64/com.tct.cameraalgo.watermark.so +vendor/lib64/libmorpho_image_refiner.so +vendor/lib64/libanc_single_bokeh.so +vendor/lib64/libanc_single_bokeh_rear.so +vendor/lib64/libtcl_dualcam_bokeh_cap.so +vendor/lib64/libmorpho_super_resolution.so + # CDSP vendor/bin/cdsprpcd vendor/etc/init/vendor.qti.cdsprpc-service.rc diff --git a/sepolicy/private/property_contexts b/sepolicy/private/property_contexts new file mode 100644 index 0000000..8de2edf --- /dev/null +++ b/sepolicy/private/property_contexts @@ -0,0 +1,4 @@ +# FPCamera +persist.vendor.tct.camera. u:object_r:vendor_t2m_prop:s0 +vendor.tct.camera. u:object_r:vendor_t2m_prop:s0 +vendor.t2m. u:object_r:vendor_t2m_prop:s0 diff --git a/sepolicy/private/system_app.te b/sepolicy/private/system_app.te new file mode 100644 index 0000000..2624247 --- /dev/null +++ b/sepolicy/private/system_app.te @@ -0,0 +1 @@ +get_prop(system_app, vendor_t2m_prop) diff --git a/sepolicy/public/property.te b/sepolicy/public/property.te new file mode 100644 index 0000000..168e87e --- /dev/null +++ b/sepolicy/public/property.te @@ -0,0 +1 @@ +vendor_public_prop(vendor_t2m_prop) diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index e35df15..6e2829c 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -1,3 +1,4 @@ type fingerprint_data_file, file_type, data_file_type; +type persist_camera_file, file_type, vendor_persist_type; type persist_t2m_param_file, file_type, vendor_persist_type; type vendor_sysfs_emkit, fs_type, sysfs_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 996657b..5fd7e97 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -3,6 +3,7 @@ # Camera /dev/stmvl53l1_ranging u:object_r:vl53l1_device:s0 +/mnt/vendor/persist/camera(/.*)? u:object_r:persist_camera_file:s0 /sys/devices/virtual/deviceinfo/device_info/CamNameB u:object_r:vendor_sysfs_camera:s0 /sys/devices/virtual/deviceinfo/device_info/CamNameB2 u:object_r:vendor_sysfs_camera:s0 /sys/devices/virtual/deviceinfo/device_info/CamNameF u:object_r:vendor_sysfs_camera:s0 @@ -17,6 +18,18 @@ /data/vendor/focaltech(/.*)? u:object_r:fingerprint_data_file:s0 /dev/focaltech_fp u:object_r:fingerprint_device:s0 +# FPCamera +/vendor/lib64/libtctcameraalgo\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/com\.tct\.cameraalgo\.(.*)\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libundistort\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libmorpho_image_refiner\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libtcl_dualcam_bokeh_cap\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libanc_single_bokeh\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libanc_single_bokeh_rear\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libmorpho_super_resolution\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/libanc_hdr\.so u:object_r:same_process_hal_file:s0 +/vendor/lib64/vendor.qti.hardware.camera.postproc@1.0\.so u:object_r:same_process_hal_file:s0 + # MAC (Bluetooth) /vendor/bin/init\.bt_mac\.sh u:object_r:bt_mac_exec:s0 /mnt/vendor/persist/t2m_param(/.*)? u:object_r:persist_t2m_param_file:s0 diff --git a/sepolicy/vendor/hal_camera_default.te b/sepolicy/vendor/hal_camera_default.te index d08c1dc..5cb1f46 100644 --- a/sepolicy/vendor/hal_camera_default.te +++ b/sepolicy/vendor/hal_camera_default.te @@ -4,4 +4,10 @@ allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms; allow hal_camera_default vendor_sysfs_camera:dir r_dir_perms; allow hal_camera_default vendor_sysfs_camera:file rw_file_perms; -set_prop(hal_camera_default, vendor_t2m_sys_prop) +set_prop(hal_camera_default, vendor_t2m_prop) + +allow hal_camera_default persist_camera_file:dir rw_dir_perms; +allow hal_camera_default persist_camera_file:file create_file_perms; + +allow hal_camera_default mnt_vendor_file:dir rw_dir_perms; +allow hal_camera_default mnt_vendor_file:file create_file_perms; diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te deleted file mode 100644 index 3da1f67..0000000 --- a/sepolicy/vendor/property.te +++ /dev/null @@ -1 +0,0 @@ -vendor_internal_prop(vendor_t2m_sys_prop) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index cbec373..e1932b6 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -1,4 +1 @@ -# Serial Nums -vendor.t2m.camera_main.sn u:object_r:vendor_t2m_sys_prop:s0 -vendor.t2m.camera_aux.sn u:object_r:vendor_t2m_sys_prop:s0 -vendor.t2m.camera_front.sn u:object_r:vendor_t2m_sys_prop:s0 +persist.vendor.camera.tctrom u:object_r:vendor_camera_prop:s0 -- GitLab From 225cc28554fc3a9764575b7b5b57adff97d4c657 Mon Sep 17 00:00:00 2001 From: Rohit Sekhar Date: Mon, 10 Jun 2024 13:37:32 +0530 Subject: [PATCH 03/17] FP5: Expose long exposure time range * FPCamera, auto night mode requires & crashes otherwise. [SahilSonar] - Move to /system_ext --- system_ext.prop | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system_ext.prop b/system_ext.prop index 964c383..1de7a2f 100644 --- a/system_ext.prop +++ b/system_ext.prop @@ -2,6 +2,9 @@ persist.bluetooth.bqr.event_mask=0x8000000E persist.bluetooth.bqr.min_interval_ms=60000 +# Camera +persist.vendor.camera.tctrom=1 + # Display debug.sf.enable_hwc_vds=1 -- GitLab From c9e43e5e96613368847b9c369b4653134fed4bdf Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Fri, 17 May 2024 23:23:18 +0530 Subject: [PATCH 04/17] FP5: Wire up a service to toggle fairphone camera - Ships as disabled on first boot - Add translations for German, Spanish, French && Italian --- device.mk | 3 + parts/Android.bp | 24 +++++++ parts/AndroidManifest.xml | 64 +++++++++++++++++++ parts/proguard.flags | 3 + parts/res/values/strings-de.xml | 9 +++ parts/res/values/strings-es.xml | 9 +++ parts/res/values/strings-fr.xml | 9 +++ parts/res/values/strings-it.xml | 9 +++ parts/res/values/strings.xml | 9 +++ parts/res/xml/fp_camera_settings.xml | 20 ++++++ .../settings/BootCompletedReceiver.java | 24 +++++++ .../settings/fpcamera/FPCameraActivity.java | 35 ++++++++++ .../settings/fpcamera/FPCameraFragment.java | 45 +++++++++++++ .../settings/fpcamera/FPCameraUtils.java | 51 +++++++++++++++ 14 files changed, 314 insertions(+) create mode 100644 parts/Android.bp create mode 100644 parts/AndroidManifest.xml create mode 100644 parts/proguard.flags create mode 100644 parts/res/values/strings-de.xml create mode 100644 parts/res/values/strings-es.xml create mode 100644 parts/res/values/strings-fr.xml create mode 100644 parts/res/values/strings-it.xml create mode 100644 parts/res/values/strings.xml create mode 100644 parts/res/xml/fp_camera_settings.xml create mode 100644 parts/src/org/lineageos/settings/BootCompletedReceiver.java create mode 100644 parts/src/org/lineageos/settings/fpcamera/FPCameraActivity.java create mode 100644 parts/src/org/lineageos/settings/fpcamera/FPCameraFragment.java create mode 100644 parts/src/org/lineageos/settings/fpcamera/FPCameraUtils.java diff --git a/device.mk b/device.mk index c1b0cc0..9dcecf9 100644 --- a/device.mk +++ b/device.mk @@ -128,6 +128,9 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.camera.device@1.0.vendor \ vendor.qti.hardware.camera.postproc@1.0.vendor +PRODUCT_PACKAGES += \ + FairphoneCameraService + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ diff --git a/parts/Android.bp b/parts/Android.bp new file mode 100644 index 0000000..7d131ca --- /dev/null +++ b/parts/Android.bp @@ -0,0 +1,24 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +android_app { + name: "FairphoneCameraService", + + srcs: ["src/**/*.java"], + resource_dirs: ["res"], + certificate: "platform", + platform_apis: true, + system_ext_specific: true, + privileged: true, + + static_libs: [ + "org.lineageos.settings.resources", + ], + + optimize: { + proguard_flags_files: ["proguard.flags"], + }, +} diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml new file mode 100644 index 0000000..0fdf13a --- /dev/null +++ b/parts/AndroidManifest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/parts/proguard.flags b/parts/proguard.flags new file mode 100644 index 0000000..2145628 --- /dev/null +++ b/parts/proguard.flags @@ -0,0 +1,3 @@ +-keep class org.lineageos.settings.fpcamera.* { + *; +} diff --git a/parts/res/values/strings-de.xml b/parts/res/values/strings-de.xml new file mode 100644 index 0000000..d833090 --- /dev/null +++ b/parts/res/values/strings-de.xml @@ -0,0 +1,9 @@ + + + + Fairphone-Kamera aktivieren + Aktivieren Sie diese Option, um die Fairphone-Kamera-App nutzen zu können. + diff --git a/parts/res/values/strings-es.xml b/parts/res/values/strings-es.xml new file mode 100644 index 0000000..be515e4 --- /dev/null +++ b/parts/res/values/strings-es.xml @@ -0,0 +1,9 @@ + + + + Activar la cámara de Fairphone + Activa esta opción para poder usar la aplicación de cámara de Fairphone. + diff --git a/parts/res/values/strings-fr.xml b/parts/res/values/strings-fr.xml new file mode 100644 index 0000000..a6c7a11 --- /dev/null +++ b/parts/res/values/strings-fr.xml @@ -0,0 +1,9 @@ + + + + Activer l\'appareil photo de Fairphone + Activez cette option pour pouvoir utiliser l\'application appareil photo de Fairphone. + diff --git a/parts/res/values/strings-it.xml b/parts/res/values/strings-it.xml new file mode 100644 index 0000000..9e0409d --- /dev/null +++ b/parts/res/values/strings-it.xml @@ -0,0 +1,9 @@ + + + + Attivare la fotocamera di Fairphone + Attiva questa opzione per poter utilizzare l\'app fotocamera di Fairphone. + diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml new file mode 100644 index 0000000..50d54cd --- /dev/null +++ b/parts/res/values/strings.xml @@ -0,0 +1,9 @@ + + + + Fairphone\'s camera + Activate this option to be able to use Fairphone\'s camera app. + diff --git a/parts/res/xml/fp_camera_settings.xml b/parts/res/xml/fp_camera_settings.xml new file mode 100644 index 0000000..3ec65a7 --- /dev/null +++ b/parts/res/xml/fp_camera_settings.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/parts/src/org/lineageos/settings/BootCompletedReceiver.java b/parts/src/org/lineageos/settings/BootCompletedReceiver.java new file mode 100644 index 0000000..3668216 --- /dev/null +++ b/parts/src/org/lineageos/settings/BootCompletedReceiver.java @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2023-2024 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ + +package org.lineageos.settings; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.util.Log; + +import org.lineageos.settings.fpcamera.FPCameraUtils; + +public class BootCompletedReceiver extends BroadcastReceiver { + + private static final String TAG = "FairphoneCamera"; + + @Override + public void onReceive(final Context context, Intent intent) { + Log.d(TAG, "Received boot completed intent"); + FPCameraUtils.startService(context); + } +} diff --git a/parts/src/org/lineageos/settings/fpcamera/FPCameraActivity.java b/parts/src/org/lineageos/settings/fpcamera/FPCameraActivity.java new file mode 100644 index 0000000..51e3504 --- /dev/null +++ b/parts/src/org/lineageos/settings/fpcamera/FPCameraActivity.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2023-2024 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ + +package org.lineageos.settings.fpcamera; + +import android.app.Activity; +import android.app.Fragment; +import android.os.Bundle; +import android.view.MenuItem; + +import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; + +import org.lineageos.settings.R; + +public class FPCameraActivity extends CollapsingToolbarBaseActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + getFragmentManager().beginTransaction().replace(R.id.content_frame, + new FPCameraFragment(), "fpCamera").commit(); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == android.R.id.home) { + finishAfterTransition(); + return true; + } + return super.onOptionsItemSelected(item); + } +} diff --git a/parts/src/org/lineageos/settings/fpcamera/FPCameraFragment.java b/parts/src/org/lineageos/settings/fpcamera/FPCameraFragment.java new file mode 100644 index 0000000..e12f2d4 --- /dev/null +++ b/parts/src/org/lineageos/settings/fpcamera/FPCameraFragment.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2023-2024 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ + +package org.lineageos.settings.fpcamera; + +import android.os.Bundle; + +import androidx.preference.Preference; +import androidx.preference.PreferenceFragment; +import androidx.preference.SwitchPreference; + +import org.lineageos.settings.R; + +import java.io.IOException; + +public class FPCameraFragment extends PreferenceFragment implements Preference.OnPreferenceChangeListener { + + private static final String PREF_FP_CAMERA = "fp_camera_pref"; + + private SwitchPreference mFPCameraPref; + + @Override + public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { + addPreferencesFromResource(R.xml.fp_camera_settings); + + mFPCameraPref = findPreference(PREF_FP_CAMERA); + mFPCameraPref.setOnPreferenceChangeListener(this); + } + + @Override + public boolean onPreferenceChange(Preference preference, Object newValue) { + if (preference == mFPCameraPref) { + boolean value = (Boolean) newValue; + return FPCameraUtils.setApplicationEnabledSetting(getActivity(), value); + } + return false; + } + + @Override + public void onStop() { + super.onStop(); + } +} diff --git a/parts/src/org/lineageos/settings/fpcamera/FPCameraUtils.java b/parts/src/org/lineageos/settings/fpcamera/FPCameraUtils.java new file mode 100644 index 0000000..8cc8caa --- /dev/null +++ b/parts/src/org/lineageos/settings/fpcamera/FPCameraUtils.java @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2023-2024 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ + +package org.lineageos.settings.fpcamera; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.PackageManager; +import android.os.UserHandle; +import android.util.Log; + +import androidx.preference.PreferenceManager; + +public class FPCameraUtils { + + private static final String TAG = "FPCameraUtils"; + private static final String PREF_FIRST_BOOT = "first_boot"; + private static final String FP_CAMERA_PACKAGE = "com.fp5.camera"; + + public static boolean setApplicationEnabledSetting(Context context, boolean enable) { + PackageManager pm = context.getPackageManager(); + try { + pm.setApplicationEnabledSetting(FP_CAMERA_PACKAGE, + enable ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : PackageManager.COMPONENT_ENABLED_STATE_DISABLED, + PackageManager.DONT_KILL_APP); + return true; + } catch (Exception e) { + Log.e(TAG, "Failed to " + (enable ? "enable" : "disable") + " " + FP_CAMERA_PACKAGE, e); + return false; + } + } + + public static void startService(Context context) { + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); + + if (isFirstBoot(prefs)) { + boolean isFPCamDisabled = setApplicationEnabledSetting(context, false); + if (isFPCamDisabled) { + prefs.edit().putBoolean(PREF_FIRST_BOOT, false).apply(); + } + } + } + + private static boolean isFirstBoot(SharedPreferences prefs) { + return prefs.getBoolean(PREF_FIRST_BOOT, true); + } +} -- GitLab From e4b63dc31363f3e5e052e923d8db5b4e9e991333 Mon Sep 17 00:00:00 2001 From: Daniel Jacob Chittoor Date: Tue, 9 Jul 2024 21:58:26 +0530 Subject: [PATCH 05/17] parts: Mention that the user has to reboot for FPCamera to show up --- parts/res/values/strings-de.xml | 6 +++--- parts/res/values/strings-es.xml | 6 +++--- parts/res/values/strings-fr.xml | 4 ++-- parts/res/values/strings-it.xml | 4 ++-- parts/res/values/strings.xml | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/parts/res/values/strings-de.xml b/parts/res/values/strings-de.xml index d833090..f20fd59 100644 --- a/parts/res/values/strings-de.xml +++ b/parts/res/values/strings-de.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> - Fairphone-Kamera aktivieren - Aktivieren Sie diese Option, um die Fairphone-Kamera-App nutzen zu können. - + Fairphone Kamera + Aktivieren Sie diese Option, um die Fairphone-Kamera-App zu verwenden. Ein Neustart ist erforderlich, damit die Änderungen wirksam werden. + \ No newline at end of file diff --git a/parts/res/values/strings-es.xml b/parts/res/values/strings-es.xml index be515e4..69d9d62 100644 --- a/parts/res/values/strings-es.xml +++ b/parts/res/values/strings-es.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> - Activar la cámara de Fairphone - Activa esta opción para poder usar la aplicación de cámara de Fairphone. - + Cámara Fairphone + Habilita esta opción para usar la aplicación de cámara de Fairphone. Es necesario reiniciar para que los cambios surtan efecto. + \ No newline at end of file diff --git a/parts/res/values/strings-fr.xml b/parts/res/values/strings-fr.xml index a6c7a11..f1c16c2 100644 --- a/parts/res/values/strings-fr.xml +++ b/parts/res/values/strings-fr.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> - Activer l\'appareil photo de Fairphone - Activez cette option pour pouvoir utiliser l\'application appareil photo de Fairphone. + Appareil photo Fairphone + Activez cette option pour utiliser l\'application appareil photo de Fairphone. Un redémarrage est requis pour que les modifications prennent effet. diff --git a/parts/res/values/strings-it.xml b/parts/res/values/strings-it.xml index 9e0409d..f012929 100644 --- a/parts/res/values/strings-it.xml +++ b/parts/res/values/strings-it.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> - Attivare la fotocamera di Fairphone - Attiva questa opzione per poter utilizzare l\'app fotocamera di Fairphone. + Fotocamera Fairphone + Abilita questa opzione per utilizzare l\'app fotocamera di Fairphone. È necessario un riavvio affinché le modifiche abbiano effetto. diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml index 50d54cd..5bc5b10 100644 --- a/parts/res/values/strings.xml +++ b/parts/res/values/strings.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> - Fairphone\'s camera - Activate this option to be able to use Fairphone\'s camera app. - + Fairphone Camera + Enable this option to use the Fairphone camera app. A reboot is required for changes to take effect. + \ No newline at end of file -- GitLab From f1ffc4ed41395fdf7e4144b98cf4b79e50d3c868 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 13 Aug 2024 19:36:43 +0530 Subject: [PATCH 06/17] FP5: Set c2inputsurface prop to -1 - Needed for a 64 bit device and matches stock --- vendor.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor.prop b/vendor.prop index 964d283..84dc887 100644 --- a/vendor.prop +++ b/vendor.prop @@ -141,6 +141,7 @@ ro.surface_flinger.wcg_composition_dataspace=143261696 ro.incremental.enable=yes # Media +debug.stagefright.c2inputsurface=-1 debug.stagefright.ccodec=4 debug.stagefright.omx_default_rank=0 -- GitLab From efec56b901f4ee2d716836b5cbef0a34ef15006d Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 13 Aug 2024 21:11:57 +0530 Subject: [PATCH 07/17] FP5: Add 32 bit libcamxexternalformatutils lib - gralloc uses 32bit libcamxexternalformatutils --- proprietary-files.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/proprietary-files.txt b/proprietary-files.txt index febecb0..ce3794c 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -121,6 +121,7 @@ vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so vendor/lib64/vendor.qti.hardware.fm@1.0.so # Camera +vendor/lib/libcamxexternalformatutils.so vendor/lib64/hw/camera.qcom.so vendor/lib64/hw/com.qti.chi.override.so vendor/lib64/hw/sensors.vl53l1_fp5.so -- GitLab From d15361aff7faed08c509ee956954b09194e65389 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Wed, 14 Aug 2024 12:53:41 +0530 Subject: [PATCH 08/17] FP5: Add stock camera provider rc - Stock camera provider rc sets appropriate CPU sets for camera. --- proprietary-files.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/proprietary-files.txt b/proprietary-files.txt index ce3794c..c229cc1 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -121,6 +121,7 @@ vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so vendor/lib64/vendor.qti.hardware.fm@1.0.so # Camera +vendor/etc/init/android.hardware.camera.provider@2.4-service_64.rc vendor/lib/libcamxexternalformatutils.so vendor/lib64/hw/camera.qcom.so vendor/lib64/hw/com.qti.chi.override.so -- GitLab From f845e80d62f0aa6f1e8b5768b0cdf6309a34381b Mon Sep 17 00:00:00 2001 From: Adarsh Grewal Date: Fri, 16 Aug 2024 21:42:19 +0530 Subject: [PATCH 09/17] FP5: Allow fairphone & /e/OS camera to skip stream size check - Fixes: https://katb.in/ahaqekegadi. --- system_ext.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/system_ext.prop b/system_ext.prop index 1de7a2f..8755b43 100644 --- a/system_ext.prop +++ b/system_ext.prop @@ -3,6 +3,7 @@ persist.bluetooth.bqr.event_mask=0x8000000E persist.bluetooth.bqr.min_interval_ms=60000 # Camera +persist.vendor.camera.privapp.list=com.fp5.camera,foundation.e.camera persist.vendor.camera.tctrom=1 # Display -- GitLab From 5dcc93feed0543007c4883f58b44a86033d19114 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Sat, 17 Aug 2024 12:35:36 +0530 Subject: [PATCH 10/17] Revert "FP5: Expose Full Size for Quad CFA Sensor" - Fixes ultrawide lens on fpcamera This reverts commit b165107ad47be53e9221bad609976932f50d7899. --- extract-files.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 85b0f2d..44c6dc7 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -58,9 +58,6 @@ function blob_fixup() { vendor/etc/libnfc-hal-st.conf) sed -i 's|STNFC_HAL_LOGLEVEL=.*|STNFC_HAL_LOGLEVEL=0x12|g' "${2}" ;; - vendor/etc/camera/camxoverridesettings.txt) - sed -i '$aexposeFullSizeForQCFA=TRUE' "${2}" - ;; esac } -- GitLab From 4d58340dfe2d9e045ffc51e209cf4d8576d5ae93 Mon Sep 17 00:00:00 2001 From: Rohit Sekhar Date: Tue, 20 Aug 2024 13:42:23 +0530 Subject: [PATCH 11/17] FP5: FPCamera: Resolve SuperNight Mode --- proprietary-files.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proprietary-files.txt b/proprietary-files.txt index c229cc1..2ec8bcf 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -245,6 +245,7 @@ vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so vendor/lib64/libaidenoiser.so vendor/lib64/libanc_hdr.so vendor/lib64/libanc_hdr_adapter_AncSuperNightLite.so +vendor/lib64/libanc_hdr_adapter_AncSuperNight.so vendor/lib64/libanc_single_rt_bokeh.so vendor/lib64/libanc_single_rt_bokeh_rear.so vendor/lib64/libanc_supervq.so @@ -265,6 +266,7 @@ vendor/lib64/libcamxswprocessalgo.so vendor/lib64/libcamxtintlessalgo.so vendor/lib64/libchilog.so vendor/lib64/libcom.qti.chinodeutils.so +vendor/lib64/libdmabufheap.so vendor/lib64/libfacepose.so vendor/lib64/libipebpsstriping.so vendor/lib64/libjpege.so -- GitLab From bcb8a6385d3e6a7f5b0ab10e2ace2992e29b0767 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 20 Aug 2024 15:42:51 +0530 Subject: [PATCH 12/17] FP5: Don't install 32 bit display libs - We only need 64bit variant of these libs and they are pinned from stock. --- device.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/device.mk b/device.mk index 9dcecf9..97a51df 100644 --- a/device.mk +++ b/device.mk @@ -152,10 +152,7 @@ PRODUCT_PACKAGES += \ android.hardware.renderscript@1.0-impl \ init.qti.display_boot.sh \ init.qti.display_boot.rc \ - libdisplayconfig.qti \ libqdMetaData \ - libsdmcore \ - libsdmutils \ libtinyxml \ libvulkan \ memtrack.default \ -- GitLab From 022882363fa3b54da023ad826caebe3ee9235baa Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 20 Aug 2024 15:53:05 +0530 Subject: [PATCH 13/17] FP5: Drop lahaina & yupik_v0 media configs - We don't need them on yupik_iot. --- device.mk | 3 - media/media_codecs_performance_yupik_v0.xml | 151 -- media/media_codecs_yupik_v0.xml | 294 --- media/media_profiles_yupik_v0.xml | 1814 ------------------- proprietary-files.txt | 8 +- 5 files changed, 1 insertion(+), 2269 deletions(-) delete mode 100644 media/media_codecs_performance_yupik_v0.xml delete mode 100644 media/media_codecs_yupik_v0.xml delete mode 100644 media/media_profiles_yupik_v0.xml diff --git a/device.mk b/device.mk index 97a51df..539c6ba 100644 --- a/device.mk +++ b/device.mk @@ -268,17 +268,14 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(LOCAL_PATH)/media/media_codecs_performance_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_yupik_iot.xml \ - $(LOCAL_PATH)/media/media_codecs_performance_yupik_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_yupik_v0.xml \ $(LOCAL_PATH)/media/media_codecs_performance_yupik_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_yupik_v1.xml \ $(LOCAL_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ $(LOCAL_PATH)/media/media_codecs_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_yupik_iot.xml \ - $(LOCAL_PATH)/media/media_codecs_yupik_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_yupik_v0.xml \ $(LOCAL_PATH)/media/media_codecs_yupik_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_yupik_v1.xml \ $(LOCAL_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ $(LOCAL_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ $(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ $(LOCAL_PATH)/media/media_profiles_yupik_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_yupik_iot.xml \ - $(LOCAL_PATH)/media/media_profiles_yupik_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_yupik_v0.xml \ $(LOCAL_PATH)/media/media_profiles_yupik_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_yupik_v1.xml PRODUCT_COPY_FILES += \ diff --git a/media/media_codecs_performance_yupik_v0.xml b/media/media_codecs_performance_yupik_v0.xml deleted file mode 100644 index 2c62ee6..0000000 --- a/media/media_codecs_performance_yupik_v0.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_yupik_v0.xml b/media/media_codecs_yupik_v0.xml deleted file mode 100644 index 99ceba7..0000000 --- a/media/media_codecs_yupik_v0.xml +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_profiles_yupik_v0.xml b/media/media_profiles_yupik_v0.xml deleted file mode 100644 index 35dd969..0000000 --- a/media/media_profiles_yupik_v0.xml +++ /dev/null @@ -1,1814 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary-files.txt b/proprietary-files.txt index 2ec8bcf..ffe9791 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1011,25 +1011,19 @@ vendor/bin/init.qti.media.sh vendor/etc/init/init.qti.media.rc vendor/etc/init/vendor.qti.media.c2@1.0-service.rc vendor/etc/media/video_system_specs.json -vendor/etc/media_lahaina/video_system_specs.json vendor/etc/media_yupik_v1/video_system_specs.json vendor/etc/seccomp_policy/codec2.vendor.base-arm.policy vendor/etc/seccomp_policy/codec2.vendor.ext-arm.policy vendor/etc/vintf/manifest/c2_manifest_vendor.xml vendor/etc/media_codecs.xml -vendor/etc/media_codecs_lahaina.xml -vendor/etc/media_codecs_lahaina_vendor.xml vendor/etc/media_codecs_performance.xml -vendor/etc/media_codecs_performance_lahaina.xml -vendor/etc/media_codecs_performance_lahaina_vendor.xml vendor/etc/media_codecs_performance_yupik_v1.xml vendor/etc/media_codecs_vendor_audio.xml vendor/etc/media_codecs_yupik_v1.xml vendor/etc/media_profiles.xml vendor/etc/media_profiles_V1_0.xml -vendor/etc/media_profiles_lahaina.xml -vendor/etc/media_profiles_lahaina_vendor.xml vendor/etc/media_profiles_yupik_v1.xml +vendor/etc/media_yupik_iot/video_system_specs.json vendor/etc/video_system_specs.json vendor/lib/libqc2vppfilter.so vendor/lib/libqcodec2_base.so -- GitLab From 0c8a88c011193bf7a63e6f05ebcc1bd60710921c Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 20 Aug 2024 16:09:49 +0530 Subject: [PATCH 14/17] FP5: Import qti media init script --- device.mk | 1 + init/Android.bp | 7 ++++++ init/init.qti.media.rc | 53 ++++++++++++++++++++++++++++++++++++++++++ proprietary-files.txt | 1 - 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 init/init.qti.media.rc diff --git a/device.mk b/device.mk index 539c6ba..aa9748a 100644 --- a/device.mk +++ b/device.mk @@ -245,6 +245,7 @@ PRODUCT_PACKAGES += \ init.bt_mac.rc \ init.qcom.rc \ init.qcom.recovery.rc \ + init.qti.media.rc \ init.qcom.usb.rc \ init.stnfc.rc \ init.target.rc \ diff --git a/init/Android.bp b/init/Android.bp index 54acc13..9bcdf5f 100644 --- a/init/Android.bp +++ b/init/Android.bp @@ -38,6 +38,13 @@ prebuilt_etc { recovery: true, } +prebuilt_etc { + name: "init.qti.media.rc", + src: "init.qti.media.rc", + sub_dir: "init", + vendor: true, +} + prebuilt_etc { name: "init.target.rc", src: "init.target.rc", diff --git a/init/init.qti.media.rc b/init/init.qti.media.rc new file mode 100644 index 0000000..0937b56 --- /dev/null +++ b/init/init.qti.media.rc @@ -0,0 +1,53 @@ +#============================================================================== +# init.qti.media.rc +# +# Copyright (c) 2020 Qualcomm Technologies, Inc. +# All Rights Reserved. +# Confidential and Proprietary - Qualcomm Technologies, Inc. +# +# Copyright (c) 2020, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#=============================================================================== +service qti-media /vendor/bin/init.qti.media.sh + class main + user media + group media + disabled + oneshot + seclabel u:r:vendor_qti_media:s0 + +on early-init + setprop vendor.media.target.qssi ${vendor.sys.media.target.qssi} + setprop vendor.media.system.build_codename ${ro.build.version.release_or_codename} + start qti-media + +on post-fs-data + setprop ro.media.xml_variant.codecs ${vendor.media.target_variant} + setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant} + +on property:vendor.netflix.bsp_rev=* + setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev} diff --git a/proprietary-files.txt b/proprietary-files.txt index ffe9791..36cbb9b 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1008,7 +1008,6 @@ system_ext/lib/libmmparser_lite.so system_ext/lib64/libmmosal.so vendor/bin/hw/vendor.qti.media.c2@1.0-service vendor/bin/init.qti.media.sh -vendor/etc/init/init.qti.media.rc vendor/etc/init/vendor.qti.media.c2@1.0-service.rc vendor/etc/media/video_system_specs.json vendor/etc/media_yupik_v1/video_system_specs.json -- GitLab From d593fdbc49ccae923eaed8b152dc8f8d1697f5a5 Mon Sep 17 00:00:00 2001 From: Arian Date: Sat, 26 Feb 2022 13:10:03 +0100 Subject: [PATCH 15/17] FP5: Set ro.media.xml_variant.profiles to choose media profiles This was introduced with [1] and allows to choose target specific media profiles without caf changes to frameworks/av. Unset media.settings.xml so that the new property gets respected and drop copying the lahaina config as media_profiles_vendor since we don't need a fallback anymore. [1]: https://github.com/LineageOS/android_frameworks_av/commit/eaac82f33f2a064c6ae1a5f1791bb13669820687# Change-Id: I7ec306bf3dd595c09308ed26c9d3a6db8490c7f0 --- init/init.qti.media.rc | 1 + system_ext.prop | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.qti.media.rc b/init/init.qti.media.rc index 0937b56..6272b3c 100644 --- a/init/init.qti.media.rc +++ b/init/init.qti.media.rc @@ -48,6 +48,7 @@ on early-init on post-fs-data setprop ro.media.xml_variant.codecs ${vendor.media.target_variant} setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant} + setprop ro.media.xml_variant.profiles ${vendor.media.target_variant} on property:vendor.netflix.bsp_rev=* setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev} diff --git a/system_ext.prop b/system_ext.prop index 8755b43..13636cb 100644 --- a/system_ext.prop +++ b/system_ext.prop @@ -27,7 +27,6 @@ persist.dbg.vt_avail_ovr=1 persist.dbg.wfc_avail_ovr=1 # Media -media.settings.xml=/vendor/etc/media_profiles_vendor.xml media.stagefright.thumbnail.prefer_hw_codecs=true ro.media.recorder-max-base-layer-fps=60 vendor.mm.enable.qcom_parser=4044018 -- GitLab From 55cf3cba22bf317284565b8b7c77603e3933ebe7 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Tue, 20 Aug 2024 19:48:24 +0530 Subject: [PATCH 16/17] FP5: Add 64bit codec2 libs - Fixes: E QC2V4l2Codec: YV12 is not a supported pixel format! --- proprietary-files.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proprietary-files.txt b/proprietary-files.txt index 36cbb9b..fa27029 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1032,6 +1032,14 @@ vendor/lib/libqcodec2_hooks.so vendor/lib/libqcodec2_platform.so vendor/lib/libqcodec2_utils.so vendor/lib/libqcodec2_v4l2codec.so +vendor/lib64/libqc2vppfilter.so +vendor/lib64/libqcodec2_base.so +vendor/lib64/libqcodec2_basecodec.so +vendor/lib64/libqcodec2_core.so +vendor/lib64/libqcodec2_hooks.so +vendor/lib64/libqcodec2_platform.so +vendor/lib64/libqcodec2_utils.so +vendor/lib64/libqcodec2_v4l2codec.so vendor/lib64/libmmosal.so # Native public libraries -- GitLab From e484462b2a9025734922e010c10482a26b779261 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Thu, 22 Aug 2024 14:50:48 +0530 Subject: [PATCH 17/17] FP5: Enable high speed batching for HSR - Fixes 240fps slomotion capture. --- system_ext.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/system_ext.prop b/system_ext.prop index 13636cb..06fd100 100644 --- a/system_ext.prop +++ b/system_ext.prop @@ -5,6 +5,7 @@ persist.bluetooth.bqr.min_interval_ms=60000 # Camera persist.vendor.camera.privapp.list=com.fp5.camera,foundation.e.camera persist.vendor.camera.tctrom=1 +sys.camera.enable.hsbatch=true # Display debug.sf.enable_hwc_vds=1 -- GitLab