13 Commits

Author SHA1 Message Date
Aaron Ramirez
481c2a0799 Add missing node_bind permission to SEPolicy.
Bug: 299315760
Test: Tested with SEPolicy enforcement on and verified PCS could open
requested video stream.

Merged-In: I41af99531feb968015c46cdf67d8c2d03b243a93
Change-Id: I41af99531feb968015c46cdf67d8c2d03b243a93
2023-09-19 14:19:49 -07:00
Aaron Ramirez
5b472c664c Configure SEPolicy to allow PCS to open and use socket connections.
Bug: 299315760
Test: Tested with SEPolicy enforcement on and verified PCS could perform
socket operations.

Merged-In: Idd9048da4bb3856666698bc0589dbc68aa74fd1a
Change-Id: Idd9048da4bb3856666698bc0589dbc68aa74fd1a
2023-09-12 16:40:39 -07:00
Utku Utkan
46d6a88211 Add SEPolicy config for PCS to act as a media app
These are the minimum set of services that PCS needs to have access for
it to be able act as a media app and use Exoplayer for playing recorded
video files.

However, there'll be a follow up change to broaden the permissions to be
future proof and have greater flexibility as a media app, which will let
PCS to be updated via Play Store without the worry of a missing SEPolicy
config that is common among media apps.

Bug: 287069860
Test: m && flashall
Change-Id: I956219faacbc0c1b649cb638cede964480766718
2023-08-14 09:56:08 -07:00
Utku Utkan
1a4567113d Allow Pixel Camera Services to bind to Lyric for callbacks
Bug: 287069860
Test: m && flashall && end-to-end developer testing
Change-Id: I86173ecaf9900f5c869847106166f07e482e6a74
2023-08-14 09:33:04 -07:00
malikakash
8dc27bcee5 Add SePolicy allowances for ICameraIdRemapper
- This allows us to register the CameraIdRemapper
  service through servicemanager and allows PCS
  to find it.

Bug: 287069860
Test: m
Change-Id: Ic7f778c4f173caa1ce389c9ad39a14433afc3133
2023-08-07 23:07:00 +00:00
malikakash
89b8a6e02f Allow PCS to bind to LyricConfigProvider
- Sepolicy change

Bug: 280340307
Test: Local Testing

Change-Id: Id2dcf659b3c288b5c4c1756e9bd7ae80915b7942
2023-07-25 23:48:51 +00:00
Utku Utkan
88284b922a Add SEPolicy for hal_pixel_remote_camera_service
Bug: 287069860
Test: Manual developer testing with 'setenforce 1'
Change-Id: Iffe22dae7485bd433abdb60249ce8900a1996291
2023-07-18 20:53:59 -07:00
Utku Utkan
ab8b16b905 Revert^2 "Add SEPolicy for Pixel Camera Services Extensions"
Revert submission 24122569-revert-24056607-pixel-camera-services-extensions-sepolicy-OFSULTXSBL

Reason for revert: Relanding the original topic after copying the certificates under `device/google` for `without-vendor` branches

Reverted changes: /q/submissionid:24122569-revert-24056607-pixel-camera-services-extensions-sepolicy-OFSULTXSBL

Bug: 287069860
Test: m && flashall && dev test with Open Camera and Camera2 Ext
Change-Id: I7f9a759ca7b5538441de451eb80f20b3cb1e30a9
2023-07-18 20:37:13 -07:00
Utku Utkan
5896049be5 Revert^2 "Add vendor_pcs_app domain for PixelCameraServices"
Revert submission 24122569-revert-24056607-pixel-camera-services-extensions-sepolicy-OFSULTXSBL

Reason for revert: Relanding the original topic after copying the certificates under `device/google` for `without-vendor` branches

Reverted changes: /q/submissionid:24122569-revert-24056607-pixel-camera-services-extensions-sepolicy-OFSULTXSBL

Bug: 287069860
Test: m && flashall
Change-Id: Ic6ef3d67a518500f0db2cb8c537a3934e64d366b
2023-07-18 20:36:47 -07:00
Inseob Kim
34a6dcecf5 Revert "Add vendor_pcs_app domain for PixelCameraServices"
Revert submission 24056607-pixel-camera-services-extensions-sepolicy

Reason for revert: build breakage on git_main-without-vendor

Reverted changes: /q/submissionid:24056607-pixel-camera-services-extensions-sepolicy

Change-Id: Ia18508a9350c4418795b5c861d29eb461e3b9ee6
2023-07-19 01:15:07 +00:00
Inseob Kim
09e3385652 Revert "Add SEPolicy for Pixel Camera Services Extensions"
Revert submission 24056607-pixel-camera-services-extensions-sepolicy

Reason for revert: build breakage on git_main-without-vendor

Reverted changes: /q/submissionid:24056607-pixel-camera-services-extensions-sepolicy

Change-Id: I9b4a52ec3edaa1a19aa4ec938191a26acc475a8a
2023-07-19 01:15:07 +00:00
Utku Utkan
d77ddb4c15 Add SEPolicy for Pixel Camera Services Extensions
Bug: 287069860
Test: m && flashall && dev test with Open Camera and Camera2 Ext
Change-Id: I4eac5697a122b56939bb3c3946b28a17dfdf4c0c
2023-07-18 12:18:34 -07:00
Utku Utkan
6c397defc4 Add vendor_pcs_app domain for PixelCameraServices
Bug: 287069860
Test: lunch <device-type>-userdebug && m
Change-Id: Ib5ee8dd71193b41190e7092e393ab912a4a7676a
2023-07-18 12:18:34 -07:00