Commit graph

64 commits

Author SHA1 Message Date
Robert Lee
5a063cc17b audio: update hdmi audio path
Add permission to read HDMI states by audio hal.

For new project is using
/devices/platform/dwc_dptx-audio/extcon/hdmi_audio

For old projects are using
/devices/platform/drmdp-adma/extcon/hdmi_audio

Bug: 328784922
Test: builds
Flag: EXEMPT update sepolocy
Change-Id: I3bd0ccf1ee804de3157e759eac275673c9fc96a2
Signed-off-by: Robert Lee <lerobert@google.com>
2024-11-18 03:08:08 +00:00
Treehugger Robot
4ec2ce09c4 Merge "[USB Audio] Fix SEPolicy issue" into main 2024-11-04 03:28:24 +00:00
Treehugger Robot
d5df99e993 Merge "[Audio AIDL] Move audiometricext to HIDL only." into main 2024-10-22 02:49:28 +00:00
Poomarin Phloyphisut
afd55f92b9 [Audio AIDL] Move audiometricext to HIDL only.
Previously, audiometricext module which is HIDL module is mistakenly included in AIDL rom.

Test: Local Build on both HIDL and AIDL devices
Flag: EXEMPT bugfix
Bug: 369772495
Change-Id: Ic56fa134056afa782440a8f1dcaa032df481bcc2
2024-10-21 08:39:33 +00:00
sienna
3c88c19581 Update AIDL to v4.
Bug: 361494448
Test: atest vts_treble_vintf_vendor_test
Flag: EXEMPT update aidl
Change-Id: I6883ad8fdb5cadc44e8e59fc50642fc24532cff9
2024-10-04 11:31:35 +00:00
Treehugger Robot
e943d565fe Merge "audio: add soong configs for debugging" into main 2024-09-25 08:47:14 +00:00
David Li
15c9c33a46 audio: add soong configs for debugging
Bug: 357140465
Test: mm
Flag: EXEMPT bugfix
Change-Id: Ib5f229135ccde98b21c6fde8efd9b9121b2a0159
2024-09-13 10:03:50 +00:00
Robert Lee
6902f81e2d audio: allow set_prop for vendor_audio_prop_restricted
Bug: 338910843
Test: manual test
Flag: EXEMPT sepolicy
Change-Id: Id8ad088512aca6cc939c25b5d747fbedeb4cd479
Signed-off-by: Robert Lee <lerobert@google.com>
2024-09-12 09:07:45 +00:00
Jasmine Cha
3d6169d30b switch waves prebuilt version
Flag: EXEMPT bringup waves
Bug: 352461861
Test: manual test

Change-Id: Ic7a826d98a77ccb579594a9fb7db1df5d62e99aa
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-08-26 01:28:12 +00:00
Rios Kao
cf0c5119c9 aidl: audio: update external service version
Test: atest vts_treble_vintf_vendor_test
Bug: 361019537
Flag: EXEMPT bug fix.
Change-Id: Ic069faf598ba67202132a52c68863b032c5adc44
2024-08-20 11:56:02 +00:00
Poomarin Phloyphisut
1ea1cff89a [USB Audio] Fix SEPolicy issue
Error:
avc:  denied  { search } for  name="01" dev="debugfs" ino=927573 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:vendor_usb_debugfs:s0 tclass=dir permissive=0

Bug: 342060153
Test: Local Test.
Flag: EXEMPT bugfix
Change-Id: I29a73a202b239cf37dc53ccf3ef83df3b693e717
2024-08-05 11:11:03 +00:00
David Lin
9e20095889 Merge "audio: add vendor serialno prop" into 24D1-dev am: 07890d909b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/28028457

Change-Id: I45639f601462a9400e9c5245429af434cb3d197c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-03 02:32:24 +00:00
Rios Kao
875dd78991 audio: add vendor serialno prop
note:
      For some special device usage, the prop
      would be used for special setup.

Test: end-to-end validation.
Bug: 349276230
Flag: EXEMPT bugfix

Change-Id: I3a7fb89b44b8df11d5fd71ed8635576f7d74ff87
2024-06-25 09:24:40 +00:00
Poomarin Phloyphisut
fdd036bfa3 sepolicy: add permission for Speaker Version of pixelstats-vend.
Bug: 326342880
Test: Manually test passed
Change-Id: I8732e60ef57a2e9d92c53b901fb1695d10131695
2024-06-11 05:53:07 +00:00
Rios Kao
92a659256f audio: add a restricted property for audio app.
note: For app layer to access specific property,
      define persist.vendor.app.audio. and
      set it as restricted.

Test: build pass
Bug: 333497194

