672 Commits

Author SHA1 Message Date
Alan Chen
79e230a05b Create radio_ext aidl service declaration
Note: This is copy of the reverted commit
cbc4b64bd1bff8211ef43f8d32856bb342dafa52 (ag/24799507) plus the fix to
the problem that caused the revert which is to mark the radio_ext
service as optional in the compatibility matrix.

Bug: 285459428
Test: manually verified dumpsys and logs that service starts without
errors
Change-Id: Ibcd427c501633a95e74e392837b41b0ef513a4a8
Merged-In: Ibcd427c501633a95e74e392837b41b0ef513a4a8
2023-10-19 07:39:05 +00:00
Sam Dubey
e5988c99b7 Revert "Add radio_ext aidl to compatibility matrix"
Reason for revert: Broke next target, b/303392497

Reverted changes: /q/submissionid:24799507-ak3_ssc_aidl

Change-Id: I20c5834b71d0695f2fd4e7bc55785895410951d1
2023-10-04 13:14:08 +00:00
Alan Chen
cbc4b64bd1 Add radio_ext aidl to compatibility matrix
Test: manual
Bug: 285459428
Change-Id: Ic07926b2af7ea980575f4909ebe742efeb39ef82
2023-10-03 03:57:42 +00:00
Steve Pfetsch
7b9d0c41c3 Merge "touch: Set permissions for interactive_calibration" into udc-qpr-dev 2023-09-21 20:14:24 +00:00
Klines Jiang
678fb46c3c [SELinux] Add gyotaku_app doamin to gs-common.
Bug: 296836878

Test: Local build and tested pass.
Change-Id: Ie76c7017098b7f5d4a8703c40e3c9e87e80f2801
Merged-In: Ie76c7017098b7f5d4a8703c40e3c9e87e80f2801
2023-09-20 07:26:14 +00:00
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
Steve Pfetsch
d2e98ea1ea touch: Set permissions for interactive_calibration
Enable the interactive_calibration node to be accessed by non-owners,
with SEPolicy restricting access to the diagnosticstool priv-app.

Bug: 230050981
Change-Id: I7d2ec8e7aba2aa744a1198ba504db536f872e491
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
2023-09-18 16:47:04 -07:00
Aaron Ramirez
f74211330b Merge "Configure SEPolicy to allow PCS to open and use socket connections." into udc-qpr-dev 2023-09-13 00:17:27 +00: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
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
Joey Poomarin Phloyphisut
dcde0864df Merge "sepolicy: add permission for call count of pixelstats-vend." into udc-qpr-dev 2023-08-25 02:26:01 +00:00
Cheng Chang
38cae944c0 [automerger skipped] update gps sdk 147.20.23.576859 am: 88d1510430 am: 425b860d07 -s ours
am skip reason: skipped by user chengcha

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24461948

Change-Id: Id310713b91ea06d02d8b73086a16e33bfca78755
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 06:14:23 +00:00
Cheng Chang
425b860d07 update gps sdk 147.20.23.576859 am: 88d1510430
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24461948

Change-Id: I8c9e91edd7476ca9da9cca076705610e9a1d5e1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 01:42:12 +00:00
Cheng Chang
327749d8d0 Merge "refactor and merge gps build system" into udc-qpr-dev 2023-08-23 07:57:31 +00: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
Yen-Chao Chen
95c6e18b0c sepolicy: fix avc denied for sysfs_wakeup
avc:  denied  { open } for  path="/sys/devices/platform/
111d0000.spi/spi_master/spi20/spi20.0/synaptics_tcm.0/wakeup/
wakeup94" dev="sysfs" ino=94635 scontext=u:r:system_suspend:s0
tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1

Bug: 285245943
Bug: 285289426
Bug: 285328094
Test: trigger bugreport and check logs.

Change-Id: I0baaeb3b8f3f29e9659fd6d3e18a26051dab0535
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-08-22 15:37:57 +08:00
Cheng Chang
88d1510430 update gps sdk 147.20.23.576859
- eliminate seconds delay before sending ProvideCapabilities

