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
Rios Kao
7c8a45ac69
audio: query aoc boot time information
...
Bug: 286196063
Test: Hal service can query the information on real device.
Change-Id: Ica6dcd8a16981a0471893e40827d48e4974f35bb
2023-06-08 02:40:23 +00:00
Joey Poomarin Phloyphisut
2d1677e219
Merge "sepolicy: add permission for PDM State of pixelstats-vend" into udc-d1-dev am: eb03e86202
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/22122397
Change-Id: Ib78ea5b274cbd3708bc5eb6793dc4a64f7a14ea0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-02 08:05:23 +00:00
Poomarin Phloyphisut
500ba56168
sepolicy: add permission for Waves of pixelstats-vend.
...
Bug: 280248116
Test: Manually test passed
Change-Id: I6cb82d5d41ed6b1778f6e859fe0e6282e527c838
2023-06-02 08:01:42 +00:00
Joey Poomarin Phloyphisut
eb03e86202
Merge "sepolicy: add permission for PDM State of pixelstats-vend" into udc-d1-dev
2023-06-02 07:23:19 +00:00
Rios Kao
d5a59d93ea
audio: aidl: change target to support all projects
...
Test: build pass
Bug: 284809600
Change-Id: I8d37fc94599af5e12033ec6bc7dfc4cd50ac9b5e
2023-05-31 04:07:29 +00:00
Cyan_Hsieh
9167dbdf46
audio: make VINTF target level specify by device
...
Bug: 277188108
Change-Id: Ia7f787e68a9a34529d858c78189b5f2bd245377c
2023-05-10 18:41:07 +08:00
David Li
4fd1826323
Merge "audio: pack AIDL s/w effects" into udc-dev am: 9dfd56b23b
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/22873645
Change-Id: I10c41501b6c3da1bd1b2c8a1e33d080e00866e5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 03:21:49 +00:00
David Li
827c84ee7d
audio: pack AIDL s/w effects
...
Pack the common s/w effects into the AIDL effect HAL enabled image.
Includes the following effects,
1. libbundleaidl
2. libreverbaidl
3. libvisualizeraidl
4. libdynamicsprocessingaidl
5. libdownmixaidl
6. libloudnessenhanceraidl
The project-specific effects should be add into the makefile in the
project folder.
Test: mm
Bug: 271500140
Change-Id: I4d89440791d43eaf03288d5f7bf6d61cbd21659f
2023-04-26 14:57:31 +08:00
Carter Hsu
e6ecde150e
audio: add CCA HAL module
...
Bug: 267827552
Test: verified on the test build
Change-Id: Ic479ed850c675ff7fca2e18817b74ee653ecaf61
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-04-07 00:31:28 +00:00
Poomarin Phloyphisut
edeac80b32
sepolicy: add permission for PDM State of pixelstats-vend
...
Bug: 201737886
Test: Manually test passed
Change-Id: Ib764b97ed644232f1bab66b19077e0450598371c
2023-03-20 06:07:13 +00:00
Jasmine Cha
30667d0904
Merge "audio: add policy for rild to get vendor audio propery" into udc-dev
2023-03-13 06:26:12 +00:00
Jasmine Cha
502c8ad720
audio: move audio vendor set_prop to gs-common
...
Bug: 259161622
Test: build pass
Change-Id: Ic76c867e8478e2f736da78232a444cf135cddc6d
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-13 04:10:54 +00:00
Jasmine Cha
6cd390e2cf
audio: add policy for rild to get vendor audio propery
...
- rild has different sepolicy for audio hal by type of service, which is
hidl or aidl. Read property before querying service in rild can avoid
avc denied presubmit test.
Bug: 206738075
Test: build pass with hidl/aidl audio service
Change-Id: I2616028fb3a6029646340fc3282e51a5f02b3f7f
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-13 10:59:44 +08:00
Jasmine Cha
8e0e106363
audio: add audio hal aidl service
...
- separate audio hal HIDL and AIDL services.
- separate sepolicy of aoc and audio
Bug: 259161622
Test: build pass and check hidl/aidl on gs201
build pass for other chipset
Change-Id: Id3c0446be6cdcd5a6e75c832e7d7f4a64716f79c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-09 13:47:57 +08:00