commit c7433ec7da15e4b232a130c7bdddc2cfe226541c Author: HELLBOY017 Date: Fri Nov 25 02:13:30 2022 +0530 Import OOS-11 dolby from OP9R (11.2.8.8) Co-authored-by: Omkar Chandorkar diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..9ff0200 --- /dev/null +++ b/Android.bp @@ -0,0 +1,40 @@ +// Copyright (C) 2022 FlamingoOS 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. + +soong_namespace { +} + +android_app_import { + name: "daxService", + owner: "oneplus", + apk: "proprietary/system_ext/priv-app/daxService/daxService.apk", + certificate: "platform", + dex_preopt: { + enabled: false, + }, + privileged: true, + system_ext_specific: true, +} + +android_app_import { + name: "DaxUI", + owner: "oneplus", + apk: "proprietary/system_ext/priv-app/DaxUI/DaxUI.apk", + certificate: "platform", + dex_preopt: { + enabled: false, + }, + privileged: true, + system_ext_specific: true, +} diff --git a/README.mkdn b/README.mkdn new file mode 100644 index 0000000..e819977 --- /dev/null +++ b/README.mkdn @@ -0,0 +1,17 @@ +OnePlus Dolby +============== + +Getting Started +--------------- +Make sure you are not using any audio effect configuration in your device trees. Also for dolby media codecs to work add this line in your media codecs config (should be in vendor partition) :- + +```bash + +``` + +To build, inherit the dolby config by adding this in your device's makefile :- + +```bash +$(call inherit-product, hardware/dolby/dolby.mk) +``` + diff --git a/configs/audio/audio_effects.xml b/configs/audio/audio_effects.xml new file mode 100644 index 0000000..2d796f2 --- /dev/null +++ b/configs/audio/audio_effects.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/dax-default.xml b/configs/dax-default.xml new file mode 100644 index 0000000..aaae4b2 --- /dev/null +++ b/configs/dax-default.xml @@ -0,0 +1,1916 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media_codecs_dolby_audio.xml b/configs/media_codecs_dolby_audio.xml new file mode 100644 index 0000000..a67dd0e --- /dev/null +++ b/configs/media_codecs_dolby_audio.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dolby.mk b/dolby.mk new file mode 100644 index 0000000..2e66ca8 --- /dev/null +++ b/dolby.mk @@ -0,0 +1,79 @@ +# +# Copyright (C) 2022 FlamingoOS 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. +# + +# Soong Namespace +PRODUCT_SOONG_NAMESPACES += \ + hardware/dolby + +# Enable codec support +AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true + +# SEPolicy +BOARD_VENDOR_SEPOLICY_DIRS += hardware/dolby/sepolicy/vendor + +# HIDL +DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += hardware/dolby/dolby_framework_matrix.xml +DEVICE_MANIFEST_FILE += hardware/dolby/vendor.dolby.hardware.dms@2.0-service.xml + +# Configs +PRODUCT_COPY_FILES += \ + hardware/dolby/configs/dax-default.xml:$(TARGET_COPY_OUT_ODM)/etc/dolby/dax-default.xml \ + hardware/dolby/configs/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml \ + hardware/dolby/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml + +# Dolby +PRODUCT_VENDOR_PROPERTIES += \ + ro.vendor.dolby.dax.version=DAX3_3.6.0.12_r1 \ + ro.vendor.product.device.db=OP_DEVICE \ + ro.vendor.product.manufacturer.db=OP_PHONE \ + vendor.product.device=OP_PHONE \ + vendor.product.manufacturer=OPD + +# DaxUI and daxService +PRODUCT_PACKAGES += \ + DaxUI \ + daxService + +# Proprietary blobs +PRODUCT_COPY_FILES += \ + hardware/dolby/proprietary/system/lib64/vendor.dolby.hardware.dms@2.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.dolby.hardware.dms@2.0.so \ + hardware/dolby/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxappui.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.dolby.daxappui.xml \ + hardware/dolby/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxservice.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.dolby.daxservice.xml \ + hardware/dolby/proprietary/system_ext/etc/sysconfig/hiddenapi-com.dolby.daxservice.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/hiddenapi-com.dolby.daxservice.xml \ + hardware/dolby/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxappui.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-com.dolby.daxappui.xml \ + hardware/dolby/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxservice.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-com.dolby.daxservice.xml \ + hardware/dolby/proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.dolby.hardware.dms@2.0-service \ + hardware/dolby/proprietary/vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.dolby.hardware.dms@2.0-service.rc \ + hardware/dolby/proprietary/vendor/lib/libdapparamstorage.so:$(TARGET_COPY_OUT_VENDOR)/lib/libdapparamstorage.so \ + hardware/dolby/proprietary/vendor/lib/libdeccfg.so:$(TARGET_COPY_OUT_VENDOR)/lib/libdeccfg.so \ + hardware/dolby/proprietary/vendor/lib/libstagefright_soft_ddpdec.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefright_soft_ddpdec.so \ + hardware/dolby/proprietary/vendor/lib/libstagefrightdolby.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefrightdolby.so \ + hardware/dolby/proprietary/vendor/lib/soundfx/libeffectproxy.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libeffectproxy.so \ + hardware/dolby/proprietary/vendor/lib/soundfx/libhwdap.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libhwdap.so \ + hardware/dolby/proprietary/vendor/lib/soundfx/libswdap.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libswdap.so \ + hardware/dolby/proprietary/vendor/lib/soundfx/libswgamedap.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libswgamedap.so \ + hardware/dolby/proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so:$(TARGET_COPY_OUT_VENDOR)/lib/vendor.dolby.hardware.dms@2.0.so \ + hardware/dolby/proprietary/vendor/lib64/libdapparamstorage.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdapparamstorage.so \ + hardware/dolby/proprietary/vendor/lib64/libdeccfg.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdeccfg.so \ + hardware/dolby/proprietary/vendor/lib64/libdlbdsservice.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdlbdsservice.so \ + hardware/dolby/proprietary/vendor/lib64/libstagefright_soft_ddpdec.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefright_soft_ddpdec.so \ + hardware/dolby/proprietary/vendor/lib64/libstagefrightdolby.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefrightdolby.so \ + hardware/dolby/proprietary/vendor/lib64/soundfx/libeffectproxy.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libeffectproxy.so \ + hardware/dolby/proprietary/vendor/lib64/soundfx/libhwdap.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libhwdap.so \ + hardware/dolby/proprietary/vendor/lib64/soundfx/libswdap.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libswdap.so \ + hardware/dolby/proprietary/vendor/lib64/soundfx/libswgamedap.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libswgamedap.so \ + hardware/dolby/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.dolby.hardware.dms@2.0-impl.so \ + hardware/dolby/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.dolby.hardware.dms@2.0.so diff --git a/dolby_framework_matrix.xml b/dolby_framework_matrix.xml new file mode 100644 index 0000000..de7fee9 --- /dev/null +++ b/dolby_framework_matrix.xml @@ -0,0 +1,11 @@ + + + vendor.dolby.hardware.dms + hwbinder + 2.0 + + IDms + default + + + diff --git a/proprietary/system/lib64/vendor.dolby.hardware.dms@2.0.so b/proprietary/system/lib64/vendor.dolby.hardware.dms@2.0.so new file mode 100644 index 0000000..9641dde Binary files /dev/null and b/proprietary/system/lib64/vendor.dolby.hardware.dms@2.0.so differ diff --git a/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxappui.xml b/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxappui.xml new file mode 100644 index 0000000..2100086 --- /dev/null +++ b/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxappui.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxservice.xml b/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxservice.xml new file mode 100644 index 0000000..d5c6c31 --- /dev/null +++ b/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxservice.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + diff --git a/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxappui.xml b/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxappui.xml new file mode 100644 index 0000000..5b393ac --- /dev/null +++ b/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxappui.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxservice.xml b/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxservice.xml new file mode 100644 index 0000000..d6c2855 --- /dev/null +++ b/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxservice.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/proprietary/system_ext/etc/sysconfig/hiddenapi-com.dolby.daxservice.xml b/proprietary/system_ext/etc/sysconfig/hiddenapi-com.dolby.daxservice.xml new file mode 100644 index 0000000..c1e24f2 --- /dev/null +++ b/proprietary/system_ext/etc/sysconfig/hiddenapi-com.dolby.daxservice.xml @@ -0,0 +1,4 @@ + + + + diff --git a/proprietary/system_ext/priv-app/DaxUI/DaxUI.apk b/proprietary/system_ext/priv-app/DaxUI/DaxUI.apk new file mode 100644 index 0000000..22f03a1 Binary files /dev/null and b/proprietary/system_ext/priv-app/DaxUI/DaxUI.apk differ diff --git a/proprietary/system_ext/priv-app/daxService/daxService.apk b/proprietary/system_ext/priv-app/daxService/daxService.apk new file mode 100644 index 0000000..fae35b0 Binary files /dev/null and b/proprietary/system_ext/priv-app/daxService/daxService.apk differ diff --git a/proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service b/proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service new file mode 100644 index 0000000..3be5c4b Binary files /dev/null and b/proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service differ diff --git a/proprietary/vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc b/proprietary/vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc new file mode 100644 index 0000000..03b7d0d --- /dev/null +++ b/proprietary/vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc @@ -0,0 +1,6 @@ +service dms-hal-2-0 /vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service + class hal + user media + group audio media +on post-fs-data + mkdir /data/vendor/dolby 0770 media media diff --git a/proprietary/vendor/lib/libdapparamstorage.so b/proprietary/vendor/lib/libdapparamstorage.so new file mode 100644 index 0000000..ed1d159 Binary files /dev/null and b/proprietary/vendor/lib/libdapparamstorage.so differ diff --git a/proprietary/vendor/lib/libdeccfg.so b/proprietary/vendor/lib/libdeccfg.so new file mode 100644 index 0000000..619bd4b Binary files /dev/null and b/proprietary/vendor/lib/libdeccfg.so differ diff --git a/proprietary/vendor/lib/libstagefright_soft_ddpdec.so b/proprietary/vendor/lib/libstagefright_soft_ddpdec.so new file mode 100644 index 0000000..2875451 Binary files /dev/null and b/proprietary/vendor/lib/libstagefright_soft_ddpdec.so differ diff --git a/proprietary/vendor/lib/libstagefrightdolby.so b/proprietary/vendor/lib/libstagefrightdolby.so new file mode 100644 index 0000000..6ed697d Binary files /dev/null and b/proprietary/vendor/lib/libstagefrightdolby.so differ diff --git a/proprietary/vendor/lib/soundfx/libeffectproxy.so b/proprietary/vendor/lib/soundfx/libeffectproxy.so new file mode 100644 index 0000000..f42841a Binary files /dev/null and b/proprietary/vendor/lib/soundfx/libeffectproxy.so differ diff --git a/proprietary/vendor/lib/soundfx/libhwdap.so b/proprietary/vendor/lib/soundfx/libhwdap.so new file mode 100644 index 0000000..fb798fa Binary files /dev/null and b/proprietary/vendor/lib/soundfx/libhwdap.so differ diff --git a/proprietary/vendor/lib/soundfx/libswdap.so b/proprietary/vendor/lib/soundfx/libswdap.so new file mode 100644 index 0000000..97a185f Binary files /dev/null and b/proprietary/vendor/lib/soundfx/libswdap.so differ diff --git a/proprietary/vendor/lib/soundfx/libswgamedap.so b/proprietary/vendor/lib/soundfx/libswgamedap.so new file mode 100644 index 0000000..cf00647 Binary files /dev/null and b/proprietary/vendor/lib/soundfx/libswgamedap.so differ diff --git a/proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so b/proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so new file mode 100644 index 0000000..c7fdf3c Binary files /dev/null and b/proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so differ diff --git a/proprietary/vendor/lib64/libdapparamstorage.so b/proprietary/vendor/lib64/libdapparamstorage.so new file mode 100644 index 0000000..b1821b0 Binary files /dev/null and b/proprietary/vendor/lib64/libdapparamstorage.so differ diff --git a/proprietary/vendor/lib64/libdeccfg.so b/proprietary/vendor/lib64/libdeccfg.so new file mode 100644 index 0000000..67901af Binary files /dev/null and b/proprietary/vendor/lib64/libdeccfg.so differ diff --git a/proprietary/vendor/lib64/libdlbdsservice.so b/proprietary/vendor/lib64/libdlbdsservice.so new file mode 100644 index 0000000..fadb371 Binary files /dev/null and b/proprietary/vendor/lib64/libdlbdsservice.so differ diff --git a/proprietary/vendor/lib64/libstagefright_soft_ddpdec.so b/proprietary/vendor/lib64/libstagefright_soft_ddpdec.so new file mode 100644 index 0000000..14a6155 Binary files /dev/null and b/proprietary/vendor/lib64/libstagefright_soft_ddpdec.so differ diff --git a/proprietary/vendor/lib64/libstagefrightdolby.so b/proprietary/vendor/lib64/libstagefrightdolby.so new file mode 100644 index 0000000..fc573a8 Binary files /dev/null and b/proprietary/vendor/lib64/libstagefrightdolby.so differ diff --git a/proprietary/vendor/lib64/soundfx/libeffectproxy.so b/proprietary/vendor/lib64/soundfx/libeffectproxy.so new file mode 100644 index 0000000..c36f8c2 Binary files /dev/null and b/proprietary/vendor/lib64/soundfx/libeffectproxy.so differ diff --git a/proprietary/vendor/lib64/soundfx/libhwdap.so b/proprietary/vendor/lib64/soundfx/libhwdap.so new file mode 100644 index 0000000..5082891 Binary files /dev/null and b/proprietary/vendor/lib64/soundfx/libhwdap.so differ diff --git a/proprietary/vendor/lib64/soundfx/libswdap.so b/proprietary/vendor/lib64/soundfx/libswdap.so new file mode 100644 index 0000000..8d1d78d Binary files /dev/null and b/proprietary/vendor/lib64/soundfx/libswdap.so differ diff --git a/proprietary/vendor/lib64/soundfx/libswgamedap.so b/proprietary/vendor/lib64/soundfx/libswgamedap.so new file mode 100644 index 0000000..b5d5835 Binary files /dev/null and b/proprietary/vendor/lib64/soundfx/libswgamedap.so differ diff --git a/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so b/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so new file mode 100644 index 0000000..6c3aee1 Binary files /dev/null and b/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so differ diff --git a/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so b/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so new file mode 100644 index 0000000..6919b9f Binary files /dev/null and b/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so differ diff --git a/sepolicy/vendor/attributes b/sepolicy/vendor/attributes new file mode 100644 index 0000000..d6fedfa --- /dev/null +++ b/sepolicy/vendor/attributes @@ -0,0 +1,3 @@ +attribute hal_dms; +attribute hal_dms_client; +attribute hal_dms_server; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts new file mode 100644 index 0000000..5025847 --- /dev/null +++ b/sepolicy/vendor/file_contexts @@ -0,0 +1,5 @@ +# Data files +/data/vendor/dolby(/.*)? u:object_r:vendor_data_file:s0 + +# Dolby +/(vendor|system/vendor)/bin/hw/vendor\.dolby\.hardware\.dms@2\.0-service u:object_r:hal_dms_default_exec:s0 diff --git a/sepolicy/vendor/hal_audio_default.te b/sepolicy/vendor/hal_audio_default.te new file mode 100644 index 0000000..230c9bb --- /dev/null +++ b/sepolicy/vendor/hal_audio_default.te @@ -0,0 +1,2 @@ +allow hal_audio_default hal_dms_hwservice:hwservice_manager find; +binder_call(hal_audio_default, hal_dms_default) diff --git a/sepolicy/vendor/hal_dms.te b/sepolicy/vendor/hal_dms.te new file mode 100644 index 0000000..6f3b093 --- /dev/null +++ b/sepolicy/vendor/hal_dms.te @@ -0,0 +1,6 @@ +# HwBinder IPC from client to server, and callbacks +binder_call(hal_dms_client, hal_dms_server) +binder_call(hal_dms_server, hal_dms_client) + +add_hwservice(hal_dms_server, hal_dms_hwservice) +allow hal_dms_client hal_dms_hwservice:hwservice_manager find; diff --git a/sepolicy/vendor/hal_dms_default.te b/sepolicy/vendor/hal_dms_default.te new file mode 100644 index 0000000..73b850e --- /dev/null +++ b/sepolicy/vendor/hal_dms_default.te @@ -0,0 +1,11 @@ +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) + +allow hal_dms_default vendor_data_file:file { rw_file_perms create unlink }; +allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name remove_name }; +allow hal_dms_default mediacodec:binder call; +binder_call(hal_dms_default, hal_audio_default) +binder_call(hal_dms_default, platform_app) diff --git a/sepolicy/vendor/hwservice.te b/sepolicy/vendor/hwservice.te new file mode 100644 index 0000000..3ef95d3 --- /dev/null +++ b/sepolicy/vendor/hwservice.te @@ -0,0 +1,2 @@ +# Dolby +type hal_dms_hwservice, hwservice_manager_type; diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts new file mode 100644 index 0000000..c39daea --- /dev/null +++ b/sepolicy/vendor/hwservice_contexts @@ -0,0 +1,2 @@ +# Dolby +vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0 diff --git a/sepolicy/vendor/mediacodec.te b/sepolicy/vendor/mediacodec.te new file mode 100644 index 0000000..bf336c1 --- /dev/null +++ b/sepolicy/vendor/mediacodec.te @@ -0,0 +1,2 @@ +allow mediacodec hal_dms_hwservice:hwservice_manager find; +binder_call(mediacodec, hal_dms_default) diff --git a/sepolicy/vendor/platform_app.te b/sepolicy/vendor/platform_app.te new file mode 100644 index 0000000..ae41f50 --- /dev/null +++ b/sepolicy/vendor/platform_app.te @@ -0,0 +1,2 @@ +allow platform_app hal_dms_hwservice:hwservice_manager find; +binder_call(platform_app, hal_dms_default) diff --git a/vendor.dolby.hardware.dms@2.0-service.xml b/vendor.dolby.hardware.dms@2.0-service.xml new file mode 100644 index 0000000..f52fb36 --- /dev/null +++ b/vendor.dolby.hardware.dms@2.0-service.xml @@ -0,0 +1,11 @@ + + + vendor.dolby.hardware.dms + hwbinder + 2.0 + + IDms + default + + +