Commit graph

2829 commits

Author SHA1 Message Date
Wilson Sung
e3c536e772 Rename sysfs_gpu_uevent to sysfs_gpu
Fix: 385248542
Fix: 385248720
Fix: 385248893
Fix: 385248956
Fix: 385808247
Fix: 385978257
Test: make selinux_policy
Flag: EXEMPT bugfix
Change-Id: I8395401e50905bdcabd4858442238570edb916e9
2024-12-25 00:20:24 -08:00
Todd Poynor
cfa4033ecc Merge "Revert "sepolicy: edgetpu: add debugfs contexts"" into main 2024-12-24 05:46:01 -08:00
Pechetty Sravani (xWF)
19b79e1312 Revert "sepolicy: edgetpu: add debugfs contexts"
This reverts commit 4b68ad6e8d.

Reason for revert: <Droidmonitor created revert due to b/385827654.Will be verified through ABTD for standard investigation.>

Change-Id: I0fbdcd276c9e20010b3bfbbcad5203bf276859a4
2024-12-24 01:42:39 -08:00
Robin Peng
c7b8062120 Merge "check_current_prebuilt: Move symlink file into out/pixel" into main 2024-12-23 19:59:52 -08:00
Treehugger Robot
896ea46985 Merge "sepolicy: edgetpu: add debugfs contexts" into main 2024-12-23 19:56:58 -08:00
Jooyung Han
31e885a477 Move lyric sysconfig to vendor
This sysconfig is about the apex (com.google.pixel.camera.hal). So it
should be installed with the apex, not in /product.

Bug: 375357389
Test: SysConfigTest#testVendorApexAllowlist
Change-Id: I551870fcff576527d3fdfff3d17a5e7b0ce198a9
2024-12-24 10:38:36 +09:00
Liz Prucka
327eb5b7eb Merge "Add Mali SELinux build flag for Pixel" into main 2024-12-23 09:09:23 -08:00
Robin Peng
6940a61c92 check_current_prebuilt: Move symlink file into out/pixel
From Android Build System, it's improper to update the source tree during
'lunch'. Move symlink files into out/pixel folder

Bug: 364831620
Flag: EXEMPT export current prebuilt path
Change-Id: I5024788e169abb8f117a289c6a07e7c47527fe60
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-12-20 23:08:43 -08:00
Kai Hsieh
b24840ba97 Merge "Solve SEPolicy issue with the Troubleshooting Wizard" into main 2024-12-20 22:34:57 -08:00
Kai Hsieh
13dcd24c48 Solve SEPolicy issue with the Troubleshooting Wizard
- Allow pixelsystemservice_app to access GIA
- Allow GIA to execute a callback for pixelsystemservice_app

[avc error]
12-09 20:39:51.287   416   416 E SELinux : avc:  denied  { find } for pid=5454 uid=10285 name=com.google.input.gia.core.IGiaService/default scontext=u:r:pixelsystemservice_app:s0:c29,c257,c512,c768 tcontext=u:object_r:hal_gia_service:s0 tclass=service_manager permissive=1
12-09 20:39:51.280  5454  5454 I pool-4-thread-1: type=1400 audit(0.0:19): avc:  denied  { call } for  scontext=u:r:pixelsystemservice_app:s0:c29,c257,c512,c768 tcontext=u:r:gia:s0 tclass=binder permissive=1 app=com.google.android.pixelsystemservice
12-09 20:39:51.280  5454  5454 I pool-4-thread-1: type=1400 audit(0.0:20): avc:  denied  { transfer } for  scontext=u:r:pixelsystemservice_app:s0:c29,c257,c512,c768 tcontext=u:r:gia:s0 tclass=binder permissive=1 app=com.google.android.pixelsystemservice
12-09 20:39:51.280  1341  1341 I binder:1341_3: type=1400 audit(0.0:21): avc:  denied  { call } for  scontext=u:r:gia:s0 tcontext=u:r:pixelsystemservice_app:s0:c29,c257,c512,c768 tclass=binder permissive=1

