diff --git a/README.md b/README.md index aa59a409ebf9d1fe57e5c89e0a818ce324249182..7b4455d2ecb4a864a87fd1f380ee0d24bbc0bef9 100644 --- a/README.md +++ b/README.md @@ -74,26 +74,6 @@ PRODUCT_COPY_FILES += \ <path_to_policy>:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.vendor.ext.policy ``` -Enable codec2 hidl in manifest.xml - -```xml -<manifest version="1.0" type="device"> - <hal format="hidl"> - <name>android.hardware.media.c2</name> - <transport>hwbinder</transport> - <version>1.0</version> - <interface> - <name>IComponentStore</name> - <instance>default</instance> - </interface> - <interface> - <name>IConfigurable</name> - <instance>default</instance> - </interface> - </hal> -</manifest> -``` - Add decode and encode components in media\_codecs\_c2.xml ```xml diff --git a/service/Android.bp b/service/Android.bp index c901a0223d4970e0f513c8022d1b1f6734c95b4f..2af2b653511de7c9c7122bf6f2506d88d40cb0db 100644 --- a/service/Android.bp +++ b/service/Android.bp @@ -44,4 +44,5 @@ cc_binary { init_rc: ["android.hardware.media.c2@1.0-service-v4l2-64.rc"], }, }, + vintf_fragments: ["android.hardware.media.c2@1.2-service-v4l2.xml"], } diff --git a/service/android.hardware.media.c2@1.2-service-v4l2.xml b/service/android.hardware.media.c2@1.2-service-v4l2.xml new file mode 100644 index 0000000000000000000000000000000000000000..7976a591a35bb5b5c4535e4bfb131c3c113d4a72 --- /dev/null +++ b/service/android.hardware.media.c2@1.2-service-v4l2.xml @@ -0,0 +1,11 @@ +<manifest version="1.0" type="device"> + <hal format="hidl"> + <name>android.hardware.media.c2</name> + <transport>hwbinder</transport> + <version>1.2</version> + <interface> + <name>IComponentStore</name> + <instance>default</instance> + </interface> + </hal> +</manifest>