Bug: 295291089
Test: verification at b/295291089
Test: function verification at b/296352776
Change-Id: I4dbb4f1a44fdfdaa1b5e8bf6d130c9e0369bb50d
2023-08-18 05:51:40 +00: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
Cheng Chang
69b030b7c4 refactor and merge gps build system
Bug: 290725902
Test: verification test at b/290725902
Change-Id: I3206e8e1137f4d436aa10c976215dbc6eb7171da
2023-08-14 09:15:55 +00:00
Akash Malik
8be8295748 Merge "Add SePolicy allowances for ICameraIdRemapper" into udc-qpr-dev 2023-08-11 05:43:04 +00:00
Akash Malik
06f3b1500c Merge "Associate vendor_pcs_app with PCS services" into udc-qpr-dev 2023-08-10 23:04:32 +00:00
Randall Huang
103ffb749e Merge "storage: turn off pixel storage debugging code on user builds" into udc-qpr-dev 2023-08-10 03:43:29 +00:00
Randall Huang
4bc0db5369 storage: turn off pixel storage debugging code on user builds
The debugging code introduces too much performance overhead for random I/O operations.
Only enable the debugging feature on non-user builds.

Bug: 284231590
Test: boot device
Change-Id: Idf6852060dfd3a250d92147a3ee0f1fe9e6140d4
Merged-In: Idf6852060dfd3a250d92147a3ee0f1fe9e6140d4
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-08-10 02:23:46 +00:00
Ziyi Cui
a8f64567b2 Merge "Add new label for stats_reset" into udc-qpr-dev 2023-08-09 17:26:53 +00:00
Jooyung Han
e88a71e77f Add new label for stats_reset
Bug: 295102642
Change-Id: I2e16f7a83727f76dd1837e5fd27e12b13a5ca7b4
Test: TH
2023-08-09 15:56:47 +00:00
Renato Grottesi
811c9a9f69 Disable armnn nnapi backend am: 1f2c46c7e7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24321293

Change-Id: I30cf784b93cc19358603318ef0b16cd81e729321
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 14:56:14 +00:00
Renato Grottesi
1f2c46c7e7 Disable armnn nnapi backend
Discontinue maintenance and active support of ArmNN on Pixel phones.

Bug: 294459623
Test: Local nnapi_info
Merged-In: I9d055373d6ee671ca2676e9ba6fa1663823e00e1
Change-Id: Iae12485988d38310459d1a58569fedf871df476c
2023-08-08 06:28:09 +00: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
236507606d Associate vendor_pcs_app with PCS services
- :* will associate the context with the individual
  services, which might start in their own processes.

Bug: 280340307
Test: m
Change-Id: I0cc183ae07f18a2fc8e3c2caf960654296eeab53
2023-08-07 20:19:12 +00:00
Eliot Wong
06c6ca63b5 Merge "Add SEPolicy for vendor_camera_isp_service" into udc-qpr-dev 2023-08-07 16:57:50 +00:00
Cheng Chang
2850ae9e7f update gps sdk 147.20.23.576052 am: 3c7f71fe7c am: 4042ffe4a3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24270486

Change-Id: I6f8f84f3962c73d62e6ff7959fa516e5e49f7672
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-04 01:44:36 +00:00
Cheng Chang
4042ffe4a3 update gps sdk 147.20.23.576052 am: 3c7f71fe7c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24270486

Change-Id: I974e1e2bb53484e449a0e6e6ec3de1d5404a7f3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-04 00:55:28 +00:00
Cheng Chang
3c7f71fe7c update gps sdk 147.20.23.576052
- fallback to LTE ECID when unknown network type

Bug: 294294528
Bug: 294102841
Test: verification test at b/294006413
Test: carrier no SIM test plan verification at b/294102841
Test: carrier dual SIM test plan verification at b/294294528
Change-Id: Ib5c0ccebb505c753f661e84f1ee8f10a774057b3
2023-08-03 03:21:31 +00:00
Eliot Wong
2daad9a814 Add SEPolicy for vendor_camera_isp_service
Allows the Camera HAL to start a new ISP Service.

