Commit graph

1928 commits

Author SHA1 Message Date
Android Build Coastguard Worker
d7278ddccc Snap for 11260009 from 29e115e63e to 24Q2-release
Change-Id: I99c5e15a9bbc0a66d85d5b1ab809f2885c332e4c
2023-12-29 00:02:48 +00:00
Treehugger Robot
29e115e63e Merge "audio: separate audio hal hidl/aidl by project" into main 2023-12-28 01:48:33 +00:00
Android Build Coastguard Worker
fe788ef432 Snap for 11257657 from 35e5021597 to 24Q2-release
Change-Id: Ib0b71b9a2ff549f145898919ba536c3bf81fb0f6
2023-12-28 00:02:36 +00:00
Lei Ju
35e5021597 Update common 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: Ic5717cee6d2714bec49814a1b779266de79dc4f3
2023-12-26 23:29:58 -08:00
Jasmine Cha
1e19480c70 audio: separate audio hal hidl/aidl by project
Bug: 317444263
Bug: 317733172
Test: boot to home, check basic audio functions

Change-Id: I034b4958b3fc701569988618f5428c07c8d61c15
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-27 11:58:55 +08:00
Android Build Coastguard Worker
d73a389652 Snap for 11255311 from e40fe7223e to 24Q2-release
Change-Id: I0e737ba316f67eeb5bba0614fb671c13da754a8c
2023-12-27 00:04:08 +00:00
Treehugger Robot
e40fe7223e Merge "touch/init: change file owner after sys.boot_completed=1" into main 2023-12-26 07:13:37 +00:00
Yen-Chao Chen
643719c2ac touch/init: change file owner after sys.boot_completed=1
It's possible that the gti sysfs node is not ready when
vendor.device.modules.ready is set so change the gti file owner
at later stage.

Bug: 285327052
Bug: 285247095
Bug: 285323846
Test: trigger bugreport and the dump succeed.

Change-Id: If1921aeb351603b52164c66bc9c7b3651d171287
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-12-26 14:31:49 +08:00
Jasmine Cha
b390dd37bc Merge "audio: add soong config for ims media to read" into main 2023-12-26 06:20:29 +00:00
Jasmine Cha
e5bf86e7cd audio: add soong config for ims media to read
Bug: 291772585
Test: manual test on hidl/aidl

Change-Id: I1bb1bc5963fe28132cb72fe29167b3fa4d384cb7
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-26 05:07:18 +00:00
Android Build Coastguard Worker
d7c8ae097e Snap for 11253496 from e3e46d4de9 to 24Q2-release
Change-Id: I5d65c439db503caf0063f112d38b12d678731ab9
2023-12-26 00:02:21 +00:00
Darren Hsu
e3e46d4de9 powerstats: sort frequencies in descending order
Cpufreq data is sorted in ascending order, but power stats
are sorted in descending order. Reverse sorting to maintain
consistency with other power stats.

Bug: 317429309
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I29a58c02add846eb66a8d6eb247336111363c335
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-25 15:04:50 +08:00
Android Build Coastguard Worker
76edad3ea4 Snap for 11251507 from 375b7e13c8 to 24Q2-release
Change-Id: Ib3178d25b173e3739ee7bf42bf44b5726f67c36e
2023-12-23 02:02:34 +00:00
Treehugger Robot
375b7e13c8 Merge "powerstats: introduce display MRR state residency data provider" into main 2023-12-22 09:56:08 +00:00
Carter Hsu
350fcd76bc Merge "Allow hal_audio_default to access DMA and TPU property" into main 2023-12-22 04:58:22 +00:00
Carter Hsu
e23d5c44d0 Allow hal_audio_default to access DMA and TPU property
12-19 13:46:27.396000  1041  4222  4222 W gsenet/4949: type=1400 audit(0.0:51): avc:  denied  { read } for  name="u:object_r:vendor_edgetpu_runtime_prop:s0" dev="tmpfs" ino=399 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:vendor_edgetpu_runtime_prop:s0 tclass=file permissive=0

12-19 13:46:27.396000  1041  4222  4222 I auditd  : type=1400 audit(0.0:52): avc:  denied  { read } for  comm="gsenet/4949" name="system" dev="tmpfs" ino=1217 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

12-19 13:46:27.396000  1041  4222  4222 W gsenet/4949: type=1400 audit(0.0:52): avc:  denied  { read } for  name="system" dev="tmpfs" ino=1217 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

Bug: 317032803
Test: Verified by test build
Change-Id: Ifc2b720615b2ee9b74de163c128962411bbe0d4e
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-22 04:52:47 +00:00
Darren Hsu
40b75d505c powerstats: introduce display MRR state residency data provider
Display team introduces new refresh rate residency in kernel.
Current display data provider is polling data from state sysfs.
To reduce CPU loading and improve efficiency, we should get
rid of polling data provider and create new data provider to
read data from time_in_state sysfs in PowerStatsHAL.

