walleye: Add Moto Dolby support

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
This commit is contained in:
Pranav Vashi
2024-01-22 12:46:13 +00:00
committed by Asriadi Rahim
parent 1fd3b7c802
commit fc84979fa9
47 changed files with 216 additions and 0 deletions

View File

@@ -474,6 +474,89 @@ dex_import {
soc_specific: true,
}
android_app_import {
name: "MotoSignatureApp",
owner: "moto",
apk: "proprietary/system_ext/app/MotoSignatureApp/MotoSignatureApp.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
system_ext_specific: true,
}
android_app_import {
name: "MotoDolbyDax3",
owner: "moto",
apk: "proprietary/system_ext/priv-app/MotoDolbyDax3/MotoDolbyDax3.apk",
overrides: ["MusicFX"],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
system_ext_specific: true,
}
android_app_import {
name: "MotorolaSettingsProvider",
owner: "moto",
apk: "proprietary/system_ext/priv-app/MotorolaSettingsProvider/MotorolaSettingsProvider.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
system_ext_specific: true,
}
android_app_import {
name: "daxService",
owner: "moto",
apk: "proprietary/system_ext/priv-app/daxService/daxService.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
system_ext_specific: true,
}
dex_import {
name: "com.motorola.frameworks.core.addon",
owner: "moto",
jars: ["proprietary/system_ext/framework/com.motorola.frameworks.core.addon.jar"],
system_ext_specific: true,
}
dex_import {
name: "com.motorola.motosignature",
owner: "moto",
jars: ["proprietary/system_ext/framework/com.motorola.motosignature.jar"],
system_ext_specific: true,
}
dex_import {
name: "moto-checkin",
owner: "moto",
jars: ["proprietary/system_ext/framework/moto-checkin.jar"],
system_ext_specific: true,
}
dex_import {
name: "moto-settings",
owner: "moto",
jars: ["proprietary/system_ext/framework/moto-settings.jar"],
system_ext_specific: true,
}
dex_import {
name: "moto",
owner: "moto",
jars: ["proprietary/system_ext/framework/moto.jar"],
system_ext_specific: true,
}
prebuilt_etc_xml {
name: "manifest_android.hardware.drm@1.3-service.widevine",
owner: "google",

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="com.motorola.frameworks.core.addon"
file="/system_ext/framework/com.motorola.frameworks.core.addon.jar"/>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="com.motorola.motosignature"
file="/system_ext/framework/com.motorola.motosignature.jar"/>
</permissions>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<feature name="com.motorola.software.dolbyui"/>
</permissions>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="moto-checkin"
file="/system_ext/framework/moto-checkin.jar"
dependency="moto"/>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="moto-settings"
file="/system_ext/framework/moto-settings.jar"/>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="moto"
file="/system_ext/framework/moto.jar"/>
</permissions>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.dolby.daxservice">
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.MANAGE_USERS"/>
<permission name="android.permission.MODIFY_DEFAULT_AUDIO_EFFECTS"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
</privapp-permissions>
</permissions>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.motorola.android.providers.settings">
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.MANAGE_USERS"/>
<permission name="android.permission.DUMP"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
</privapp-permissions>
</permissions>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.motorola.dolby.dolbyui">
<permission name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"/>
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
</privapp-permissions>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.dolby.daxservice"/>
<allow-in-power-save package="com.dolby.daxservice" />
</config>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.motorola.android.providers.settings"/>
<allow-in-power-save package="com.motorola.android.providers.settings" />
</config>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.motorola.dolby.dolbyui"/>
<allow-in-power-save package="com.motorola.dolby.dolbyui" />
</config>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.motorola.motosignature.app"/>
<allow-in-power-save package="com.motorola.motosignature.app" />
</config>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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

Binary file not shown.

BIN
proprietary/vendor/lib/libdeccfg.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/lib64/libdeccfg.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -214,6 +214,57 @@ PRODUCT_PACKAGES += \
libhwinfo \
RadioConfigLib \
com.android.hotwordenrollment.common.util
# Moto Dolby
PRODUCT_COPY_FILES += \
vendor/google/walleye/proprietary/odm/bin/hw/vendor.dolby_v3_6.hardware.dms360@2.0-service:$(TARGET_COPY_OUT_ODM)/bin/hw/vendor.dolby_v3_6.hardware.dms360@2.0-service \
vendor/google/walleye/proprietary/system_ext/etc/permissions/com.motorola.frameworks.core.addon.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.motorola.frameworks.core.addon.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/com.motorola.motosignature.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.motorola.motosignature.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/com.motorola.software.dolbyui.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.motorola.software.dolbyui.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/moto-checkin.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/moto-checkin.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/moto-settings.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/moto-settings.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/moto.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/moto.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/privapp-com.dolby.daxservice.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-com.dolby.daxservice.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/privapp-com.motorola.android.providers.settings.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-com.motorola.android.providers.settings.xml \
vendor/google/walleye/proprietary/system_ext/etc/permissions/privapp-com.motorola.dolby.dolbyui.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-com.motorola.dolby.dolbyui.xml \
vendor/google/walleye/proprietary/system_ext/etc/sysconfig/config-com.dolby.daxservice.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.dolby.daxservice.xml \
vendor/google/walleye/proprietary/system_ext/etc/sysconfig/config-com.motorola.android.providers.settings.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.motorola.android.providers.settings.xml \
vendor/google/walleye/proprietary/system_ext/etc/sysconfig/config-com.motorola.dolby.dolbyui.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.motorola.dolby.dolbyui.xml \
vendor/google/walleye/proprietary/system_ext/etc/sysconfig/config-com.motorola.motosignature.app.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/config-com.motorola.motosignature.app.xml \
vendor/google/walleye/proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.dolby.hardware.dms@2.0-service \
vendor/google/walleye/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 \
vendor/google/walleye/proprietary/vendor/lib/libdapparamstorage.so:$(TARGET_COPY_OUT_VENDOR)/lib/libdapparamstorage.so \
vendor/google/walleye/proprietary/vendor/lib/libdeccfg.so:$(TARGET_COPY_OUT_VENDOR)/lib/libdeccfg.so \
vendor/google/walleye/proprietary/vendor/lib/libstagefright_soft_ac4dec.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefright_soft_ac4dec.so \
vendor/google/walleye/proprietary/vendor/lib/libstagefright_soft_ddpdec.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefright_soft_ddpdec.so \
vendor/google/walleye/proprietary/vendor/lib/libstagefrightdolby.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefrightdolby.so \
vendor/google/walleye/proprietary/vendor/lib/soundfx/libswdap.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libswdap.so \
vendor/google/walleye/proprietary/vendor/lib/soundfx/libswgamedap.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libswgamedap.so \
vendor/google/walleye/proprietary/vendor/lib/soundfx/libswvqe.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libswvqe.so \
vendor/google/walleye/proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so:$(TARGET_COPY_OUT_VENDOR)/lib/vendor.dolby.hardware.dms@2.0.so \
vendor/google/walleye/proprietary/vendor/lib64/libdapparamstorage.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdapparamstorage.so \
vendor/google/walleye/proprietary/vendor/lib64/libdeccfg.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdeccfg.so \
vendor/google/walleye/proprietary/vendor/lib64/libdlbdsservice.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libdlbdsservice.so \
vendor/google/walleye/proprietary/vendor/lib64/libstagefright_soft_ac4dec.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefright_soft_ac4dec.so \
vendor/google/walleye/proprietary/vendor/lib64/libstagefright_soft_ddpdec.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefright_soft_ddpdec.so \
vendor/google/walleye/proprietary/vendor/lib64/libstagefrightdolby.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefrightdolby.so \
vendor/google/walleye/proprietary/vendor/lib64/soundfx/libswdap.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libswdap.so \
vendor/google/walleye/proprietary/vendor/lib64/soundfx/libswgamedap.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libswgamedap.so \
vendor/google/walleye/proprietary/vendor/lib64/soundfx/libswvqe.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libswvqe.so \
vendor/google/walleye/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.dolby.hardware.dms@2.0-impl.so \
vendor/google/walleye/proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.dolby.hardware.dms@2.0.so
PRODUCT_PACKAGES += \
MotoSignatureApp \
MotoDolbyDax3 \
MotorolaSettingsProvider \
daxService \
com.motorola.frameworks.core.addon \
com.motorola.motosignature \
moto-checkin \
moto-settings \
moto
PRODUCT_COPY_FILES += \
vendor/google/walleye/proprietary/vendor/bin/ATFWD-daemon:$(TARGET_COPY_OUT_VENDOR)/bin/ATFWD-daemon \
vendor/google/walleye/proprietary/vendor/bin/KmInstallKeybox:$(TARGET_COPY_OUT_VENDOR)/bin/KmInstallKeybox \