2305 Commits

Author SHA1 Message Date
samou
d7c33cef92 sepolicy: allow dumpstate to call battery_mitigation
Bug: 322141931
Change-Id: I5a6d013df754d3f6d6e9d1ee3ea335176450069b
Signed-off-by: samou <samou@google.com>
2024-04-16 03:54:45 +00:00
Ravi Jain
42f418b147 touch: moving ical related sepolicies to independent folder am: ea5ec69b79
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26957229

Change-Id: Ic92ed487646286266f021eedc4abf125e0d62549
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-16 02:53:34 +00:00
Chienyuan Huang
1a2d7ae821 Add Bluetooth Ranging HAL
Bug: 333984281
Test: Manual
Change-Id: Id4877463d5e465e91a8e321ffc6fe0cb07390ebd
2024-04-15 06:26:08 +00:00
Woody Lin
de061720c3 gs_watchdogd: Support multiple watchdog char devices
Handles systems with multiple watchdog hardware blocks. Identifies
each watchdog via the glob pattern
`/sys/devices/platform/*.watchdog_cl*/watchdog/watchdog*` to sysfs
path, and initializes and services each of them.

Bug: 295364297
Change-Id: I785c84e492a2286a5155a5b4692dae2a95df0cc4
2024-04-15 05:17:06 +00:00
Ravi Jain
ea5ec69b79 touch: moving ical related sepolicies to independent folder
Bug: 331139251
Test: Manually verify the result.
Change-Id: I53b5c8eb73f1ce775ec83a06b43c0b4993f31e69
2024-04-15 03:49:41 +00:00
Android Build Coastguard Worker
c21db60802 Snap for 11710546 from c7955c7eea7681e93e20f49eb38f7ff67dc4787a to 24Q3-release
Change-Id: I613480bf140175d7c30390761bf7c59658f953cb
2024-04-13 01:02:30 +00:00
Android Build Coastguard Worker
ddbc3a43bc Merge cherrypicks of ['googleplex-android-review.googlesource.com/26700171'] into 24Q2-release.
Change-Id: Ib4d499d8ed42c5b5abb59d450aa82e6bdde54f91
2024-04-12 21:39:37 +00:00
Klines Jiang
0e3f3c1d88 [Gyotaku] Update the build rule to exclude build Gyotaku dump for barbet
Pixel 5a (barbet) does not support Pixel dump, we need to exclude build
Pixel dump for Pixel 5a (barbet). The git_24Q2-beta-release TARGET_PRODUCT is barbet_beta, updated to barbet% for all barbet target products.

Bug: 330819191

Test: Local build and trigger a new build the result passed
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d4de4ddf902f75ebcb6b0e1079e78b8a96410ed5)
Merged-In: I2c1785105bab74a483bc68893d96a8a88eabfd90
Change-Id: I2c1785105bab74a483bc68893d96a8a88eabfd90
2024-04-12 21:14:12 +00:00
Android Build Coastguard Worker
fbbb4085b8 Snap for 11704135 from 725b775c76513d75856a0c4ddb3159b8046d0e34 to 24Q3-release
Change-Id: I15e704396442dcaa3e6c95104e5f791c63671953
2024-04-11 23:02:17 +00:00
Eliot Wong
c7955c7eea Merge "Add SEPolicy for vendor_camera_image_processing_hal_service" into 24D1-dev am: 46f7fe3e61
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26604585

Change-Id: I5afe3ce331f9182b4202be2510c0708c3053a63d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-11 20:30:29 +00:00
Eliot Wong
46f7fe3e61 Merge "Add SEPolicy for vendor_camera_image_processing_hal_service" into 24D1-dev 2024-04-11 20:15:58 +00:00
Enzo Liao
725b775c76 Merge "Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag." into main 2024-04-11 02:03:26 +00:00
Android Build Coastguard Worker
076b43d60e Snap for 11697857 from 80f77723269cf3a41ef3285677403c96094b06b2 to 24Q3-release
Change-Id: I24bafef978b855c0e3a3325c98c36c190518814f
2024-04-10 23:02:14 +00:00
Minche Li
68ef072a54 Updates TTS voice packs in gs-common
TTS voice packs are better to be common for all devices
So the other device configs can have the common TTS voice packs
  for the device build  by "gs-common/device.mk"

And see doc, Preload Google Text-to-Speech (TTS) Voice Packs:
The voice packs are dowloanded follow the steps.