Bug: 316260832
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I4d9886f13207e41f13defd89ea2c19614918a570
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-22 10:08:20 +08:00
Android Build Coastguard Worker
6f911ea788 Snap for 11248037 from d3a9a07020 to 24Q2-release
Change-Id: I1765002faf470974594f006f8d820024d14207b9
2023-12-22 00:04:42 +00:00
Qais Yousef
bebef42dbd init.storage.rc: Set rq_affinity to 2
When rq_affinity is 1, it will default to servicing the softirq on the
same CPU that has serviced the interrupt.

By setting it to 2, completions are processed by the CPU core that
submitted the I/O.

Bug: 311655524
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I21421f97f069083793fe2e2fa51739dac12eca1d
2023-12-21 19:04:11 +00:00
Jaegeuk Kim
d3a9a07020 Merge "Storage: clean up init.rc for storage" into main 2023-12-21 18:45:13 +00:00
Lei Ju
403baea11f Update the common sepolicy for file access
Bug: 248615564
Test: load sepolicy onto pixel device and verify the output using
      audit2allow
Change-Id: I295cefa3637298fba3d266f5f95f83cb7329bd02
2023-12-20 16:36:18 -08:00
Android Build Coastguard Worker
6ab7afcfee Snap for 11243032 from 79938de33f to 24Q2-release
Change-Id: I27b64b66c529ee802ccba4700f286e18840012cb
2023-12-21 00:03:16 +00:00
Jaegeuk Kim
911292ecca Storage: clean up init.rc for storage
Bug: 311655524
Change-Id: Ic08d6cd42f90c2c6b697077d63fea6a2454f1cc1
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 11:22:41 -08:00
Lei Ju
79938de33f Merge "Set up common sepolicy for CHRE" into main 2023-12-20 03:27:08 +00:00
Lei Ju
f7f93daaf3 Set up common sepolicy for CHRE
Bug: 248615564
Test: compilation by make sepolicy
Change-Id: I0bde64d26d0c4451343f6f7032aecc20b275feaa
2023-12-19 10:32:04 -08:00
Android Build Coastguard Worker
5bef7241cf Snap for 11232546 from cd14063e18 to 24Q2-release
Change-Id: I45296a11fb6b4e1780efd4c24ce3de306046c830
2023-12-19 00:03:46 +00:00
Sam Ou
cd14063e18 Merge "bm: support br_stats enabled flag" into main 2023-12-18 01:49:35 +00:00
Android Build Coastguard Worker
1a4ee7e1aa Snap for 11227258 from 477d1dae77 to 24Q2-release
Change-Id: I456dbb7f7bb1d9fb211a3883e61cbdca56e41820
2023-12-16 02:01:51 +00:00
Luigi Zevola
477d1dae77 Merge "aoc: add policy to read system property" into main 2023-12-14 00:47:45 +00:00
Alex Iacobucci
6461e33428 aoc: add policy to read system property
Solves error: 1

2-13 18:33:15.860000  root  1019  1019 I auditd  : type=1400 audit(0.0:7): avc:  denied  { read } for  comm="aocd" name="u:object_r:vendor_rild_prop:s0" dev="tmpfs" ino=404 scontext=u:r:aocd:s0 tcontext=u:object_r:vendor_rild_prop:s0 tclass=file permissive=0

Test: on device
Bug: 207711097
Change-Id: Ia28e1622746cca973ca66f437e0e655bbcaf7d66
Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-12-13 19:32:43 +00:00
Treehugger Robot
24a4d5ebc2 Merge "powerstats: introduce TpuDvfsStateResidencyDataProvider" into main 2023-12-13 07:10:57 +00:00
Treehugger Robot
b7aa1ee0fc Merge "dumpstate: add logbuffer support for display" into main 2023-12-13 07:09:39 +00:00
Ken Lin
71767237de dumpstate: add logbuffer support for display
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: I0c40fa9836851caa5b02528888153bd82e3a9d75
Signed-off-by: Ken Lin <lyenting@google.com>
2023-12-13 06:12:51 +00:00
Darren Hsu
de7a0d5160 powerstats: introduce TpuDvfsStateResidencyDataProvider
Bug: 310094590
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: Ib09e12bbfd45611e6f98822435b43752d53d7bb0
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-12 23:14:09 +08:00
Xin Li
175dd9b1b4 [automerger skipped] Merge Android 14 QPR1 am: be0f3dfda0 -s ours am: 9cb5714b49 -s ours am: 03536a87ef -s ours
am skip reason: Merged-In I96f8d8da1169f0a428112eb27f97d215282af92e with SHA-1 27366c3935 is already in history

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

