diff --git a/Android.bp b/Android.bp index ed867cd..b40a742 100644 --- a/Android.bp +++ b/Android.bp @@ -1,5 +1,5 @@ // -// Copyright (C) 2020-2024 The LineageOS Project +// SPDX-FileCopyrightText: The LineageOS Project // SPDX-License-Identifier: Apache-2.0 // diff --git a/BoardConfig.mk b/BoardConfig.mk index a31774d..af566f6 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,6 +1,5 @@ # -# Copyright (C) 2020 The LineageOS Project -# +# SPDX-FileCopyrightText: The LineageOS Project # SPDX-License-Identifier: Apache-2.0 # @@ -185,6 +184,7 @@ VENDOR_SECURITY_PATCH := 2025-06-05 # Sepolicy include device/lineage/sepolicy/libperfmgr/sepolicy.mk include device/qcom/sepolicy_vndr/SEPolicy.mk +include hardware/sony/timekeep/sepolicy/SEPolicy.mk SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public diff --git a/audio/audio_effects.xml b/audio/audio_effects.xml index 90bff8d..b9bd54d 100644 --- a/audio/audio_effects.xml +++ b/audio/audio_effects.xml @@ -41,7 +41,10 @@ - + + + + @@ -90,7 +93,12 @@ - + + + + + + diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index ed41622..8a80d01 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -90,7 +90,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Telephony Tx Built-In Mic Built-In Back Mic - FM Tuner Telephony Rx Speaker @@ -190,7 +189,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> @@ -210,11 +209,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> - - - - - - + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,Telephony Rx"/> - -#include -#include -#include "FastCharge.h" - -namespace vendor { -namespace lineage { -namespace fastcharge { -namespace V1_0 { -namespace implementation { - -static constexpr const char *kFastChargingProp = "persist.vendor.sec.fastchg_enabled"; -static constexpr bool FASTCHARGE_DEFAULT_SETTING = true; - -FastCharge::FastCharge() { - android::base::SetProperty(kFastChargingProp, "true"); - - system("start batterysecret"); -} - -android::hardware::Return FastCharge::isEnabled() { - return android::hardware::Return(android::base::GetBoolProperty(kFastChargingProp, false)); -} - -android::hardware::Return FastCharge::setEnabled(bool enable) { - android::base::SetProperty(kFastChargingProp, enable ? "true" : "false"); - - if (enable) { - system("start batterysecret"); - } else { - system("stop batterysecret"); - } - - return android::hardware::Return(enable); -} - -} // namespace implementation -} // namespace V1_0 -} // namespace fastcharge -} // namespace lineage -} // namespace vendor diff --git a/fastcharge/FastCharge.h b/fastcharge/FastCharge.h deleted file mode 100644 index a96f439..0000000 --- a/fastcharge/FastCharge.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2023 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#pragma once - -#include -#include -#include - -namespace vendor { -namespace lineage { -namespace fastcharge { -namespace V1_0 { -namespace implementation { - -using ::android::sp; -using ::android::hardware::hidl_array; -using ::android::hardware::hidl_memory; -using ::android::hardware::hidl_string; -using ::android::hardware::hidl_vec; -using ::android::hardware::Return; -using ::android::hardware::Void; - -using ::vendor::lineage::fastcharge::V1_0::IFastCharge; - -struct FastCharge : public IFastCharge { - FastCharge(); - - Return isEnabled() override; - Return setEnabled(bool enable) override; -}; - -} // namespace implementation -} // namespace V1_0 -} // namespace fastcharge -} // namespace lineage -} // namespace vendor diff --git a/fastcharge/service.cpp b/fastcharge/service.cpp deleted file mode 100644 index 637a13c..0000000 --- a/fastcharge/service.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2023 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#define LOG_TAG "fastcharge@1.0-service.venus" - -#include -#include - -#include "FastCharge.h" - -using android::hardware::configureRpcThreadpool; -using android::hardware::joinRpcThreadpool; - -using vendor::lineage::fastcharge::V1_0::IFastCharge; -using vendor::lineage::fastcharge::V1_0::implementation::FastCharge; - -using android::OK; -using android::status_t; - -int main() { - android::sp service = new FastCharge(); - - configureRpcThreadpool(1, true); - - status_t status = service->registerAsService(); - if (status != OK) { - LOG(ERROR) << "Cannot register FastCharge HAL service."; - return 1; - } - - LOG(INFO) << "FastCharge HAL service ready."; - - joinRpcThreadpool(); - - LOG(ERROR) << "FastCharge HAL service failed to join thread pool."; - return 1; -} diff --git a/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.rc b/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.rc deleted file mode 100644 index 824a162..0000000 --- a/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.rc +++ /dev/null @@ -1,10 +0,0 @@ -service vendor.fastcharge-hal-1-0 /vendor/bin/hw/vendor.lineage.fastcharge@1.0-service.venus - class hal - user system - group system - -on property:persist.vendor.sec.fastchg_enabled=true - start batterysecret - -on property:persist.vendor.sec.fastchg_enabled=false - stop batterysecret diff --git a/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.xml b/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.xml deleted file mode 100644 index 0c55ea5..0000000 --- a/fastcharge/vendor.lineage.fastcharge@1.0-service.venus.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - vendor.lineage.fastcharge - hwbinder - 1.0 - - IFastCharge - default - - - diff --git a/lineage_taoyao.mk b/lineage_taoyao.mk index cd2e1f4..15523b9 100644 --- a/lineage_taoyao.mk +++ b/lineage_taoyao.mk @@ -13,6 +13,7 @@ $(call inherit-product, vendor/lineage/config/common_full_phone.mk) TARGET_BOOT_ANIMATION_RES := 1080 TARGET_HAS_UDFPS := true TARGET_INCLUDE_ACCORD := false +WITH_GMS := true # Device identifier. This must come after all inclusions. PRODUCT_NAME := lineage_taoyao @@ -27,9 +28,9 @@ SystemName := taoyao_global SystemDevice := taoyao PRODUCT_BUILD_PROP_OVERRIDES += \ - BuildDesc="taoyao_global-user 14 UKQ1.231003.002 V816.0.21.0.ULIMIXM release-keys" \ + BuildDesc="taoyao_global-user 14 UKQ1.231003.002 V816.0.26.0.ULIMIXM release-keys" \ DeviceName=$(SystemDevice) \ DeviceProduct=$(SystemName) # Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop -BUILD_FINGERPRINT := Xiaomi/taoyao_global/taoyao:14/UKQ1.231003.002/V816.0.21.0.ULIMIXM:user/release-keys +BUILD_FINGERPRINT := Xiaomi/taoyao_global/taoyao:14/UKQ1.231003.002/V816.0.26.0.ULIMIXM:user/release-keys diff --git a/media/lahaina/media_codecs_lahaina.xml b/media/lahaina/media_codecs_lahaina.xml index 5c02c16..b8ce284 100644 --- a/media/lahaina/media_codecs_lahaina.xml +++ b/media/lahaina/media_codecs_lahaina.xml @@ -103,6 +103,7 @@ --> + diff --git a/media/media_codecs_c2_dolby_audio.xml b/media/media_codecs_c2_dolby_audio.xml new file mode 100644 index 0000000..914a60f --- /dev/null +++ b/media/media_codecs_c2_dolby_audio.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/media/shima/media_codecs_shima_v1.xml b/media/shima/media_codecs_shima_v1.xml index d7856f2..92330dd 100644 --- a/media/shima/media_codecs_shima_v1.xml +++ b/media/shima/media_codecs_shima_v1.xml @@ -83,6 +83,7 @@ --> + diff --git a/media/yupik/media_codecs_yupik_v1.xml b/media/yupik/media_codecs_yupik_v1.xml index ad51458..3f7642b 100644 --- a/media/yupik/media_codecs_yupik_v1.xml +++ b/media/yupik/media_codecs_yupik_v1.xml @@ -75,6 +75,7 @@ --> + diff --git a/odm.prop b/odm.prop index a56a86a..0c1caa5 100644 --- a/odm.prop +++ b/odm.prop @@ -3,3 +3,10 @@ bluetooth.device.default_name=Xiaomi 12 Lite # Qcom ro.vendor.qti.va_odm.support=1 + +# Dolby +ro.vendor.dolby.dax.version=DAX3_3.6.0.12_r1 +ro.vendor.dolby.model=PAFM00 +ro.vendor.dolby.device=OP46C3 +ro.vendor.dolby.manufacturer=OPLUS +ro.vendor.dolby.brand=OPLUS diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 9106770..e2eed41 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -21,49 +21,6 @@ true - - - - - - wifi,1,1,1,-1,true - mobile,0,0,0,-1,true - mobile_mms,2,0,4,60000,true - mobile_supl,3,0,2,60000,true - mobile_dun,4,0,2,60000,true - mobile_hipri,5,0,3,60000,true - mobile_fota,10,0,2,60000,true - mobile_ims,11,0,2,60000,true - mobile_cbs,12,0,2,60000,true - bluetooth,7,7,2,-1,true - mobile_emergency,15,0,5,-1,true - ethernet,9,9,9,-1,true - wifi_slave,30,1,1,-1,true - - - - - 5gnr:2097152,6291456,16777216,512000,2097152,8388608 - lte:2097152,4194304,8388608,262144,524288,1048576 - lte_ca:4096,6291456,12582912,4096,1048576,2097152 - umts:4094,87380,1220608,4096,16384,1220608 - hspa:4094,87380,1220608,4096,16384,1220608 - hsupa:4094,87380,1220608,4096,16384,1220608 - hsdpa:4094,87380,1220608,4096,16384,1220608 - hspap:4094,87380,1220608,4096,16384,1220608 - edge:4093,26280,35040,4096,16384,35040 - gprs:4092,8760,11680,4096,8760,11680 - evdo:4094,87380,524288,4096,16384,262144 - - @@ -207,8 +164,8 @@ "/system/bin/surfaceflinger" - - true + + 6291456 false @@ -319,9 +276,6 @@ true - - true - true diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml index 9f27f3e..ad436e0 100644 --- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -35,7 +35,7 @@ 22.7 - 1000 + 4300 0 0 0 diff --git a/proprietary-files.txt b/proprietary-files.txt index 9c2820d..14afa74 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from taoyao V816.0.21.0.ULIMIXM +# All unpinned blobs below are extracted from taoyao V816.0.26.0.ULIMIXM # ACDB vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb @@ -114,6 +114,8 @@ system_ext/etc/permissions/audiosphere.xml system_ext/framework/audiosphere.jar vendor/lib/soundfx/libasphere.so vendor/lib/soundfx/libshoebox.so +vendor/lib/soundfx/libmisoundfx.so +vendor/lib64/soundfx/libmisoundfx.so # Audio Hardware vendor/lib/hw/audio.primary.lahaina.so @@ -829,6 +831,44 @@ vendor/lib64/libtinyxml.so vendor/lib64/libmi-stc-HW-modulate.so vendor/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so:system_ext/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so +# Dolby Atmos - from OnePlus 9RT MT2111_14.0.0.730(EX01) +odm/bin/hw/vendor.dolby_v3_6.hardware.dms360@2.0-service|7951f0ede5108f0080bb8abb18651058db9e46ae +odm/etc/dolby/multimedia_dolby_dax_default.xml|be49c4cde1bc41f67fbfa2c49ba6d8f4e40eb8dc +odm/etc/init/vendor.dolby_v3_6.hardware.dms360@2.0-service.rc|5da96cf855061860f27dff6399505f8d1f1daeee +odm/etc/vintf/manifest/manifest_dax_dolby_v3_6.xml|c4704e5bc4da7cdf291c79389f379c8355eaf730 +odm/lib/libdapparamstorage_v3_6.so|c6c36fba280f2373034cf754870611614bf0f22f +odm/lib/libdeccfg_v3_6.so|742cadaf61aea20eabdac099668bfd43ddf4bb35 +odm/lib/libdlbdsservice_v3_6.so|eac269dfbf334f4cc9d5900fb1c53dbfbaea4d6b|46f7ba8b622a3a6d31d2dcac71581bc1873e3cb1 +odm/lib/libstagefright_soft_ddpdec_v3_6.so:odm/lib/libstagefright_soft_ddpdec.so;FIX_SONAME|7b9a91a1d15c90a0d804d372554e561380cd109e|d8bfe5b894f8a175f0dc3fbb2c16da7faafa7e9b +odm/lib/soundfx/libhwdap_v3_6.so|1992eea271d67bef7482377605a2efa4c2f6dba8 +odm/lib/soundfx/libswdap_v3_6.so|3e521eb43ea5b43e2436f2c46d7b8f169b2f1553 +odm/lib/vendor.dolby_v3_6.hardware.dms360@2.0.so|d6f89d6499661023dc8fe451ca5c55f1a3ba7d55 +odm/lib64/libdapparamstorage_v3_6.so|d0c9e16ec5a589a9e47a8d3907d7949fd4fdb439 +odm/lib64/libdeccfg_v3_6.so|25a64da2aa3bf9cb2b6fd644547ba1e94cdb47f4 +odm/lib64/libdlbdsservice_v3_6.so|08ae454ff029791ba436f750ca6c717cb6d7bf36|a81056b8a7cf90df84368b8086691f38950613fc +odm/lib64/vendor.dolby_v3_6.hardware.dms360@2.0-impl.so|5b5f4b383c03a6aaa759b1cc7f6f0aea7d1f6ba0 +odm/lib64/vendor.dolby_v3_6.hardware.dms360@2.0.so|e62f04117fead61eea7f2593e7ccbb565436a0ee + +# Dolby Media - from OnePlus 11 CPH2447_15.0.0.401(EX01) +odm/bin/hw/vendor.dolby_sp.hardware.dmssp@2.0-service|1240cecce2ad8943c2aa5b96381ebeb5e1bac43d +odm/bin/hw/vendor.dolby_sp.media.c2@1.0-service|cafd800a4e83afa206347886cfed48cdb50cb80c|474935cbe8584567aa932f4284409e81e60eaae2 +odm/etc/init/vendor.dolby.media.c2@1.0-service.rc|6af989419070ea6b4646f47ab78849d7549abda3 +odm/etc/init/vendor.dolby_sp.hardware.dmssp@2.0-service.rc|94c85fbfc93527395fcc1bb7bfb58734f245d4f3 +odm/etc/vintf/manifest/vendor.dolby.hardware.dms.xml|dc9ebef89624d524fe76724e9a220b5d2affe62b +odm/lib64/libcodec2_hidl@1.0.so:odm/lib64/libcodec2_hidl@1.0_sp.so;FIX_SONAME|4b662f2ecc5c66874f93407c48f492b2d09ce47c|8d18abc58bc31d65c74ba217f6b6370cee733e1c +odm/lib64/libcodec2_hidl_plugin.so:odm/lib64/libcodec2_hidl_plugin_sp.so;FIX_SONAME|2dbcfda2c7d867edf106fc72d02b11c719f676fb|0488118efefd3426416e53851d2b3093d9e64dbe +odm/lib64/libcodec2_soft_ac4dec_sp.so|b22d228a84b1698bca8c95aaf67324f47a8262bb|c49695f1b4c2f88d133d67c4acc22c341aeb3a80 +odm/lib64/libcodec2_soft_common.so:odm/lib64/libcodec2_soft_common_sp.so;FIX_SONAME|5cce54ffe4e82ca9d6ca6606ac66b599ac28ea71|4f12770ce036ce5e6cd2424fafe16614ed676c61 +odm/lib64/libcodec2_soft_ddpdec_sp.so|c2034f16911dd7ae4c58c4e05c4f54b4293faef3|d897c315006009d4c7405488f246f4de4a81b87d +odm/lib64/libcodec2_store_dolby_sp.so|4b9e3bd2fd8ffd49d50b81926cb89f7916c7a212|f1a59b096f7be5a2f09d0648742ec77c46dba06d +odm/lib64/libdapparamstorage_sp.so|f275e0f47c40b72890ee1cde373e60b4b2ffd711 +odm/lib64/libdeccfg_sp.so|e7f27c1009baecf84835deee1a7e296c5dc3f4e6 +odm/lib64/libdlbdsservice_sp.so|7c1847cce3d0c7f4ce5658090d752e493e8570ea|42b02b3986750dd1bb54504ffbd69e2cff0c6d11 +odm/lib64/libui.so:odm/lib64/libui_sp.so;FIX_SONAME|88b8584db2fa78d0ec06d89f623f8321721051e1|ff7cdbb549a1a7972f37a99f4581136048b45339 +odm/lib64/vendor.dolby_sp.hardware.dmssp@2.0-impl.so|b51e6a885a738023ce6ec97b702d6733b70d0a15 +odm/lib64/vendor.dolby_sp.hardware.dmssp@2.0.so|2173d68717cbcdaab98e1cf15a0d410ea00d0271 +vendor/lib64/libcodec2_vndk.so:odm/lib64/libcodec2_vndk_sp.so;FIX_SONAME|d9d17fd476ee2c3593b0f123af957132e34211af|156d0dc125c22b48308143e6566f747b5a1270bc + # DPM system/framework/tcmclient.jar system_ext/bin/dpmd @@ -1440,7 +1480,7 @@ vendor/lib64/libsnsapi.so vendor/lib64/libsnsdiaglog.so vendor/lib64/libssc.so vendor/lib64/libssc_default_listener.so -vendor/lib64/libssccalapi.so +vendor/lib64/libssccalapi.so;DUMMY_SHARED_LIB vendor/lib64/libultrasound.so vendor/lib64/sensors.elliptic@2.0.so vendor/lib64/sensors.mius.proximity.so @@ -1448,9 +1488,9 @@ vendor/lib64/sensors.ssc.so vendor/lib64/sensors.touch.detect.so # Sensors (citsensor) -vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service vendor/etc/init/vendor.xiaomi.hardware.citsensorservice@1.1-service.rc +vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.1.so diff --git a/proprietary-firmware.txt b/proprietary-firmware.txt index d94e461..6788c97 100644 --- a/proprietary-firmware.txt +++ b/proprietary-firmware.txt @@ -1,4 +1,4 @@ -## All proprietary files from this list are from taoyao V816.0.21.0.ULIMIXM +## All proprietary files from this list are from taoyao V816.0.26.0.ULIMIXM abl.img;AB aop.img;AB diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 761ad84..ab4db0f 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -83,7 +83,6 @@ on boot chmod 2770 /dev/socket/qmux_radio mkdir /mnt/vendor/persist/alarm 0770 system system - mkdir /mnt/vendor/persist/time 0770 system system mkdir /mnt/vendor/persist/secnvm 0770 system system mkdir /mnt/vendor/persist/iar_db 0770 system system mkdir /mnt/vendor/spunvm 0770 system system @@ -190,9 +189,6 @@ on post-fs-data mkdir /dev/socket/wifihal 0770 wifi wifi chmod 2770 /dev/socket/wifihal - # Create /data/time folder for time-services - mkdir /data/vendor/time/ 0700 system system - mkdir /data/vendor/secure_element 0777 system system # Mark the copy complete flag to not completed diff --git a/rro_overlays/DeviceAsWebcamOverlayCommon/Android.bp b/rro_overlays/DeviceAsWebcamOverlayCommon/Android.bp new file mode 100644 index 0000000..26e5059 --- /dev/null +++ b/rro_overlays/DeviceAsWebcamOverlayCommon/Android.bp @@ -0,0 +1,9 @@ +// +// SPDX-FileCopyrightText: The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "DeviceAsWebcamOverlaySM8350", + device_specific: true, +} diff --git a/rro_overlays/DeviceAsWebcamOverlayCommon/AndroidManifest.xml b/rro_overlays/DeviceAsWebcamOverlayCommon/AndroidManifest.xml new file mode 100644 index 0000000..d1ef30b --- /dev/null +++ b/rro_overlays/DeviceAsWebcamOverlayCommon/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/rro_overlays/DeviceAsWebcamOverlayCommon/res/raw/ignored_v4l2_nodes.json b/rro_overlays/DeviceAsWebcamOverlayCommon/res/raw/ignored_v4l2_nodes.json new file mode 100644 index 0000000..5abeff1 --- /dev/null +++ b/rro_overlays/DeviceAsWebcamOverlayCommon/res/raw/ignored_v4l2_nodes.json @@ -0,0 +1,6 @@ +[ + "/dev/video0", + "/dev/video1", + "/dev/video32", + "/dev/video33" +] diff --git a/rro_overlays/FrameworkOverlayUDFPS/Android.bp b/rro_overlays/FrameworkOverlayUDFPS/Android.bp new file mode 100644 index 0000000..96954a6 --- /dev/null +++ b/rro_overlays/FrameworkOverlayUDFPS/Android.bp @@ -0,0 +1,9 @@ +// +// SPDX-FileCopyrightText: The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "FrameworkOverlayUDFPS", + device_specific: true, +} diff --git a/rro_overlays/FrameworkOverlayUDFPS/AndroidManifest.xml b/rro_overlays/FrameworkOverlayUDFPS/AndroidManifest.xml new file mode 100644 index 0000000..3c35e25 --- /dev/null +++ b/rro_overlays/FrameworkOverlayUDFPS/AndroidManifest.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/rro_overlays/FrameworkOverlayUDFPS/res/values/config.xml b/rro_overlays/FrameworkOverlayUDFPS/res/values/config.xml new file mode 100644 index 0000000..fb8f8e2 --- /dev/null +++ b/rro_overlays/FrameworkOverlayUDFPS/res/values/config.xml @@ -0,0 +1,16 @@ + + + + + org.lineageos.sensor.udfps + + + true + + + true + diff --git a/rro_overlays/XiaomiDolbyResCommon/Android.bp b/rro_overlays/XiaomiDolbyResCommon/Android.bp new file mode 100644 index 0000000..67c571d --- /dev/null +++ b/rro_overlays/XiaomiDolbyResCommon/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2025 PixelOS +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "XiaomiDolbyResCommon", + device_specific: true, +} diff --git a/rro_overlays/XiaomiDolbyResCommon/AndroidManifest.xml b/rro_overlays/XiaomiDolbyResCommon/AndroidManifest.xml new file mode 100644 index 0000000..ca7c60c --- /dev/null +++ b/rro_overlays/XiaomiDolbyResCommon/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/rro_overlays/XiaomiDolbyResCommon/res/values/arrays.xml b/rro_overlays/XiaomiDolbyResCommon/res/values/arrays.xml new file mode 100644 index 0000000..e489b6c --- /dev/null +++ b/rro_overlays/XiaomiDolbyResCommon/res/values/arrays.xml @@ -0,0 +1,27 @@ + + + + + + + @string/dolby_profile_dynamic + @string/dolby_profile_video + @string/dolby_profile_music + @string/dolby_profile_game1 + @string/dolby_profile_game2 + @string/dolby_profile_voice + + + + 0 + 1 + 2 + 3 + 4 + 5 + + + diff --git a/rro_overlays/XiaomiDolbyResCommon/res/values/strings.xml b/rro_overlays/XiaomiDolbyResCommon/res/values/strings.xml new file mode 100644 index 0000000..4df068b --- /dev/null +++ b/rro_overlays/XiaomiDolbyResCommon/res/values/strings.xml @@ -0,0 +1,16 @@ + + + + + + Dynamic + Movie/Video + Music + Game1 + Game2 + Voice + + diff --git a/sepolicy/vendor/attributes b/sepolicy/vendor/attributes index 0981fe0..69791d7 100644 --- a/sepolicy/vendor/attributes +++ b/sepolicy/vendor/attributes @@ -10,3 +10,8 @@ attribute vendor_hal_camerapostproc_xiaomi_server; attribute vendor_hal_citsensorservice_xiaomi; attribute vendor_hal_citsensorservice_xiaomi_client; attribute vendor_hal_citsensorservice_xiaomi_server; + +# Dolby +attribute hal_dms; +attribute hal_dms_client; +attribute hal_dms_server; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index faf79ec..e42a054 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -35,6 +35,12 @@ # Core Control /sys/devices/system/cpu/cpu[0-7]/online u:object_r:vendor_sysfs_corecontrol:s0 +# Dolby +/data/vendor/dolby(/.*)? u:object_r:vendor_data_file:s0 +/(odm|vendor/odm)/bin/hw/vendor\.dolby_v3_6\.hardware\.dms360@2\.0-service u:object_r:hal_dms_default_exec:s0 +/(odm|vendor/odm)/bin/hw/vendor\.dolby_sp\.hardware\.dmssp@2\.0-service u:object_r:hal_dms_default_exec:s0 +/(vendor|odm)/bin/hw/vendor\.dolby_sp\.media\.c2@1\.0-service u:object_r:mediacodec_exec:s0 + # Hexagon DSP-side executable needed for Halide operation # This is labeled as public_adsprpcd_file as it needs to be read by apps # (e.g. Google Camera App) @@ -57,9 +63,6 @@ # HTSR /sys/devices/virtual/touch/touch_dev/bump_sample_rate u:object_r:sysfs_htsr:s0 -# Fastcharge HAL -/(vendor|system/vendor)/bin/hw/vendor\.lineage\.fastcharge@[0-9]\.[0-9]-service\.venus u:object_r:hal_lineage_fastcharge_default_exec:s0 - # Mlipay /vendor/bin/mlipayd@1.1 u:object_r:hal_mlipay_default_exec:s0 diff --git a/sepolicy/vendor/hal_dms.te b/sepolicy/vendor/hal_dms.te new file mode 100644 index 0000000..e36387d --- /dev/null +++ b/sepolicy/vendor/hal_dms.te @@ -0,0 +1,20 @@ +type hal_dms_hwservice, hwservice_manager_type, protected_hwservice; + +type hal_dms_default, domain; +hal_server_domain(hal_dms_default, hal_dms) + +type hal_dms_default_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_dms_default) + +hal_attribute_hwservice(hal_dms, hal_dms_hwservice) + +binder_call(hal_dms_client, hal_dms_server) +binder_call(hal_dms_server, hal_dms_client) + +hal_client_domain(hal_audio_default, hal_dms) +hal_client_domain(mediacodec, hal_dms) + +allow hal_dms_default vendor_data_file:dir rw_dir_perms; +allow hal_dms_default vendor_data_file:file create_file_perms; + +set_prop(hal_dms_default, vendor_audio_prop) diff --git a/sepolicy/vendor/hal_lineage_fastcharge_default.te b/sepolicy/vendor/hal_lineage_fastcharge_default.te deleted file mode 100644 index 7967ede..0000000 --- a/sepolicy/vendor/hal_lineage_fastcharge_default.te +++ /dev/null @@ -1,9 +0,0 @@ -get_prop(hal_lineage_fastcharge, vendor_fastcharge_prop) -set_prop(hal_lineage_fastcharge, vendor_fastcharge_prop) - -# Fast Charge Node Service Permissions -allow hal_lineage_fastcharge_default sysfs_battery_supply:dir search; -allow hal_lineage_fastcharge_default sysfs_battery_supply:file rw_file_perms; - -allow hal_lineage_fastcharge_default vendor_sysfs_battery_supply:dir search; -allow hal_lineage_fastcharge_default vendor_sysfs_battery_supply:file rw_file_perms; diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts index 3ef3a25..7074176 100644 --- a/sepolicy/vendor/hwservice_contexts +++ b/sepolicy/vendor/hwservice_contexts @@ -2,8 +2,11 @@ vendor.xiaomi.hardware.cameraperf::IMiCameraPerfService u:object_r:vendor_hal_cameraperf_hwservice:s0 vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:vendor_hal_camerapostproc_xiaomi_hwservice:s0 +# Dolby +vendor.dolby_v3_6.hardware.dms360::IDms u:object_r:hal_dms_hwservice:s0 +vendor.dolby_sp.hardware.dmssp::IDms u:object_r:hal_dms_hwservice:s0 + # Fingerprint -vendor.xiaomi.hardware.dtool::IDtool u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0 vendor.xiaomi.hardware.fx.tunnel::IMiFxTunnel u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0 vendor.xiaomi.hardware.fingerprintextension::IXiaomiFingerprint u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0 com.fingerprints.extension::IFingerprintEngineering u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0 diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te index 2afe5e3..df0fc75 100644 --- a/sepolicy/vendor/property.te +++ b/sepolicy/vendor/property.te @@ -1,5 +1,2 @@ -# Fastcharge -vendor_internal_prop(vendor_fastcharge_prop); - # ZRAM vendor_internal_prop(vendor_zram_prop); diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 41c685d..133f7fa 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -9,9 +9,6 @@ ro.boot.camera. u:object_r:vendor_camera_prop:s0 ro.boot.camera.config u:object_r:vendor_camera_sensor_prop:s0 ro.vendor.audio.us.proximity u:object_r:vendor_camera_prop:s0 -# Fastcharge HAL -persist.vendor.sec.fastchg_enabled u:object_r:vendor_fastcharge_prop:s0 - # Fingerprint persist.vendor.sys.fp. u:object_r:vendor_fp_prop:s0 persist.vendor.sys.fp.info u:object_r:vendor_fp_info_prop:s0 diff --git a/shims/Android.bp b/shims/Android.bp index 8e88432..3c1e888 100644 --- a/shims/Android.bp +++ b/shims/Android.bp @@ -7,4 +7,14 @@ cc_library { name: "libcamera_shim", srcs: ["libcamera.c"], +} + +cc_library { + name: "citsensorservice_shim", + srcs: ["citsensorservice.c"], +} + +cc_library { + name: "wfdservice_shim", + srcs: ["wfdservice.c"], } \ No newline at end of file diff --git a/shims/citsensorservice.c b/shims/citsensorservice.c new file mode 100644 index 0000000..ddb5e9e --- /dev/null +++ b/shims/citsensorservice.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2023 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +void set_ssc_sensor_list() { + return; +} + +void ssccalapi_set_debug() { + return; +} + +void transfer_parse_rgb_oem_msg() { + return; +} + +void transfer_ssc_oem_test_msg() { + return; +} diff --git a/shims/libcamera.c b/shims/libcamera.c index cb774fd..24a73e7 100644 --- a/shims/libcamera.c +++ b/shims/libcamera.c @@ -4,6 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ - void _ZN7android18BnProducerListener16onBufferDetachedEi() { +void _ZN7android18BnProducerListener16onBufferDetachedEi() { return; } \ No newline at end of file diff --git a/shims/wfdservice.c b/shims/wfdservice.c new file mode 100644 index 0000000..2020fc1 --- /dev/null +++ b/shims/wfdservice.c @@ -0,0 +1,9 @@ +/* + * Copyright (C) 2023 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +void _ZN7android11AudioSystem24setDeviceConnectionStateE24audio_policy_dev_state_tRKNS_5media5audio6common9AudioPortE14audio_format_t() { + return; +} \ No newline at end of file diff --git a/vendor.prop b/vendor.prop index 72ca500..9209d86 100644 --- a/vendor.prop +++ b/vendor.prop @@ -164,6 +164,9 @@ persist.vendor.dpm.idletimer.mode=default persist.vendor.dpm.nsrm.bkg.evt=3955 persist.vendor.dpmhalservice.enable=1 +# Enable DeviceAsWebcam support +ro.usb.uvc.enabled=true + # Fingerprint persist.vendor.fingerprint.type=udfps_optical persist.vendor.fingerprint.sensor_location=540|2149|103 @@ -276,7 +279,6 @@ persist.vendor.sensors.debug.hal=0 persist.vendor.sensors.allow_non_default_discovery=true persist.vendor.sensors.on_change_sample_period=true persist.vendor.sensors.sync_request=true -ro.vendor.sensors.xiaomi.udfps=true # Storage ro.incremental.enable=yes