avc message:
07-31 17:08:46.990   536   536 E SELinux : avc:  denied  { add } for
pid=8308 uid=1000 name=com.google.pixel.camera.isp.IIspService/default
scontext=u:r:hal_camera_default:s0
tcontext=u:object_r:default_android_service:s0 tclass=service_manager
permissive=0

Bug: 293447476
Test: verify no avc errors and ISP Service starts
Test: atest liblyric.services_isp_service_test
Change-Id: Icbd07820d3323c09868d0249c1ef9d7f2952751e
2023-08-02 15:23:27 +00:00
Yen-Chao Chen
8a384c8371 Merge "Create syna touch dump for spi20" into udc-qpr-dev 2023-07-31 05:28:11 +00:00
Yen-Chao Chen
13fee29a40 Create syna touch dump for spi20
Bug: 285327052
Bug: 285247095
Bug: 285323846
Test: trigger dump

Change-Id: Ide1ea7597f829494a1b2401ca35525f7bc92058a
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-07-31 01:57:20 +00:00
Jasmine Cha
76907f724f Merge "audio: add SEPolicy for stable audio extension" into udc-qpr-dev 2023-07-31 01:47:27 +00:00
Mitch Phillips
1d9d8f4c49 Merge "Add google-silicon common MTE configuration." into udc-qpr-dev 2023-07-28 08:26:54 +00:00
Treehugger Robot
b447f04489 Merge "dumpstate:thermal: refactor dump_thermal.sh" into udc-d1-dev am: a4e20ba687
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24145345

Change-Id: I8d7eb52cac180402bc2a6702e354ebb38e49a6a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-27 09:34:47 +00:00
Treehugger Robot
a4e20ba687 Merge "dumpstate:thermal: refactor dump_thermal.sh" into udc-d1-dev 2023-07-27 08:52:48 +00:00
Mitch Phillips
0441b73e8b Add google-silicon common MTE configuration.
Moves it from a device-specific folder here, so we can avoid duplication
now that we're bringing up newer devices.

Bug: 288843255
Test: Build and flash some of the affected devices.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:202d437ccc64917c7b327dbcbdff099629b00942)
Merged-In: I23ba30b5f5bb51dbf1125cff4b36cf2c003057bc
Change-Id: I23ba30b5f5bb51dbf1125cff4b36cf2c003057bc
cherry-pick to udc-qpr-dev
2023-07-26 15:32:40 +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
kierancyphus
53da5c420d dump_modemlog: include log mask history files in dumpstate am: 52d632cbe7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/23850677

Change-Id: I841047f5d9818b8638f65bc5aed388586e03db46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25 07:51:52 +00:00
kierancyphus
52d632cbe7 dump_modemlog: include log mask history files in dumpstate
This was missed in the porting over from gs201/.../dumpstate.cpp.

Test: Manually trigger bugreport and ensure that LoggingHistory.csv and
LoggingMaskHistory.csv are included
Bug:284275049

Change-Id: Ia630f3f1883b338fa879cfd6ea6bdd4c2a00437c
2023-07-24 16:41:53 +08:00
Akash Malik
188cd6c388 Merge "Add Sepolicy for LyricConfigProvider to use CameraService" into udc-qpr-dev 2023-07-21 21:32:10 +00:00
Akash Malik
b6185194d3 Merge "Add sepolicy to allow pbcs to use SysProps" into udc-qpr-dev 2023-07-21 19:14:19 +00:00
YiHo Cheng
99770a6fcd dumpstate:thermal: refactor dump_thermal.sh
- use echo instead of printf to save script execution time
- fix incorrect format in dump_thermal.sh

Bug: 290888701
Test: time ./dump_thermal.sh
Test: adb bugreport
Change-Id: I501775ccceaf9dc423db87913939ea2e361ed8c7
2023-07-21 13:58:39 +08:00