Commit graph

5063 commits

Author SHA1 Message Date
Lei Ju
8587126f45 [zuma] Update chre sepolicy for socket connection
With multiclient HAL, the socket server domain changes from chre to
hal_contexthub_default.

Bug: 248615564
Test: updated the sepolicies and observed that avc violation logs
      disappears.
Change-Id: I4b2d27b436c9d81bd0d0cdc5b3c1540884c37fec
2023-12-27 00:02:57 -08:00
timtmlin
404089ca94 Remove obsolete entries
Bug: 315720601
Bug: 315720874
Test: make
Change-Id: I538c76e009c6d29c9d2cac39778decc679446906
2023-12-27 15:23:58 +08:00
Wilson Sung
5b30dbfbb3 Allow SysUI to write protolog file
This is enabled on debuggable builds only, includes
- Grant mlstrustedsubject typeattribute to wm_trace_data_file
- Grant systemui_app the write access to
  wm_trace_data_file

Bug: 251513116
Fix: 288049075
Test: make sepolicy
Change-Id: Ifa5a5281c6e8c7ecedcd601fc8cc58c4be6bdc3b
2023-12-27 11:01:12 +08:00
Roy Luo
bbb322e73a usb: adjust heuristics for flaky connection warning
The state count requirement is very specific to the case where the
signal integrity is the culprit of flaky connection. However,
there could be other cases such as bad receptacles causing data pins
to disconnect randomly.
Remove the state count requirement to cover more cases.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: Ic2ae376ad6062d9930614381503f44e4a5ac760f
(cherry picked from commit 5e14ba01be9acc31d3df0f506b4287eea0bf9583)
2023-12-26 22:26:13 +00:00
Roy Luo
88f3ee90d9 usb: implement heuristics to flag data compliance warnings
Support flagging enum failure and flaky connection in device mode,
flagging enum failure and missing data lines in host mode.
No warning would be flagged until 5 secs after the data session
starts to give ample time for the connection to stabilize, a timer
is added to support it.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: I25f08657e328913946add192b5ecb9ee50c3a1a8
(cherry picked from commit 42020dc4585442bd7ca88f183ba29a18834af197)
2023-12-26 22:25:25 +00:00
Jasmine Cha
2916329aa2 audio: disable audio hal aidl on zuma
Bug: 317444263
Test: boot to home, check basic audio functions

Change-Id: Idc955d7d0cdf2e683e3b8540be8d4810972a0ee2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-26 03:03:27 +00:00
Android Build Coastguard Worker
c36c555814 Snap for 11251507 from 5d6d7dfebd to 24Q2-release
Change-Id: Ia07a58dab05cbb56f2480031152a5e2a52d747f5
2023-12-23 02:03:35 +00:00
Shiyong Li
569134db41 Merge "display: support primary display preferred mode property" into main 2023-12-22 19:54:46 +00:00
Chi Zhang
f965c0b222 Merge "Allow GRIL to get power stats." into main 2023-12-22 19:29:06 +00:00
Treehugger Robot
5d6d7dfebd Merge "powerstats: expose display MRR state residency data provider" into main 2023-12-22 09:56:08 +00:00
Kadi Narmamatov
09c85a0567 Merge "rfsd: add new property to sepolicy" into main 2023-12-22 09:10:49 +00:00
Android Build Coastguard Worker
5dffd1ecb0 Snap for 11248037 from b416682218 to 24Q2-release
Change-Id: I19932e62d7d78699db5b2794a15a2e213ba2306e
2023-12-22 00:05:54 +00:00
Shiyong Li
d26ab660b8 display: support primary display preferred mode property
Bug: 315895938
Test: check default mode after factory reset
Change-Id: Ia5a4c12537d50faf54ed5ea82d24e52a623c34e3
Signed-off-by: Shiyong Li <shiyongli@google.com>
2023-12-21 20:12:45 +00:00
Jaegeuk Kim
b416682218 Merge "Migrate to gs-common/storage/init.storage.rc" into main 2023-12-21 18:45:13 +00:00
Peter Lin
810e5a5a65 [automerger skipped] Update default color temperature for night light am: 859b45c905 am: dea5a998c2 -s ours
am skip reason: Merged-In If106f81c0dd2bd81a48e156e1cc75dba4a885aca with SHA-1 dc330b5e88 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25704537

Change-Id: Icaf771cd1500a31df49dd844132f1f23687d77d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-21 10:10:43 +00:00
Peter Lin
dea5a998c2 Update default color temperature for night light am: 859b45c905
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25704537

