Will McVicker
9be1081f00
Update tcpm i2c sepolicy with new device name
...
The new name fixes uninformative kernel wakelock names.
Bug: 315190967
Bug: 323447554
Change-Id: I88ecec344fd1eb84c5ca12a6bd3fad38cc40295b
2024-02-22 17:54:36 +00:00
Jacky Liu
28c042f51a
Update i2c device paths
...
Update i2c device paths with static bus numbers.
Bug: 323447554
Test: Boot to home
Change-Id: I3d41e1819aa7df896322a0dca44449c1e871dff8
2024-02-06 16:16:53 +00:00
Darren Hsu
1f8b299ace
sepolicy: allow hal_power_stats to read sysfs_display
...
avc: denied { read } for name="available_disp_stats"
dev="sysfs" ino=76162 scontext=u:r:hal_power_stats_default:s0
tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
Bug: 317767775
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I272f69f4c4720eb4800a8a13ef62e1ab34cbaedf
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-29 05:59:52 +00:00
Ken Yang
f1c2498079
selinux: label wakeup for BMS I2C 0x36, 0x69
...
Bug: 319035561
Change-Id: I45a80157d2a1d12a27a748aed31bb0ae5b08e7b5
Signed-off-by: Ken Yang <yangken@google.com>
2024-01-10 06:12:19 +00:00
wenchangliu
997782c603
gs201: move mediacodec_samsung sepolicy to gs-common
...
remove mediacodec_samsung sepolicy in legacy path since we will include it from gs-common.
Bug: 318793681
Test: build pass, camera record, youtube
Change-Id: I08a9ce89155324b0ac749bde4a9d205585a57320
Signed-off-by: wenchangliu <wenchangliu@google.com>
2024-01-09 14:49:56 +00:00
Alex Iacobucci
8f30df1dcf
aoc: add sysfs file entry
...
Test: on device
Bug: 309950738
Change-Id: Ie5437a02b3a4f69d05ecb274169b4bd328315a22
Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-11-20 20:22:25 +00:00
Ken Yang
e5bfccd0fd
SELinux: fix sysfs_wlc avc denials
...
Bug: 291541479
Change-Id: I94bed765b89ee538f77398ce432315c907ac1a9a
Signed-off-by: Ken Yang <yangken@google.com>
2023-07-28 03:47:38 +00:00
Ken Yang
f0c6f18d7d
SELinux: fix the wakeup avc denials am: 3054cb6eec
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/24192194
Change-Id: Ia49778517e9c64e4b7539fa81ec4170cef01961c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 02:30:35 +00:00
Ken Yang
3054cb6eec
SELinux: fix the wakeup avc denials
...
Fix the wakeup avc denials in a more common place
Bug: 292076108
Change-Id: I52627f19cb0fec3dd0851d21d0608048ebc7d45d
Signed-off-by: Ken Yang <yangken@google.com>
2023-07-25 13:12:32 +00:00
Jenny Ho
34ee73b7f2
Add permissions for maxfg_base/maxfg_secondary am: ee160b5880
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/23467290
Change-Id: Ie6144135cf653d281c7bef84fb4469daefbad095
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-31 01:54:32 +00:00
Jenny Ho
ee160b5880
Add permissions for maxfg_base/maxfg_secondary
...
Bug: 284878175
Change-Id: I3fe3030ecd36773405f0e70b767d4a28062d91ad
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-05-30 12:09:30 +08:00
Samuel Gosselin
918335e2a9
genfs_contexts: add raw s2mpg12mfd and s2mpg13mfd node.
...
This adds the appropriate raw i2c numberings to the sepolicy
for the 6.1 kernel driver which does not use the i2c vendor
hook to rename these numberings. This is required for the
thermal hal to work.
Test:
Boot to Android Home on WHI PRO with 6.1 kernel, no
Thermal HAL crashes.
Bug: 276464780
Signed-off-by: Samuel Gosselin <sgosselin@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:83712c5243166cafa3a057d5347515e04947cde8 )
Merged-In: I8c2633b33cef8ca2b55029190fe42bd66b17390f
Change-Id: I8c2633b33cef8ca2b55029190fe42bd66b17390f
(cherry picked from commit 64111ee561
)
2023-05-17 18:09:48 +00:00
Luis Delgado de Mendoza Garcia
3992c42501
Add chre channel sepolicy entries
...
Bug: 281814892
Fix: 281814892
Test: in-device verification.
Change-Id: I3151d25c4a1cd7a858b84e0c8989dc160d368ca5
Merged-In: I3151d25c4a1cd7a858b84e0c8989dc160d368ca5
2023-05-16 22:49:12 +00:00
Leo Liou
5adecc7433
gs201: add sepolicy for ufs_firmware_update process
...
Allow the script to access the specified partition and sysfs.
Bug: 273305212
Test: full build and test ffu flow
Change-Id: Iefeacea2d4c07e7a5b39713c9575e86bd25ce008
Signed-off-by: Leo Liou <leoliou@google.com>
2023-04-17 09:58:11 +00:00
Minchan Kim
b7393fd8d8
move vendor_cma_debugfs into gs-common
...
The CMA dump is common feature for pixel devices so move
it to gs-common.
Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: I3997e27e3037f013338de5bc36687c63338769aa
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-12 06:09:00 +00:00
Mahesh Kallelil
0e62b47df9
Update selinux-policy for ModemService.
...
Allowing the ModemService write access to the sysfs attribute
cp_temp which is used to update the thermal zones.
Test: Verified sysfs attribute security labels
Bug: 267485434
Change-Id: I0915969bfa6354e1884088476fc59cd8027bd2f1
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2023-03-16 05:33:46 +00:00
Adam Shih
f5a068e2bf
use gs-common soc dump
...
Bug: 273380509
Test: adb bugreport
Change-Id: I81cd197c1a7c9f19ad9a3c30b65b4499de04b184
2023-03-15 05:59:09 +00:00
Adam Shih
3c494301c8
Move display dump to gs-common
...
Bug: 269212897
Test: adb bugreport
Change-Id: I8d2d0413987629bd3774034a5f99f5b7feb4b3ba
2023-03-07 12:35:16 +08:00
Adam Shih
6defd8cbc8
Move memory dump to gs-common
...
Bug: 240530709
Test: adb bugreport
Change-Id: I304899f1c9eb1a77ef7559194ab4cfed9daf30ef
2023-02-14 07:22:05 +00:00
Long Ling
59de0efcca
Set context for sysfs file refresh_rate
...
Bug: 263821118
Change-Id: Icdba0553fd5228822ce271ef16b877d4bef9f73e
2023-01-26 18:43:50 -08:00
Doug Zobel
68bf64905b
Add sepolicy for PCIe link statistics
...
PCIe link statistics collected by dumpstate and pixelstats.
Test: adb bugreport && unzip bugreport*.zip && grep link_stats dumpstate_board.txt;
adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: I173ba399a60f29aa8a5edf1e86f97f214b4879c8
Signed-off-by: Doug Zobel <zobel@google.com>
2023-01-24 02:05:32 +00:00
Ken Yang
b3bbcd4554
WLC: Cleanup the sysfs_wlc policies
...
The sepolicy must be self-contained without including wirelss_charger to
avoid build break in AOSP
Bug: 263830018
Change-Id: Ib3e36c9bb4b3048ce97592c3f68260035a32239d
Signed-off-by: Ken Yang <yangken@google.com>
2023-01-13 14:41:12 +00:00
Taylor Nelms
ca38b9685b
Modify permissions to allow dumpstate process to access
...
decon_counters node
Bug: 240346564
Test: Build for Cheetah device with "user" build, check bugreport for decon_counters content
Change-Id: I656ebdcd0f92f2cc3e16de19075e94ada339a39b
Signed-off-by: Taylor Nelms <tknelms@google.com>
2022-12-21 01:41:36 +00:00
Vaibhav Devmurari
2295e34d68
Add SePolicy for system_server accessing sysfs for USB devices
...
Add SePolicy to allow Android input manager accessing sysfs nodes
for external USB devices
To support input device lights manager feature in frameworks, provide
sysfs node access to system server process.
DD: go/pk_backlight_control (For keyboard backlight control for external
keyboards)
Similar changes: ag/20092266
Kernel provides a standardized LED interface to expose LED controls
over sysfs: https://docs.kernel.org/leds/leds-class.html
The feature will be provided for devices with kernel sysfs class led
support and vendor kernel driver for input controllers that do have
lights. The kernel sysfs class led support is a kernel config option
(LEDS_CLASS), and an input device driver will create the sysfs class
node interface.
By giving system_server the access to these sysfs nodes, the feature
will work on devices with the kernel option and kernel input/hid driver
support. We do use CTS tests to enforce the kernel options and the
input device drivers.
What's already supported?
- We already support access to UHID sysfs node which used for all
bluetooth based external peripherals
What's included in this CL?
- Adding support to access sysfs nodes for USB based external devices
Test: manual
Bug: 245506418
Change-Id: I51c642ffe7293f793b7b6a131e8d2a37aea4a547
2022-11-29 11:46:44 +00:00
Ziyi Cui
8586ba78c2
gs201-sepolicy:move perf_metrics genf_contexts from gs201 to gs-common
...
Bug: 227809911
Bug: 232541623
Test: test adb bugreport
Change-Id: I83fc6c8b1adffe9a58e1a3389036461db49efe77
Signed-off-by: Ziyi Cui <ziyic@google.com>
2022-11-29 01:02:45 +00:00
Cheng Chang
5b3d90132a
gps: nstandby path depend on platform
...
Bug: 259353063
Test: no avc denied about nstandby
Change-Id: Ibf72cfd37837d2a9024b82118cd045a2724c9179
2022-11-24 06:54:13 +00:00
Adam Shih
2dc65d6b5c
use gs-common thermal dump
...
Bug: 257880034
Test: adb bugreport
Change-Id: Ib5940bce520ca04ee6cb31f5268f0f86dedadf6e
2022-11-23 14:38:22 +08:00
Adam Shih
80f2221562
move focaltech sepolicy to gs-common
...
Bug: 256521567
Test: adb bugreport
Change-Id: If58b8df0b89dc4d20240af46502a94eebe81f66f
2022-11-18 13:27:11 +08:00
Adam Shih
4952bdc68c
move syna settings to gs-common
...
Bug: 256521567
Test: adb bugreport
Change-Id: Idbec89a1a2c8bac63850ad4915a40500d067d49e
2022-11-17 10:33:25 +08:00
Adam Shih
60b73a5b28
remove raven touch path
...
Bug: 256521567
Test: device does not have the file
Change-Id: I1c0335536f7039724f7e6594fd3959610b56335e
2022-11-16 07:42:22 +00:00
Ziyi Cui
e43c8b3913
gs201-sepolicy: pixelstats: enable pixelstats access to perf-metrics
...
enable pixelstats access to sysfs path, define sysfs_perfmetrics
Bug: 227809911
Bug: 232541623
Test: Tested perf-metrics
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: If1b95148b59a6816c6795921018dfae68d80550b
2022-11-11 18:00:55 +00:00
Adam Shih
e8712e4c93
remove edgetpu folder
...
Bug: 258114806
Test: build pass with the setting still active
Change-Id: I9cdf2bbe318647e1f02f152661e57f8430a9a1cb
2022-11-10 03:19:25 +00:00
Star Chang
3073884607
Add sepolicy for TWT to dumpstate am: f9552297fa
am: f7f9aa1304
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/20118653
Change-Id: I7227638b2e344130f8543c7f693efeddee12e086
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 02:57:02 +00:00
Star Chang
f9552297fa
Add sepolicy for TWT to dumpstate
...
Bug: 253348062
Test: dump bugreport ok
Signed-off-by: Star Chang <starchang@google.com>
Change-Id: I0958fef496302df3f5e6e188f15117de78988a62
2022-11-04 01:31:19 +00:00
Puma Hsu
d155bce16c
Add xhci-hcd-exynos.6 wakeup path for suspend_control am: 9877742035
am: ea1be0c069
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/20288288
Change-Id: I68e8119ea0a950aa83dded293bff318b37062547
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 15:42:08 +00:00
Puma Hsu
9877742035
Add xhci-hcd-exynos.6 wakeup path for suspend_control
...
Bug: 255270480
Test: verified with forrest test build
Change-Id: I5e2eed4d5e20361d86f6d6be8c92ca337e4ee004
Signed-off-by: Puma Hsu <pumahsu@google.com>
2022-11-02 07:39:53 +00:00
pointerkung
9b2ff35965
Add required sepolicy rule for Camera am: 0810814b49
am: 4d803ef7d6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/20137924
Change-Id: I2f733ea78ece93ae7d0aa5c62e0d7c49e80db5b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 21:24:40 +00:00
pointerkung
0810814b49
Add required sepolicy rule for Camera
...
Grant access for TNR max_freq to let libperfmgr can control it via powerhint.
Bug: 243729855
Test: Build pass, GCA, Control TNR max_freq via powerhint
Change-Id: I8f8faa360d9908afe3fe0de3c322a2be356b86c8
2022-11-01 11:33:43 +00:00
George Lee
13fbaff253
bcl: Add Mitigation Logger - Del gs201-sepolicy
...
Mitigation Logger logs battery related information for 1 second when it
is triggered by under voltage or over current interrupts. Information
collected is to help debug system brownout.
Bug: 228383769
Test: Boot and Test
Change-Id: Ia13f6b16dd35803873f20514c21a95ed8dd20a55
Signed-off-by: George Lee <geolee@google.com>
2022-10-31 14:17:55 +00:00
Adam Shih
91b093f51e
move aoc settings to gs-common
...
Bug: 248426917
Test: boot with aoc launched
Change-Id: Icf7e819e7e0a25695a2fb7b05d08273918e19823
2022-10-20 11:24:07 +08:00
Adam Shih
455201b20d
move soc dump to gs-common
...
Bug: 248428203
Test: adb bugreport
Change-Id: I225029624d4bd254dee3997b80ff322bacd07b23
2022-10-05 02:14:13 +00:00
Adam Shih
6580ccce50
dump f2fs in gs-common
...
Bug: 248143736
Test: adb bugreport
Change-Id: Id3b62464fb80cb6178e5b8fc4a53c8c3dfe1b27e
2022-09-27 03:06:43 +00:00
Chungjui Fan
5ea1982643
Add sepolicy of dumping LED file in dumpstate am: aa55cb6f2e
am: 9a70ccc6d6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/19893210
Change-Id: I5d13a2d75fd6bdc939a101b0178922a36d87f38a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 04:03:34 +00:00
Chungjui Fan
aa55cb6f2e
Add sepolicy of dumping LED file in dumpstate
...
Bug: 242300919
Change-Id: I14b0af18244c4a71fd7908fdb35e2e86354e02e0
2022-09-14 02:59:20 +00:00
Wei Wang
099b5bfb9e
Label GPU dvfs period setting am: b5fcd3b4db
am: d28c59ec92
am: 33c574db0c
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/19564662
Change-Id: If02b21c9a081674c9e57fa59db19da618bb8cc6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 00:33:24 +00:00
Wei Wang
d28c59ec92
Label GPU dvfs period setting am: b5fcd3b4db
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/19564662
Change-Id: I616aa04aa91a262e00dd0d611d486edccf463a29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 23:03:28 +00:00
Wei Wang
b5fcd3b4db
Label GPU dvfs period setting
...
Bug: 239887528
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I35766555f13f586e37d03843dae153d02f189976
2022-08-09 23:52:57 +00:00
TeYuan Wang
76e1ea4464
sepolicy: fix odpm avc denials am: 5ef0888e04
am: f5764ecee6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/19446216
Change-Id: I00dca8c120b0c6d5736f503eeba69257b6520d84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 03:38:02 +00:00
TeYuan Wang
5ef0888e04
sepolicy: fix odpm avc denials
...
Fix permissions for ODPM by adding additional bus path
Bug: 240380970
Test: Build
Change-Id: I7bf02ce016f2cdbf4b45f1a797896a00fb8aa454
2022-08-09 03:08:54 +00:00
matthuang
fdccd0cf8f
Add security context for com.google.usf.non_wake_up/wakeup. am: 1c7154c453
am: 645ab36c29
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/19320259
Change-Id: Ie4bcb4c86598a7dbbef05f22daa64b84fb54a5f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 07:37:23 +00:00