Flag: EXEMPT, bug-fix only.
Bug: 379991501
Change-Id: I14942cc0df9b9032b2c054fc87d29fc8098aa455
Signed-off-by: Kai Hsieh <kaihsieh@google.com>
2024-12-19 23:39:24 -08:00
Todd Poynor
4b68ad6e8d sepolicy: edgetpu: add debugfs contexts
Add vendor_edgetpu_debugfs contexts for dumpstate dump_tpu.sh access.

Bug: 349699101
Test: adb bugreport, check dumpstate_board.txt
Flag: NONE dumpstate support bundled with device
Change-Id: I42b7eb2391c42323c7da0b544402e9a08b9d56f3
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2024-12-20 01:27:48 +00:00
Chintan Pandya
c5c4f1ef81 Disable redundant trace event for performance reasons
It's been found that every GIA trace events takes about
0.7 us. GIA driver throws 5 trace events for every IRQ
via GIA. Reducing some events would make IRQ handler
flow a but more optimized.

Bug: 380463996
Test: observed the trace and the disabled trace entries
      are not longer present, reducing pressure on runtime
      performance as well as memory pressure on trace buffer.
Flag: EXEMPT, optimize interrupt tracing.

Change-Id: I233d82da7a6eb75344afe3798c9f850a74e5e16b
Signed-off-by: Chintan Pandya <chintanpandya@google.com>
2024-12-19 22:59:37 +00:00
Chintan Pandya
60a9a7b17b Optimize interrupts trace buffer size
Reduce the trace buffer size further

Bug: 383121598
Test: Manually observed the optimized trace settings
Flag: EXEMPT, optimize interrupt tracing.
Change-Id: Id6e02df4d73a97b99a019b210dbd508b115462fc
Signed-off-by: Chintan Pandya <chintanpandya@google.com>
2024-12-19 22:59:37 +00:00
Chintan Pandya
a67610e46e Update irq_gia_google permission
Current permission 666 blocks bugreport use-case be able to
copy interrupt traces into bugreport. Provide required
permissions.

Bug: 376124648
Test: Captured bugreport and traces are visible in that.
Flag: EXEMPT, init rc change to modify permission
Change-Id: Ib03ab97fcd65d18e2420421f8fc997eefd55570f
Signed-off-by: Chintan Pandya <chintanpandya@google.com>
2024-12-19 22:59:25 +00:00
Hung-Yeh Lee
bbe22a1056 display-dump: update project-specific crtc sysfs node
Refactor and rename project-specific dump

Bug: 376426334
Test: adb bugreport
Test: adb shell /vendor/bin/dump/dump_*_display
Test: adb shell /vendor/bin/dump/dump_*_second_display
Flag: EXEMPT bugfix
Change-Id: I7bf470e5784e0fd726c49823b55aae6235aceaec
2024-12-18 21:59:42 -08:00
Liz Prucka
bfa32da350 Add Mali SELinux build flag for Pixel
Created initial Pixel SELinux flag module.
Added Mali release flag to build be built by soong.

Bug: 384720119
Test: make
Change-Id: Iffcae7bc64114b80b2750da8823768a15efff9b3
2024-12-17 23:11:31 +00:00
Richard Chang
e67bff18e9 Merge "sepolicy: update init.te for zram device" into main 2024-12-16 17:34:47 -08:00
Minche Li
a12a209a03 Merge "Updates TTS voice packs in gs-common 202412" into main 2024-12-16 02:34:58 -08:00
Richard Chang
cf29787f8d sepolicy: update init.te for zram device
Sync patch from zuma: ag/21578379, but move to gs-common.

Avc denied log:
avc:  denied  { write } for  comm="init" name="zram0" dev="tmpfs" ino=1306 scontext=u:r:init:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1

Verify on PBuilds:
https://android-build.corp.google.com/abtd/run/L32800030008398424/