Change-Id: I479e6601de7ff80153e90e84a24f2d55115d3960
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-21 09:39:16 +00:00
Wilson Sung
79ba49730b Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 317316633
Change-Id: I8c1b97d6c65ec06e0a13e1447538f7cebf21d962
2023-12-21 07:37:01 +00:00
Jaegeuk Kim
eddcfba6b3 Migrate to gs-common/storage/init.storage.rc
Bug: 311655524
Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 10:00:10 -08:00
Darren Hsu
bc01b6ec02 powerstats: expose display MRR state residency data provider
Bug: 317192192
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I1e02ffa0dfcfe61e7c2fa0acb44241b322046b0a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-20 20:21:13 +08:00
kadirpili
5c28db1f6b rfsd: add new property to sepolicy
Bug: 307481296
Change-Id: Icd287f863fd6d309297ce984f4ce387fb5d3ae24
2023-12-20 07:27:32 +00:00
Peter Lin
859b45c905 Update default color temperature for night light
Bug: 302396607
Test: adb shell dumpsys color_display | grep "Color temp"
Change-Id: If106f81c0dd2bd81a48e156e1cc75dba4a885aca
(cherry picked from commit dc330b5e88)
Merged-In: If106f81c0dd2bd81a48e156e1cc75dba4a885aca
2023-12-20 02:22:37 +00:00
Android Build Coastguard Worker
53dde9d4fc Snap for 11237490 from cdb1fe26f5 to 24Q2-release
Change-Id: I446990f4850f3be256607f2b70c622e6e998180e
2023-12-20 00:06:18 +00:00
Chi Zhang
a2e8969139 Allow GRIL to get power stats.
SELinux : avc:  denied  { find } for pid=3147 uid=10219 name=android.hardware.power.stats.IPowerStats/default scontext=u:r:grilservice_app:s0:c219,c256,c512,c768 tcontext=u:object_r:hal_power_stats_service:s0 tclass=service_manager permissive=1

Bug: 286187143
Test: build and boot
Change-Id: I6df25e78ba8fa8efaa7f51aed8e981ac382dcd29
2023-12-19 12:22:08 -08:00
Wilson Sung
f8f64b668c Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 316991604
Change-Id: Ic90ace8d5b6ac787030f6fd26d96f41677fcca42
2023-12-19 06:27:10 +00:00
Treehugger Robot
cdb1fe26f5 [automerger skipped] Merge "zuma: change swap_free_low_percentage to 10" into udc-qpr-dev am: 5a02468860 am: c033f1441e -s ours
am skip reason: Merged-In I688f2559698c7553a7f585cab2693d09d70731f4 with SHA-1 f08b6e4d84 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25689420

Change-Id: I9727815f1b677fb77c0403c4b0e35bd66dd994fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 04:40:52 +00:00
Treehugger Robot
c033f1441e Merge "zuma: change swap_free_low_percentage to 10" into udc-qpr-dev am: 5a02468860
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25689420

Change-Id: I956589a42f82381d26e03f2b8f7418b603acbfd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 04:10:12 +00:00
Treehugger Robot
5a02468860 Merge "zuma: change swap_free_low_percentage to 10" into udc-qpr-dev 2023-12-19 03:36:54 +00:00
Jenny Ho
ee98f80359 Merge "Adjust bd_state to system for read" into main 2023-12-19 03:24:25 +00:00
Huihong Luo
14017215f7 Merge "Add a sysprop for updating HDCP between HWC and SF" into main 2023-12-19 00:01:22 +00:00
Minchan Kim
245ae84985 zuma: change swap_free_low_percentage to 10
Since LMKD introduced aggressive kill for cached apps, we can change the
swap_free_low_percentage back to 10.

