Support register AntennaTuningService.

The devices uses RadioExt 1.7 should have grilservice_app register antennaTuningCallbacks.

The avc error log:

avc:  denied  { find } for pid=3441 uid=10273 name=com.google.input.algos.gril.IGrilAntennaTuningService/default scontext=u:r:grilservice_app:s0:c17,c257,c512,c768 tcontext=u:object_r:gril_antenna_tuning_service:s0 tclass=service_manager permissive=0

[   22.019071] type=1400 audit(1714448048.956:7): avc:  denied  { call } for  comm="pool-2-thread-1" scontext=u:r:grilservice_app:s0:c254,c256,c512,c768 tcontext=u:r:twoshay:s0 tclass=binder permissive=0 app=com.google.android.grilservice

Test: Manual. Without sepolicy error.
Bug: 321790599
Change-Id: Ie2cecaea493d37cd3009bcf9bab942a62212641f
This commit is contained in:
Frank Yu 2024-04-24 12:22:50 +00:00
parent 229a44dbf9
commit 9667a21442

2
vendor/grilservice_app.te vendored Normal file
View file

@ -0,0 +1,2 @@
allow grilservice_app gril_antenna_tuning_service:service_manager find;
binder_call(grilservice_app, twoshay)