Bug: 333626474
Test: build passed and manual test
Change-Id: Idebba7ef2e69d0e9d2f30a94cbbcf70d2e3568d5
2024-04-10 07:07:03 +00:00
Tommy Chiu
80f7772326 mDL: Remove mDL HAL am: aab9ec8424
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26784702

Change-Id: Idbb0ccfc601753b12ed71f265f4a143e862df701
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-10 03:48:03 +00:00
Enzo Liao
7d7c8ebaeb Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag.
They include the domains:
1. dump_ramdump
2. ramdump
3. ramdump_app
4. sscoredump
5. ssr_detector_app

We copy policies of domains of ramdump and sscoredump from hardware/google/pixel-sepolicy to gs-common but don't remove them there to keep compatibility for other projects.

New SELinux policies:
1. Create a new file context of /data/vendor/ssrdump/logcat for SSRestartDetector to write device logs when it detects new coredumps.
2. RamdumpService will also access the path to compress device logs to zip files of coredumps.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Change-Id: I02c2e1569a95ea90901d9476ef75bca74a4f43e1
2024-04-08 14:10:15 +00:00
Daniel Chapin
a0708c2723 Revert "Add betterbug folder to gs-common"
Revert submission 26348985-bb-sepolicy-poc

Reason for revert: Droidfood blocking bug: b/327991669

Bug: 327991669

Reverted changes: /q/submissionid:26348985-bb-sepolicy-poc
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:aca06d61c64f947252808f73fbe01fdda5109c0e)
Merged-In: I0fe0bb22e293093d941b4d8ba826c8c8689a370d
Change-Id: I0fe0bb22e293093d941b4d8ba826c8c8689a370d
24D1-dev is based on 24Q2-release. Therefore, we merged this CL to 24D1-dev.
2024-04-08 06:19:44 +00:00
Android Build Coastguard Worker
4408c87187 Snap for 11666018 from da16cb987c1d29438eaa62c589407b760de72e09 to 24Q3-release
Change-Id: I168c0c9dc0ecfa6b70b90c6b92f477a70d3ac049
2024-04-03 23:02:10 +00:00
Android Build Coastguard Worker
c2491e5a64 Snap for 11661060 from 819230aee39dcae9ecf7ec0fbb996da6ac47b83b to 24Q3-release
Change-Id: I5dcd10efa2def528cc9d7c952f35b9345e68bc65
2024-04-02 23:02:24 +00:00
Treehugger Robot
da16cb987c Merge "shamp: Add SEPolicy and compat matrix for shamp" into main 2024-04-02 20:42:01 +00:00
Tommy Chiu
aab9ec8424 mDL: Remove mDL HAL
Since the gsc firmware doens't support mDL since MAIN-00009, we'll need
to remove HAL accordingly to avoid inteface confusion.

Bug: 330415816
Test: PTE release test
Change-Id: Ie91817c926d77209c8ac1119dc74053cb0f6215a
2024-04-02 06:46:01 +00:00
Treehugger Robot
819230aee3 Merge "shamp: Create soong config variable for vendors" into main 2024-04-02 05:16:53 +00:00
Android Build Coastguard Worker
80b5e64aa5 Snap for 11654651 from 8c3d9d51c41865d2f83460e68f13cc86ae291e41 to 24Q3-release
Change-Id: Ie6eda38e30831993d02bbeb70280f64eb6a7db7f
2024-04-01 23:02:01 +00:00
Ted Wang
8c3d9d51c4 Merge "Switch to new Bluetooth Finder HAL" into main 2024-04-01 06:21:34 +00:00
Android Build Coastguard Worker
8cebcfd988 Snap for 11648291 from cd05e58009619d87e145afe6602f962afe060145 to 24Q3-release
Change-Id: Ia5c5f5f58531c9b2fa3ab5565c5977e6091b0589
2024-03-30 01:02:18 +00:00
Mike Wang
cd05e58009 Merge "Move the sysfs_modem_state from a product folder to gs-common" into main 2024-03-29 15:16:19 +00:00
Android Build Coastguard Worker
3c5df18d11 Snap for 11641371 from a6cd2c4a8dc1d826ce4f8234abbea31754bc9c53 to 24Q3-release
Change-Id: I6701e54ee0d48b34322a5f3d8dd2feeb00e7bc06
2024-03-28 23:02:07 +00:00
mikeyuewang
29035f24bc Move the sysfs_modem_state from a product folder to gs-common
Bug: 331202327

Change-Id: Id9176ef2b8aa50b178e0cadf60d8a34876433377
2024-03-28 21:10:23 +00:00
Priyanka Advani
5f3cd46270 Merge "Revert "sepolicy: Allow PixelGnss to connect to Chre HAL"" into 24D1-dev am: ce1c82e3b1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26750103