Change-Id: I397a1bcb9bd16c7fa236049eead30b6e17a996b5
2024-05-29 02:48:30 +00:00
David Li
2a7b2bd35b audio: pack AIDL haptic gen effect into the image
Bug: 330686268
Test: mm; haptic playground
Change-Id: I629ebaf0c8aa1c6b92dce781cb9e1416094a8c67
2024-04-24 05:04:24 +08:00
Rios Kao
905441e15c aidl: audio: update external service version
Bug: 332443021
Test: mm
Change-Id: I56f50c5f2ddce80f95af2228e91a1db5757dffbc
2024-04-18 18:38:14 +00:00
samou
0d88550486 sepolicy: allow the communication between audio and battery_mitigation hal
Bug: 330302105
Change-Id: I28a3b67594319d857a8c46bc8c02cddc539caaf8
Signed-off-by: samou <samou@google.com>
2024-03-19 12:01:46 +00:00
Poomarin Phloyphisut
292145d81e [HDMI Audio] Fix SEPolicy issue that prevent HDMI audio functionality.
Error:
avc:  denied  { search } for  comm="binder:845_2" name="hdmi_audio" dev="sysfs" ino=77907 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:sysfs_extcon:s0 tclass=dir permissive=0

Test: Local test.
Bug: 327710671
Change-Id: I413f4edae98cb0b868a4b6b7c62f6d4ae6f17727
2024-03-11 01:51:06 +00:00
Treehugger Robot
5cb8b637f6 Merge "audio: add module for tas25xx" into main 2024-02-23 04:32:23 +00:00
Mikhail Naganov
57cd0318e2 Set ro.audio.ihaladaptervendorextension_enabled property
This property is used by libaudiohal@aidl to detect whether
the system_ext partition provides an instance of
IHalAdapterVendorExtension.

Bug: 323106963
Test: atest audiorouting_test
Change-Id: I88d4f8ad2aff0c52f103d76e8e17e0f3d049d3b5
2024-02-13 00:42:34 +00:00
Robert Lee
64018d650b audio: add module for tas25xx
Bug: 313341617
Test: builds
Change-Id: I53612c1138a042698cf953e4909b25cfcb819d5f
Signed-off-by: Robert Lee <lerobert@google.com>
2024-01-11 08:07:32 +00:00
Bruce Po
45f2bdb98b Merge "selinux: New aocx service" into main 2024-01-10 02:49:52 +00:00
Bruce Po
6b92b30e7b selinux: New aocx service
Add new aocxd server domain
- Allow aocxd to access AOC resources
- Add new aocx binder vendor service

Allow audio hal to find and talk to aocx

avc error tcontext=u:object_r:binder_device:s0 tclass=chr_file or tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file

avc:  denied  { add } for pid=1073 uid=0 name=aocx.IAocx scontext=u:r:aocxd:s0 tcontext=u:object_r:aocx:s0 tclass=service_manager

avc:  denied  { call } for  scontext=u:r:hal_audio_default:s0 tcontext=u:r:aocxd:s0 tclass=binder

BUG: 315853303
Change-Id: Ide16a2be9f032bef60f43d4d3daa6372ae06b057
2024-01-08 17:57:03 +00:00
Jasmine Cha
0bdf2998a8 audio: move USE_AUDIO_HAL_AIDL to device-<project>.mk
Bug: 317745810
Test: manual test b/317745810#comment3

Change-Id: Ie6f1660dcf9d26bd14061ead187e1f3d8848d565
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-01-03 07:06:25 +00:00
Carter Hsu
39b2931bf1 Merge "audio: add hdmi audio sepolicy for AIDL HAL" into main 2024-01-02 01:25:24 +00:00
Carter Hsu
e9c4233f11 audio: add hdmi audio sepolicy for AIDL HAL
Bug: 309696512
Test: Verified by test build
Change-Id: I0e1192f228424b80c776445755a93be56c93d1e7
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-01-02 00:31:06 +00:00
Jasmine Cha
1e19480c70 audio: separate audio hal hidl/aidl by project
Bug: 317444263
Bug: 317733172
Test: boot to home, check basic audio functions

Change-Id: I034b4958b3fc701569988618f5428c07c8d61c15
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-27 11:58:55 +08:00
Jasmine Cha
e5bf86e7cd audio: add soong config for ims media to read
Bug: 291772585
Test: manual test on hidl/aidl

Change-Id: I1bb1bc5963fe28132cb72fe29167b3fa4d384cb7
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-26 05:07:18 +00:00
Carter Hsu
fd652ae423 audio: allow hal_audio_default to allocate graphic buffer
12-04 10:00:07.379   481   481 E SELinux : avc:  denied  { find } for interface=android.hardware.graphics.mapper::IMapper sid=u:r:hal_audio_default:s0 pid=13283 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_mapper_hwservice:s0 tclass=hwservice_manager permissive=0

12-04 10:00:07.409   480   480 E SELinux : avc:  denied  { find } for pid=13283 uid=1041 name=android.hardware.graphics.allocator.IAllocator/default scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_allocator_service:s0 tclass=service_manager permissive=0