Bug: 370643878
Test: Boot and check avc denied logs
Flag: EXEMPT sepolicy
Change-Id: I90ea0b248835fa51fe07cfa23e5f819fd8422c08
2024-12-16 01:32:02 -08:00
Eileen Lai
a8634006fb kernel metrics: add selinux policy about modem_boot_duration for kernel metrics feature
Bug: 368510043

12-13 23:10:00.604   993   993 I binder:993_2: type=1400 audit(0.0:327): avc:  denied  { read } for  name="modem_boot_duration" dev="sysfs" ino=72272 scontext=u:r:shared_modem_platform:s0 tcontext=u:object_r:sysfs_kernel_metrics:s0 tclass=file permissive=1
12-13 23:10:00.604   993   993 I binder:993_2: type=1400 audit(0.0:328): avc:  denied  { open } for  path="/sys/kernel/pixel_metrics/modem/modem_boot_duration" dev="sysfs" ino=72272 scontext=u:r:shared_modem_platform:s0 tcontext=u:object_r:sysfs_kernel_metrics:s0 tclass=file permissive=1
12-13 23:10:00.604   993   993 I binder:993_2: type=1400 audit(0.0:329): avc:  denied  { getattr } for  path="/sys/kernel/pixel_metrics/modem/modem_boot_duration" dev="sysfs" ino=72272 scontext=u:r:shared_modem_platform:s0 tcontext=u:object_r:sysfs_kernel_metrics:s0 tclass=file permissive=1

Flag: EXEMPT update sepolicy

Change-Id: Id50146858f84d3716855b9010e95c7232c6accfa
2024-12-16 07:09:01 +00:00
Xiaofan Jiang
da6c722022 Merge "modem_uart: add modem uart log to bugreport" into main 2024-12-14 00:08:31 -08:00
Xin Li
aa687b7c4c [automerger skipped] Merge 24Q4 into AOSP main am: b61a4f4345 -s ours am: 261899fc1b -s ours
am skip reason: Merged-In I96f429ec3284114868ad220ea308a6920930c065 with SHA-1 421324351c is already in history

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

Change-Id: I461895b52139d919f3bdc7b4475e117e110cb816
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 21:45:19 -08:00
Xin Li
261899fc1b [automerger skipped] Merge 24Q4 into AOSP main am: b61a4f4345 -s ours
am skip reason: Merged-In I96f429ec3284114868ad220ea308a6920930c065 with SHA-1 421324351c is already in history

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

Change-Id: Ia0e940e4a7404c36f40cfb677226e1fe508951c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 18:51:51 -08:00
Xin Li
b61a4f4345 Merge 24Q4 into AOSP main
Bug: 370570306
Merged-In: I96f429ec3284114868ad220ea308a6920930c065
Change-Id: I8967334343407bc9eab73bb0ade0b939e3aa7873
2024-12-13 11:15:09 -08:00
Kieran Cyphus
d2295d66e6 Merge "pms: Create mk file in gs-common" into main 2024-12-13 00:41:27 -08:00
kierancyphus
9a52810bab pms: Create mk file in gs-common
Bug: 382192979

Test: ran abtd test with both git_main and git_main-without-vendor
Flag: EXEMPT Cannot flag mk file changes
Change-Id: Ic7fc13ad191abb1147f35d8d4bd1fd02dc56e772
2024-12-13 10:27:37 +08:00
mincheli
ae9ffbc0b3 Updates TTS voice packs in gs-common 202412
ag/30871748 updates GoogleTTS.
So preloaded TTS voice packs should be also updated.

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

Flag: EXEMPT update preloaded files
Bug: 333626474
Test: build passed and manual test
Change-Id: I982df07d49c4be47e819ebe561d5d53212c40b32
2024-12-13 00:27:55 +00:00
Treehugger Robot
5a51adbdd3 Merge "allow power hal to access vendor_mm files" into main 2024-12-12 15:11:48 -08:00
Martin Liu
437d35e7cb allow power hal to access vendor_mm files
I auditd  : type=1400 audit(0.0:79): avc:  denied  { write } for  comm="NodeLooperThrea" name="vendor_mm" dev="sysfs" ino=56518 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_vendor_mm:s0 tclass=dir permissive=0