Change-Id: I828a1c722f48148c60c60d6bb92487137b0bec07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:57:34 +00:00
Xin Li
03536a87ef [automerger skipped] Merge Android 14 QPR1 am: be0f3dfda0 -s ours am: 9cb5714b49 -s ours
am skip reason: Merged-In I96f8d8da1169f0a428112eb27f97d215282af92e with SHA-1 27366c3935 is already in history

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

Change-Id: Ic0e6e87a38388730a8abdaf6fb149b67c13306f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:02:21 +00:00
Xin Li
9cb5714b49 [automerger skipped] Merge Android 14 QPR1 am: be0f3dfda0 -s ours
am skip reason: Merged-In I96f8d8da1169f0a428112eb27f97d215282af92e with SHA-1 27366c3935 is already in history

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

Change-Id: I82d6965f59c0caf26a4b597bd667db8516a0ff4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 21:16:32 +00:00
Xin Li
be0f3dfda0 Merge Android 14 QPR1
Merged-In: I96f8d8da1169f0a428112eb27f97d215282af92e
Bug: 315507370
Change-Id: Ifb4599ca93cf47dcf3871b55aaab690770416f1c
2023-12-08 13:13:23 -08:00
Carter Hsu
37493030cc Merge "audio: allow hal_audio_default to allocate graphic buffer" into main 2023-12-08 06:16:06 +00:00
samou
a86cc5e1ce bm: support br_stats enabled flag
Bug: 315067183
Change-Id: I1c5c58e716e952a5e55493c129c2566c7f115da3
Signed-off-by: samou <samou@google.com>
2023-12-06 07:34:38 +00:00
Raja Ramachandran
cf1faabf1a [GABC][FATP] Added ProtoCalibGenerator to PRODUCT_PACKAGES_DEBUG
Bug: 284103045
Test: lunch <device-type>-userdebug && m
Change-Id: I4f7f512b6fa6bd5d9aabf998588dc9ad4f54c600
2023-12-06 11:18:50 +08:00
Jason Chiu
ec2a9a0c7a gs-common: bootctrl: integrate blowAR() for gs101 & zuma
Common bootcontrol use zuma version for the base, and blowAR()
can't be used by gs101. So we need to port ag/18743149 into
common bootcontrol.

Bug: 313615120
Change-Id: I25febde96a56279e6592a6d7740be9a2e385543b
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:48 +08:00
Jason Chiu
2a201a74c2 gs-common: bootctrl: check both properties in setActiveBootSlot
properties: ro.boot.bootdevice, ro.boot.boot_devices

Bug: 313092597
Change-Id: Ib158c2b2aadf87b2155c4c268264f06bc659b544
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:38 +08:00
Jason Chiu
f4d8fb7ad8 gs-common: move sepolicy related to bootctrl hal hidl 1.2 to gs-common
Bug: 265063384
Change-Id: I1981edd60a77e4c5aede8649c7b6bc5eacb676ee
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:21 +08:00
Jason Chiu
de91ea30a9 gs-common: create bootctrl_hidl_1.2.mk and include related modules
Bug: 265063384
Change-Id: I3895946309ff8ee7987c1b0ec0789e95a63f4eae
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:09 +08:00
Jason Chiu
5d247d17b4 gs-common: move bootctrl hal hidl 1.2 implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I7b770343096fd113f656c90428f30d80c9341744
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:13:59 +08:00
Carter Hsu
fd652ae423 audio: allow hal_audio_default to allocate graphic buffer
12-04 10:00:07.379   481   481 E SELinux : avc:  denied  { find } for interface=android.hardware.graphics.mapper::IMapper sid=u:r:hal_audio_default:s0 pid=13283 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_mapper_hwservice:s0 tclass=hwservice_manager permissive=0

12-04 10:00:07.409   480   480 E SELinux : avc:  denied  { find } for pid=13283 uid=1041 name=android.hardware.graphics.allocator.IAllocator/default scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_graphics_allocator_service:s0 tclass=service_manager permissive=0

Bug: 314850759
Test: verified by test build
Change-Id: Icb2ecd6d3096455244dc58b5aadf8c562cb02470
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-05 01:01:13 +00:00
Jason Chiu
1473a277b8 gs-common: move sepolicy related to bootctrl hal aidl to gs-common
Bug: 265063384
Change-Id: Id9e1f4f7bc9fc5754f7ebadb97f7443f1117e961
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:33 +08:00
Jason Chiu
c3102b06fc gs-common: create bootctrl_aidl.mk and include related modules
Bug: 265063384
Change-Id: I9362eb521616c899a14605081fdc10de2a1d5c16
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:29 +08:00
Jason Chiu
3303171462 gs-common: move bootctrl hal aidl implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I9b8318eee17e51f40577d7f4c6514703483b8eaa
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:22 +08:00