Change-Id: Id97441ee75a43f418e589a15d8335ba14bd281d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-28 20:20:53 +00:00
Priyanka Advani
ce1c82e3b1 Merge "Revert "sepolicy: Allow PixelGnss to connect to Chre HAL"" into 24D1-dev 2024-03-28 20:01:53 +00:00
Priyanka Advani
406eea24ba Revert "sepolicy: Allow PixelGnss to connect to Chre HAL"
Revert submission 26593083-lassen_pps

Reason for revert: Culprit for test breakages in b/331680556. Will be verifying through ABTD for confirmation and before submitting the revert.

Bug: b/331680556

Reverted changes: /q/submissionid:26593083-lassen_pps

Change-Id: I97e29eaf09238d708fb9d941a5988ad42d583655
2024-03-28 19:53:52 +00:00
Samridhi
a6cd2c4a8d Add SEPolicy domain for cavalry app am: 6561e3b343
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26554888

Change-Id: I8af4282ac6904d01d7acd5647e97070445c0bff0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-28 13:53:22 +00:00
Samridhi
6561e3b343 Add SEPolicy domain for cavalry app
AVC error logs: https://paste.googleplex.com/4870439005847552
Test: make selinux_policy, flash build and test
Bug: 329276535
Change-Id: I2ccb4d9205125f02f12cc26ea9e6e6e40b8d6ba2
2024-03-28 09:43:36 +00:00
Super Liu
8b74330011 [automerger skipped] touch: init service to access gti interactive_calibrate sysfs am: 58b64ca3fb -s ours
am skip reason: Merged-In I6296b9533dd0209e66832bfbbed6030a30077b96 with SHA-1 28754e355a is already in history

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

Change-Id: Ice0917bc4bc31793e0ec835b95eab217f6600a69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-28 08:40:48 +00:00
Super Liu
58b64ca3fb touch: init service to access gti interactive_calibrate sysfs
Write usage: setprop vendor.touch.gti0.ical VALUE

Any VALUE(e.g. 20X or 30X) set through this property will write
into gti interactive_calibrate sysfs except for the VALUE `read`.

Read usage: setprop vendor.touch.gti0.ical read
            getprop vendor.touch.gti0.ical.result
setprop with VALUE `read` will read the gti
interactive_calibrate sysfs and save the result to
vendor.touch.gti0.ical.result.

Besides, please add your DOMAIN to access vendor_gti_prop.
set_prop(DOMAIN, vendor_gti_prop)

Bug: 331139251
Test: Manually verify the result.
Change-Id: I6296b9533dd0209e66832bfbbed6030a30077b96
Merged-In: I6296b9533dd0209e66832bfbbed6030a30077b96
Signed-off-by: Super Liu <supercjliu@google.com>
(cherry picked from commit 28754e355a847ce62b4e465c7afaa0f61e90b865)
2024-03-28 07:27:32 +00:00
Treehugger Robot
83f398f4e8 Merge "touch: init service to access gti interactive_calibrate sysfs" into main 2024-03-28 07:26:12 +00:00
Eliot Wong
c387a9b7ac Add SEPolicy for vendor_camera_image_processing_hal_service
avc message:
03-15 17:48:21.744   440   440 E SELinux : avc:  denied  { add } for pid=863 uid=1000 name=com.google.android.imageprocessing.IImageProcessingHal scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vendor_image_processing_hal_service:s0 tclass=service_manager permissive=1

Bug: 323402267
Test: atest liblyric.services_image_processing_hal_test
Test: demo app
Change-Id: Idc9752a1a3f4b18de5f720a384fae97f0f160e98
2024-03-28 01:50:02 +00:00
Android Build Coastguard Worker
581273075f Snap for 11635697 from 709c2f596d654b9cd967edfb799852cbe665dc9a to 24Q3-release
Change-Id: I2ec8a5a9045f357e3a4557e58cb2cc4876bfab08
2024-03-27 23:02:31 +00:00
Charles Yeh
709c2f596d Merge "Add a factoryota-watch.mk file to include the OtaClient for wearable device." into main 2024-03-27 06:03:33 +00:00
Charles Yeh
c979d12d72 Add a factoryota-watch.mk file to include the OtaClient for wearable
device.