Bug: 357995885
Test: check avc error
Flag: EXEMPT adding avc rule
Change-Id: I1261aa14f2cd912ede51edc2e1a547d2e182ca46
Signed-off-by: Martin Liu <liumartin@google.com>
2024-12-12 13:38:20 +00:00
Xiaofan Jiang
e319e6c3e4 modem_uart: add modem uart log to bugreport
Bug: 353397822

Flag: NONE, config
Change-Id: I9668f70859796ca4475dfa0456a955ac3a7ada5d
2024-12-11 18:40:52 -08:00
Piotr Klasa
78f0d4c8e6 Move all vendor_sched parameters and permissions to init.pixel.perf.rc
Bug: 335874870
Test: Checked that permissions and values ​​for all affected files are correct (ls -l, cat)
Flag: EXEMPT not supported by this component yet

Change-Id: Ia6dedcb49534d6be9007addca0d8d1080f219315
2024-12-11 06:35:06 -08:00
Joe Tessler
737725ba27 Support IAudioExtension AIDL v4 and v5
We unfroze the v4 IAudioExtension AIDL API and modified it in
ag/30424231 and incremented the version to v5 in ag/30702418 to fix the
tests. This broke the -next builds, which expected the previously frozen
version (v4).

This change modifies the compatibility matrix to support both v4 and v5.
This fixes both the local tests and -next builds.

Bug: 378303588
Bug: 383213634
Test: atest vts_treble_vintf_vendor_test
Flag: vendor.google.whitechapel.audio.flags.enable_always_available_display
Change-Id: I467434ccb41ab71dc1b230e64dc09fc0959a8b8a
2024-12-10 04:15:21 +00:00
Joe Tessler
7ee457daf9 Merge "Update IAudioExtension AIDL to v5" into main 2024-12-10 02:56:27 +00:00
Dmitry Skiba
ae00670e9c Merge "Reapply "Add amm experiment."" into main 2024-12-09 23:57:53 +00:00
Dmitry Skiba
c0ac52ad63 Reapply "Add amm experiment."
See go/pixel-perf-amm-experiment for more info.

(This change is a reland of ag/30770395 after fixing issues that caused a revert.)

Bug: 365855872
Test: build/flash; set .Perf__amm_experiment=true, observe auto_migration_margins_enable value changing 1->0; set .Perf__amm_experiment="", observe the value changing 0->1
Flag: NONE controlled by Mendel instead
Change-Id: I833ea7cd104b95abf80f2286e91f96a102d8086a
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-09 18:20:00 +00:00
Chintan Pandya
db9f7e0d38 Merge "Reduce the trace instance irq_gia_google's buffer size" into main 2024-12-09 17:24:41 +00:00
Treehugger Robot
fbe4a4f483 Merge "storage: add missing bug_map" into main 2024-12-09 17:05:38 +00:00
Eileen Lai
37bd9aa71e Merge changes from topic "move_shared_modem_platform_sepolicy" into main
* changes:
  modem_svc: add modem_svc_sit to solve sepolicy conflicts arising from different device versions
  modem_svc: move shared_modem_platform related sepolicy to gs-common
2024-12-09 15:09:36 +00:00
Satish Yalla
b09df07b37 Merge "Revert "Add amm experiment."" into main 2024-12-09 07:25:12 +00:00
Satish Yalla
92b52953a3 Revert "Add amm experiment."
This reverts commit 842b86dcc1.

Reason for revert: DroidMonitor created revert due to b/382821677. Will be verified through ABTD for standard investigation.