Bug: 300660611
Change-Id: I688f2559698c7553a7f585cab2693d09d70731f4
Merged-In: I688f2559698c7553a7f585cab2693d09d70731f4
Signed-off-by: Minchan Kim <minchan@google.com>
2023-12-18 18:27:47 +08:00
Wilson Sung
31c017f325 Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 316816737
Bug: 316816642
Change-Id: Ie61999d23158c81e2acb4d23eb106cb6f61f9b88
2023-12-18 03:28:40 +00:00
Android Build Coastguard Worker
b033a20ad4 Snap for 11228795 from e590f05e21 to 24Q2-release
Change-Id: I9d430fb35d65e988d19aee95555249684048b46d
2023-12-16 22:02:57 +00:00
Android Build Coastguard Worker
36d3c1c5b4 Snap for 11227258 from 25a875d403 to 24Q2-release
Change-Id: Ib4a7e3b0be2ecc47381bcccc85e7d449174845ca
2023-12-16 02:02:44 +00:00
Kieran Cyphus
e590f05e21 Merge "logmasklibrary: update version info and freeze api" into main 2023-12-15 22:46:21 +00:00
Jenny Ho
624157e600 Adjust bd_state to system for read
Bug: 316432531
Change-Id: Ib4a398d766bb321d0579819f248d4688be7ad1d1
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-16 02:03:05 +08:00
Snehal Koukuntla
25a875d403 Merge "Add trusty code coverage controller daemon" into main 2023-12-14 05:15:11 +00:00
Treehugger Robot
e1e8933703 Merge "powerstats: change TPU DVFS data source from ACPM to TPU kernel" into main 2023-12-13 07:10:57 +00:00
Treehugger Robot
da04c1d607 Merge "init: make dumpstate able to read display logbuffer" into main 2023-12-13 07:09:39 +00:00
Snehal
e871979054 Add trusty code coverage controller daemon
Bug: 289523068

Change-Id: I473ac38a5f7b1540aea0b4588bc358f6855ff4b3
2023-12-13 06:53:12 +00:00
Ken Lin
425a781cd1 init: make dumpstate able to read display logbuffer
Add logbuffer support for display driver to dump DSI cmd

Bug: 291441544
Test: adb root; adb shell dumpsys
android.hardware.dumpstate.IDumpstateDevice/default dump_display_logbuffer
Change-Id: I74eaa7b3cdd8101909044f173512d41b065a2599
Signed-off-by: Ken Lin <lyenting@google.com>
2023-12-13 06:13:04 +00:00
Imo Richard Umoren
b3e48816fa Twoshay: Add SELinux Permissions for CHRE [Zuma]
Adds connection and write permissions for chre socket to SELinux policy.
Used for the Wallaby nanoapp.

Bug: b/315347346
Bug: b/314721681
Test: Manually tested on SB3 Proto 1.0
Change-Id: I4a01be73d76a577d8da07c36276349525c0fda68
2023-12-12 17:23:35 +00:00
Darren Hsu
3c8118e0f8 powerstats: change TPU DVFS data source from ACPM to TPU kernel
ACPM has an issue b/315079424 that reports incorrect TPU DVFS
residency. So change the data source from ACPM to TPU kernel.

Bug: 310094590
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: If4bdaeea510b1a8e72d057a7fbb0dc03f6a6c665
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-12 23:20:13 +08:00
YK Hung
ed808b4425 Merge "Grant the post notification permission to Turbo" into main 2023-12-12 10:21:08 +00:00
Kuen-Han Tsai
c6c1954a28 Merge "usb: enable media-presence polling for SD cards" into main 2023-12-12 08:06:15 +00:00
Wesley Wang
838d9245c0 Grant the post notification permission to Turbo
Bug: 293813663
Test: manual and local build verify
Change-Id: I9ae27af828b1eeb2b8c2e2397a94e74f2315298a
2023-12-12 14:21:41 +08:00
Kuen-Han Tsai
559da7282a usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: I044aeffd9386c0bee6138402e5130c39e1adbc9f
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:11:31 +08:00
Hungyen Weng
8caeeb3811 config: Use carrier config in ROM by default am: 06e99301dd am: 6a0f8557ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25616149

Change-Id: Ifb518f5fffe10ade5ffcd9df412a767feedaa53d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:46:05 +00:00
Hungyen Weng
6a0f8557ef config: Use carrier config in ROM by default am: 06e99301dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25616149

Change-Id: I3eb4c0748edaee4a93e156eb6d9c8f2a40a60ae4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:12:00 +00:00
Xin Li
1b45f49762 [automerger skipped] Merge Android 14 QPR1 am: 3db3ce96a7 -s ours am: ca4d830813 -s ours am: ccb168aa86 -s ours
am skip reason: Merged-In I12add8918fb1922029cbbee130be33a3a36e44a4 with SHA-1 8dadca19cf is already in history

Original change: https://android-review.googlesource.com/c/device/google/zuma/+/2866342

Change-Id: I8535f81cadead59df772a39ca12c7e67c321b5bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:57:38 +00:00
RD Babiera
3082aa7f48 usb: report displayport capable port partner disconnect to drm
On port-partner remove, write to drm's usbc_cable_disconnect
node if setupDisplayPortPoll() had run previously in the
connection, flagged by mPartnerSupportsDisplayPort.

Test: manual test on device
Bug: 303820069
Change-Id: I3478f2f027540972647044716a1a3e832ae1b152
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-12-11 22:34:53 +00:00