Bug: 303001898
Test: build rom and check it works
Change-Id: Ifcd7da3eabbddfa903662d26609a2e6a5248ece9
2024-03-27 03:11:31 +00:00
Super Liu
28754e355a touch: init service to access gti interactive_calibrate sysfs
Write usage: setprop vendor.touch.gti0.ical VALUE

Any VALUE(e.g. 20X or 30X) set through this property will write
into gti interactive_calibrate sysfs except for the VALUE `read`.

Read usage: setprop vendor.touch.gti0.ical read
            getprop vendor.touch.gti0.ical.result
setprop with VALUE `read` will read the gti
interactive_calibrate sysfs and save the result to
vendor.touch.gti0.ical.result.

Besides, please add your DOMAIN to access vendor_gti_prop.
set_prop(DOMAIN, vendor_gti_prop)

Bug: 331139251
Test: Manually verify the result.
Change-Id: I6296b9533dd0209e66832bfbbed6030a30077b96
Signed-off-by: Super Liu <supercjliu@google.com>
2024-03-27 01:01:40 +00:00
Android Build Coastguard Worker
ef4291032a Snap for 11623990 from d4de4ddf902f75ebcb6b0e1079e78b8a96410ed5 to 24Q3-release
Change-Id: I5e186a8cecff5af268b00d81f60f58d718c5eaac
2024-03-25 23:02:22 +00:00
Klines Jiang
d4de4ddf90 [Gyotaku] Update the build rule to exclude build Gyotaku dump for barbet
Pixel 5a (barbet) does not support Pixel dump, we need to exclude build
Pixel dump for Pixel 5a (barbet). The git_24Q2-beta-release TARGET_PRODUCT is barbet_beta, updated to barbet% for all barbet target products.

Bug: 330819191

Test: Local build and trigger a new build the result passed

Change-Id: I2c1785105bab74a483bc68893d96a8a88eabfd90
2024-03-25 14:41:13 +00:00
Chia-Chi Teng
7429882fba sepolicy: Allow PixelGnss to connect to Chre HAL am: 9a7af460a5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26617900

Change-Id: If756d3473fa9b6ac556a16766220033c2fd53e63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 13:09:33 +00:00
Android Build Coastguard Worker
7477e940f9 Snap for 11617975 from ec93f458c61b5daa3be4eac077379ba8c61244af to 24Q3-release
Change-Id: I42223feb5bc464b198ea391e2a967f8d7ff26073
2024-03-23 01:01:54 +00:00
Chia-Chi Teng
9a7af460a5 sepolicy: Allow PixelGnss to connect to Chre HAL
avc:  denied  { read } for  name="u:object_r:vendor_chre_hal_prop:s0" dev="tmpfs" ino=401 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:vendor_chre_hal_prop:s0 tclass=file permissive=0
avc:  denied  { find } for pid=900 uid=1021 name=android.hardware.contexthub.IContextHub/default scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:hal_contexthub_service:s0 tclass=service_manager permissive=0
avc:  denied  { call } for  scontext=u:r:hal_gnss_pixel:s0 tcontext=u:r:hal_contexthub_default:s0 tclass=binder permissive=0
avc:  denied  { call } for  scontext=u:r:hal_contexthub_default:s0 tcontext=u:r:hal_gnss_pixel:s0 tclass=binder permissive=0

Bug: 316227249
Test: Verify PixelGnss HAL can connect to Chre HAL.
Test: Function test verification b/330120749 without disable selinux.
Test: No avc error log in logcat.
Change-Id: Ia1052dbc14fdbb6287cd0958b30e1a1a116b7a80
2024-03-22 03:04:04 +00:00
Treehugger Robot
ec93f458c6 Merge "dumpstate: thermal: Add tmu intpend dumps" into 24D1-dev am: 4055216656
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26593649

Change-Id: Icc99ec08cc2e8da6de4e99c9d8d02bd92268c4af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-22 01:31:09 +00:00
Treehugger Robot
4055216656 Merge "dumpstate: thermal: Add tmu intpend dumps" into 24D1-dev 2024-03-22 01:12:45 +00:00
Android Build Coastguard Worker
43224e0300 Snap for 11610847 from 7a5eea3546531472814b02fd4ecd707504c98361 to 24Q3-release
Change-Id: I293b1b8667efdb179fc3b5b4265d381d54f52735
2024-03-21 23:02:01 +00:00
Sam Ou
7a5eea3546 Merge "sepolicy: allow the communication between audio and battery_mitigation hal" into 24D1-dev am: 5a78c395eb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26543992

Change-Id: I4aa587059c650eae8afc774380efd60a9dd3cc3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 11:57:33 +00:00