Change-Id: I5b0d026155c2acb0d117aad7249592fc3fa72d61
2024-12-09 02:15:16 +00:00
Treehugger Robot
81762fe218 Merge "Add amm experiment." into main 2024-12-07 07:52:05 +00:00
Wei Wang
b848040c01 Merge "Add Proc Vendor Sched Sepolicy Fix" into main 2024-12-07 06:21:53 +00:00
Chintan Pandya
f94206fea7 Reduce the trace instance irq_gia_google's buffer size
Bug: 382283364
Test: Verified that trace buffer size reduced.
Flag: EXEMPT, init rc change to reduce trace buffer size
Change-Id: I8bf50ac8fa3cff263592b3eca1a6b72a20b2b129
Signed-off-by: Chintan Pandya <chintanpandya@google.com>
2024-12-06 23:10:45 +00:00
Chintan Pandya
68a7a49504 Merge "Remove code that just re-enables IRQ and GIA events" into main 2024-12-06 23:10:12 +00:00
Chintan Pandya
2d6b42c487 Remove code that just re-enables IRQ and GIA events
These events are already enabled from kernel.

Bug: 378928822
Test: Verified that trace functionality works as expected.
Flag: EXEMPT, just a clean up in init rc
Change-Id: I9e50e3d86e914b0db8633a1ae7287875b4df9838
Signed-off-by: Chintan Pandya <chintanpandya@google.com>
2024-12-06 23:08:30 +00:00
Dmitry Skiba
842b86dcc1 Add amm experiment.
See go/pixel-perf-amm-experiment for more info.

Bug: 365855872
Test: build/flash; set .Perf__amm_experiment=true, observe auto_migration_margins_enable value changing 1->0; set .Perf__amm_experiment="", observe the value changing 0->1
Flag: NONE controlled by Mendel instead
Change-Id: I02b98e3601a0564929acb73250e2e943664bc80a
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-06 22:15:49 +00:00
Jaegeuk Kim
9e1cdbc471 storage: add missing bug_map
The warning is WAI, so make a correct report.

[   11.777638] [  T374] type=1400 audit(1733512828.220:561): avc:  denied  { open } for  comm="getprop" path="/dev/__properties__/u:object_r:vendor_intelligence_prop:s0" dev="tmpfs" ino=436 scontext=u:r:shell:s0 tcontext=u:object_r:vendor_intelligence_prop:s0 tclass=file permissive=1

w/

[   10.560345] [  T376] type=1400 audit(1733515761.004:342): avc:  denied  { open } for  comm="getprop" path="/dev/__properties__/u:object_r:vendor_intelligence_prop:s0" dev="tmpfs" ino=436 scontext=u:r:shell:s0 tcontext=u:object_r:vendor_intelligence_prop:s0 tclass=file permissive=1 bug=b/378120929

Bug: 378120929
Flag: EXEMPT bugfix
Change-Id: Ia158d71c43e6006ee86a227b5a083bc27230ef71
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-12-06 12:16:14 -08:00
Dmitry Skiba
d5909db27f Add apf experiment.
See go/pixel-perf-apf-experiment for more info.

Bug: 365855872
Test: build/flash, set .Perf__apf_experiment=true and observe vendor.powerhal.apf_enabled=false, .apf_disabled=true
Flag: NONE controlled by Mendel instead
Change-Id: Iee32c4b160d5013fbbd893765d3df54c1befa458
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-06 17:59:11 +00:00
Eileen Lai
8112ee64cc modem_svc: add modem_svc_sit to solve sepolicy conflicts arising from different device versions
Add modem_svc_sit to gs-common. modem_svc_sit will support devices from gs101 to zuma_pro. The shared_modem_platform will be updated to support devices after zumapro (not include).

Bug: 372400955

Flag: NONE local testing only
Change-Id: I0bcc9baf69045327e6fcca92ab8003e303db2649
2024-12-06 12:49:05 +00:00
Treehugger Robot
c38d34d5e2 Merge "Add Intelligence rc" into main 2024-12-06 10:23:48 +00:00