Bug: 314850759
Test: verified by test build
Change-Id: Icb2ecd6d3096455244dc58b5aadf8c562cb02470
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-05 01:01:13 +00:00
David Li
2227da2941 Merge "audio: remove unused xml files on AIDL HAL enabled devices." into main 2023-10-30 06:38:18 +00:00
David Li
71e876c0fb audio: remove unused xml files on AIDL HAL enabled devices.
Bug: 303004264
Test: mm
Change-Id: I7e9d0e9a6bed1fc3e057e4503c31771854905b63
2023-10-27 12:58:33 +08:00
Treehugger Robot
59b961ceeb Merge "sepolicy: add permission for AudioBT of pixelstats-vend." into main 2023-10-23 04:39:20 +00:00
Jasmine Cha
b2f8abb2c2 audio: includes speaker compensation module
Bug: 303570161
Test: build pass / manual test

Change-Id: Ia0c2de8bf967304cf33c85cf6cd2a10ce411c54d
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-10-16 15:13:39 +08:00
Poomarin Phloyphisut
d8704e5a3f sepolicy: add permission for AudioBT of pixelstats-vend.
Bug: 280248992
Test: Manually test passed
Change-Id: I431c135c1a1f515ce93251fe9b991e81d5f4fb57
2023-10-06 06:27:22 +00:00
Poomarin Phloyphisut
5b47a8b6a1 sepolicy: add permission for audio offload-effects of pixelstats-vend
Bug: 301046889
Test: Manually test passed
Change-Id: Ia47405d4ac73d1e09fdea6c6a4422955b77e2552
2023-10-04 06:26:15 +00:00
Poomarin Phloyphisut
5384214b16 [SE Policy] Update CCA path and fix wrong directory in call_count
Test: local test
Bug: 289857250
Change-Id: Ice8b4554b09d417471abd23f85c946a39416f3ef
2023-09-09 06:43:22 +00:00
Treehugger Robot
66592f6157 Merge "audio: add radio sepolicy for hidl/aidl" into udc-qpr-dev 2023-08-30 16:29:24 +00:00
Jasmine Cha
2fe60dc4fc audio: add radio sepolicy for hidl/aidl
Bug: 297482504
Test: build pass

Change-Id: I012639ed59d25709d15d7046a92e8ceab7ac96f8
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-08-29 16:44:31 +08:00
Poomarin Phloyphisut
5737a14c89 sepolicy: add permission for call count of pixelstats-vend.
Bug: 289857250
Test: Manually test passed
Change-Id: I7e8236578553e5ea53470a597a93a083cc47bd1a
2023-08-22 15:12:37 +00:00
Jasmine Cha
131d27730d audio: add SEPolicy for stable audio extension
Bug: 290856561
Test: build pass

Change-Id: I4ebcdcf6f5da34d73284d21773d47aa7e7d3c872
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-07-20 03:25:22 +00:00
Robert Lee
01beccc9bf Merge "audio: add audio_hdmi" into udc-qpr-dev 2023-07-13 03:30:43 +00:00
David Li
05940bb8ef Merge "audio: add audio HAL parameter parser and its sepolicy" into udc-qpr-dev 2023-07-13 01:54:33 +00:00
David Li
4cc0efc9a1 audio: add audio HAL parameter parser and its sepolicy
- pack the parameter parser service into the image
 - add sepolicy for the service audio-hal-parserservice

Bug: 274433842
Test: manual test; make -j128
Change-Id: Ia47da38060a99cf32da5db60cef7e4a067dd0f24
2023-07-12 11:08:14 +08:00
Poomarin Phloyphisut
a26c57eff5 sepolicy: add permission for PCM of pixelstats-vend.
Bug: 280248990
Test: Manually test passed
Change-Id: I6739ea5a7f5feaf176126bffc0067cbdb980f479
2023-06-28 10:33:57 +00:00
Poomarin Phloyphisut
3dc0702c35 sepolicy: add permission for Adapted Information of pixelstats-vend. am: 9f637d71bb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/23472604

Change-Id: I6b0f1b358359bb6fa040687b7369a42ba5ec8531
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 15:30:03 +00:00
Rios Kao
8e1f9844ba Merge "audio: query aoc boot time information" into udc-qpr-dev 2023-06-09 02:40:39 +00:00
Robert Lee
b8450bd3b7 audio: add audio_hdmi
Bug: 264508873
Test: builds
Change-Id: Id3c731a43cdb92b44aa5892a96920d0d76de62c4
Signed-off-by: Robert Lee <lerobert@google.com>
2023-06-08 06:25:54 +00:00
Poomarin Phloyphisut
9f637d71bb sepolicy: add permission for Adapted Information of pixelstats-vend.
Bug: 280248702
Test: Manually test passed
Change-Id: Ia1c274845ce47b05342cc8a8c7cfe0ddd7dc4783
2023-06-08 05:49:42 +00:00
Joey Poomarin Phloyphisut
944bfb0cf1 Merge "sepolicy: add permission for Waves of pixelstats-vend." into udc-d1-dev am: 3345761c30
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/23440955

Change-Id: I57fc829dbd1a85f6129a9c6ea8723172eb71cee1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-08 04:30:14 +00:00