Commit graph

4796 commits

Author SHA1 Message Date
Will McVicker
c13cd03ccf fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=/avb` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel that is signed using a test key.
This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Test: flash production userdebug build, then flash custom kernel.
Bug: 274825778
Change-Id: I11edf6e50411a05c6723f7523f3672a9a8116d7a
2023-10-18 19:46:02 +00:00
Bruno BELANYI
131a635fe9 Enable HDR shader priming in SurfaceFlinger
Bug: 295257834
Test: manual - check that HDR shaders are generated after applying
Change-Id: Icf67e64500aa8982dae0cf4a5540389da62cbf26
2023-10-18 12:44:02 +00:00
Xin Li
3e1b44b391 Merge 10952656
Merged-In: Iaf4ad9cdd9f6b2127547d2c116f966413011009b
Change-Id: I9dbfd58b177653ad8bf2e7bba4e1ac4f719be1c6
2023-10-17 10:06:29 -07:00
Jasmine Cha
cc794e617c audio: fix typo
Bug: 305838207
Test: build pass/ recording runtime tuning

Change-Id: I1d0bb63910b2b3e249809e89ff1408f28976855b
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-10-17 15:12:10 +08:00
guibing
7b8a531469 init: gs201: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
      -t com.google.android.perfwbs.pts.SchedulerTest
Change-Id: I94f17627f913e20323f9fe111a34fcc666f38a72
2023-10-13 17:18:24 +00:00
Minchan Kim
66608337b7 gs201: 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: I0a37a3bb9470884c0522bc471704031ccaba4247
Signed-off-by: Minchan Kim <minchan@google.com>
2023-10-11 20:44:43 -07:00
Xin Li
338aaa1572 [automerger skipped] Merge Android 14 am: 9cce39b482 -s ours am: 30817a576a -s ours am: c8a8b0a6f7 -s ours am: 2c97fadac6 -s ours am: c04e26a280 -s ours
am skip reason: Merged-In I6f85889399c989a9a65ab7e7178fd02f89e7847f with SHA-1 91a692dae3 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2777021

Change-Id: I3c630cbc0e48922d883ca2db7381fdd1b5f4836f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07 00:20:35 +00:00
Xin Li
c04e26a280 [automerger skipped] Merge Android 14 am: 9cce39b482 -s ours am: 30817a576a -s ours am: c8a8b0a6f7 -s ours am: 2c97fadac6 -s ours
am skip reason: Merged-In I6f85889399c989a9a65ab7e7178fd02f89e7847f with SHA-1 91a692dae3 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2777021

Change-Id: Iaf4ad9cdd9f6b2127547d2c116f966413011009b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 11:01:05 +00:00
Xin Li
2c97fadac6 [automerger skipped] Merge Android 14 am: 9cce39b482 -s ours am: 30817a576a -s ours am: c8a8b0a6f7 -s ours
am skip reason: Merged-In I6f85889399c989a9a65ab7e7178fd02f89e7847f with SHA-1 91a692dae3 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2777021

Change-Id: I942a135279b6108d56f5b471649d51a8ad46273e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 09:51:15 +00:00
Xin Li
c8a8b0a6f7 [automerger skipped] Merge Android 14 am: 9cce39b482 -s ours am: 30817a576a -s ours
am skip reason: Merged-In I6f85889399c989a9a65ab7e7178fd02f89e7847f with SHA-1 91a692dae3 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2777021

Change-Id: I7c7af286c7b76518930fcd7266f4454da74ea735
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 08:59:35 +00:00
Xin Li
30817a576a [automerger skipped] Merge Android 14 am: 9cce39b482 -s ours
am skip reason: Merged-In I6f85889399c989a9a65ab7e7178fd02f89e7847f with SHA-1 91a692dae3 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2777021

Change-Id: I3eda5ba99136a9727bd622eedb88c5bf48982e97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 07:52:34 +00:00
Roy Luo
26abdf4ee2 Usb: capture and upload Suez metric VendorUsbDataSessionEvent
Upload metrics for the last data session that just ends upon
data role changes. The change is purely metric collection and
does not change any business logic.
This is a direct CP from ag/24816727

Bug: 297224564
Test: Trigger metric upload for both host and device mode and
      verify it by statsd_testdrive
Change-Id: I823ae8712b7914cfc7f6c6379acb3749d13c0974
(cherry picked from commit ccb35c81ff0bbfb013136bae7a572280b196bd1a)
2023-10-05 23:50:03 +00:00
Xin Li
9cce39b482 Merge Android 14
Bug: 298295554
Merged-In: I6f85889399c989a9a65ab7e7178fd02f89e7847f
Change-Id: Iba298169eab2a1765b463753769afdc52a3d8c92
2023-10-05 16:24:22 -07:00
Arthur Hung
d6af0eeb28 Add default allow list for VRR small dirty detection
The feature will be enabled by the feature flag

Bug: 283055450
Test: Build
Change-Id: Ic774b550f897e349cce0804851d4aca1ad38ee02
2023-10-04 08:06:14 +00:00
Roy Luo
99c4d0f276 usb: upgrade stats AIDL to v2
Upgrade stats AIDL to v2 following pixelstats lib.

Bug: 297224564
Test: Build
Change-Id: Ib40d1366402f06feeb853f3d6141f1595a1113ce
2023-10-03 20:49:32 +00:00
Midas Chien
6116a993a4 display: allow hwcomposer to access DRM module debug file
Change the owner and group of the DRM module debug file to system to
grant permission for hwcomposer.

Bug: 301599195
Test: check HWC can access it
Change-Id: Ife250a1a4984f94cc52bc1b3e52deeffbc5b5410
2023-10-02 01:52:28 +00:00
Snehal
076b774f9e Add trusty code coverage controller daemon
Bug: 289523068

Change-Id: Ia385a7d4173f72cfefcd69c61455ea89b6d1e879
2023-09-29 09:13:25 +00:00
Maciej Żenczykowski
050b892544 OWNERS: master -> main
Change-Id: Ie3e910539cca4bb85f00cc9a67971b95d6f5e919
2023-09-28 00:30:07 +00:00
Android Build Coastguard Worker
2097946299 Snap for 10865315 from ac76fcf025 to udc-qpr1-release
Change-Id: I1ccf0f7464ea39906a2a70df04e458f59a5f3800
2023-09-26 23:02:36 +00:00
Ian Elliott
fc6c1c9837 Revert "gs201: Enable SkiaVk as RenderEngine backend" am: ac76fcf025 am: 8aa21312f5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24864821

Change-Id: I829c2f4e38b69a33ffab2fe3644f77c88e8334bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 19:16:08 +00:00
Ian Elliott
8aa21312f5 Revert "gs201: Enable SkiaVk as RenderEngine backend" am: ac76fcf025
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24864821

Change-Id: I75ee999893328ad08b0921fdb6d1194995092913
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 18:19:03 +00:00
Ian Elliott
ac76fcf025 Revert "gs201: Enable SkiaVk as RenderEngine backend"
This reverts commit db1a72ccdb.

Reason for revert: Increased jank reported, especially on the Pixel tablet

Bug: 301846142
Bug: 298975477
Change-Id: I81726fdd164b48dc72756e35e4dadd755909cb91
2023-09-26 17:41:07 +00:00
Android Build Coastguard Worker
defac5849b Snap for 10850711 from cd00df2aeb to udc-qpr1-release
Change-Id: I80c827da0b160dcc3344de84b7c077b6f828f47b
2023-09-23 01:07:03 +00:00
Avichal Rakesh
537da0f60c usb.rc: Advertise 360p and 480p support through UVC am: cd00df2aeb am: bad05cd4d1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24804762

Change-Id: I51f038dabfdfccc55cfdba5cfff358e28984b9ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 18:09:53 +00:00
Avichal Rakesh
bad05cd4d1 usb.rc: Advertise 360p and 480p support through UVC am: cd00df2aeb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24804762

Change-Id: I6451d761b9a13af6c049551855f30448d798ad73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 17:14:07 +00:00
Avichal Rakesh
cd00df2aeb usb.rc: Advertise 360p and 480p support through UVC
Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.

Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: I0bb6e2073554de4e5ce8fe472dae6a77e69aeb54
2023-09-21 21:00:21 -07:00
Android Build Coastguard Worker
868046d0a0 Snap for 10844344 from f233bec505 to udc-qpr1-release
Change-Id: I3fc1a7a34428da81d46ae558b75231fb505b20fa
2023-09-21 23:02:27 +00:00
Kuen-Han Tsai
4156589ff6 Usb.cpp: Fix typos when unable to disable USB data am: f233bec505 am: 503f92156e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24792093

Change-Id: Ie4076b2db9569246c06c0dc29ff036f674f02885
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 11:31:00 +00:00
Kuen-Han Tsai
503f92156e Usb.cpp: Fix typos when unable to disable USB data am: f233bec505
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24792093

Change-Id: I0c93426f0162a87935c6e1a94dc4b3598edf8a59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 10:34:30 +00:00
Kuen-Han Tsai
f233bec505 Usb.cpp: Fix typos when unable to disable USB data
If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display
the message of "Not able to turn off usb connection notification".

Test: refactoring CL. Existing tests still pass.
Bug: 301016122
Change-Id: I8e0f485e74d10a0154e4cd78af9f5ef5a22d328f
2023-09-21 09:54:59 +00:00
Klines Jiang
0f5bf2926d [automerger skipped] [SELinux] Add gyotaku_app doamin to Pixel 2022. am: 45b53c05d0 am: b334db6588 -s ours
am skip reason: Merged-In I39a8aea20281f83f90657306b8de0233054cb60a with SHA-1 d5151d65db is already in history

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

Change-Id: I971d8d4cbce92c7f41c1327f81f5ffe10627b596
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 06:08:48 +00:00
Klines Jiang
b334db6588 [SELinux] Add gyotaku_app doamin to Pixel 2022. am: 45b53c05d0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24741373

Change-Id: I28655c5758c84b002de6d5bc5dc5fe0d69322bc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 05:14:22 +00:00
Android Build Coastguard Worker
b5d44d4fce Snap for 10838116 from d8e2a02998 to udc-qpr1-release
Change-Id: Ib3219fbb645a6bc8311bd4a546f47399d43d6078
2023-09-20 23:03:03 +00:00
Amit Sunil Dhamne
6abde127eb UsbGadget: Update SDP enum timeout when gadget is pulled up am: d8e2a02998 am: 0cee151356
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24740928

Change-Id: I52e0001e36e4099cce263b8ef531cc190f07d222
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:37:03 +00:00
Amit Sunil Dhamne
99a86975cd usb: Modify sdp enumeration timeout value in charger mode am: 3644ca07e8 am: 3b48e7e17b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24740939

Change-Id: If5be8a5aad91bde69ca12a88f0d79f906cffef08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:33:26 +00:00
Klines Jiang
45b53c05d0 [SELinux] Add gyotaku_app doamin to Pixel 2022.
Bug: 296836878

Test: Local build and tested pass.
Change-Id: I39a8aea20281f83f90657306b8de0233054cb60a
Merged-In: I39a8aea20281f83f90657306b8de0233054cb60a
2023-09-20 18:03:39 +00:00
Amit Sunil Dhamne
0cee151356 UsbGadget: Update SDP enum timeout when gadget is pulled up am: d8e2a02998
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24740928

Change-Id: I407a8d7bf8b84ef1ede8640d59ca98a616382426
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 17:37:57 +00:00
Amit Sunil Dhamne
3b48e7e17b usb: Modify sdp enumeration timeout value in charger mode am: 3644ca07e8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24740939

Change-Id: I75e4b679aabffd9203988321cf8a362ceb9d797b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 17:37:07 +00:00
Amit Sunil Dhamne
d8e2a02998 UsbGadget: Update SDP enum timeout when gadget is pulled up
Indicate to the kernel that the usb gadget is pulled up
by writing to `update_sdp_enum_timeout` sysfs node. Write
to this node will inform the kernel that it can lower the SDP
timeout alarm value which is used to detect an SDP port
vs a DCP.

Bug:275687235
Test: Check `update_sdp_enum_timeout` is written into after usb
gadget is pulled up. Verify that the alarm timeout lowers.

Change-Id: Id3ae7e7a20b236cec6604414a7f81860e868bdd0
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2023-09-20 16:24:35 +00:00
Amit Sunil Dhamne
3644ca07e8 usb: Modify sdp enumeration timeout value in charger mode
Write to /sys/class/typec/port<...>/device/update_sdp_enum_timeout
to reduce SDP enumeration timeout value when device is in charger
mode. This will enable faster detection of a DCP port.

Test: Validate (in charger mode) that the sysfs attribute is 1
(meaning lower sdp timeout value is being used). Read dmesg to
see print showing timeout value is 5000ms.

Bug: 275687235
Change-Id: I1bc872911d7f1eab26e62fe6f12fba05608e0f83
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
2023-09-20 16:23:49 +00:00
Android Build Coastguard Worker
b06c4d69cf Snap for 10832001 from c7042d8b23 to udc-qpr1-release
Change-Id: I69bdc532bac2b50c64092ea414d4382705489016
2023-09-19 23:03:02 +00:00
Qais Yousef
0988550750 init.gs201.rc: Disable util-awareness am: c7042d8b23 am: cd089a7f75
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24705002

Change-Id: I60ca01041f544c147d8a2074d9c78979dc996729
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 19:32:20 +00:00
Qais Yousef
cd089a7f75 init.gs201.rc: Disable util-awareness am: c7042d8b23
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24705002

Change-Id: I691a8f08b368fff7c8e245d38adf65fe5bc2ed09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 18:37:57 +00:00
Qais Yousef
c7042d8b23 init.gs201.rc: Disable util-awareness
There are some regressions reports. Disable them completely for now.

Bug: 297496375
Change-Id: I6478931d73145a15471982738f0ff93eae5f2f07
Signed-off-by: Qais Yousef <qyousef@google.com>
2023-09-19 17:46:01 +00:00
Wilson Wu
051ed214b9 Disable variable refresh rate when typing on gs201 am: e5cc14a479 am: f22cbcd7f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24798410

Change-Id: Ie567e5b05239c35265463ff30db89bfad7e8b8dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 11:32:12 +00:00
Wilson Wu
f22cbcd7f3 Disable variable refresh rate when typing on gs201 am: e5cc14a479
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24798410

Change-Id: I6a572a6501359661d7c2dd72d39506879540d8ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 10:37:02 +00:00
Wilson Wu
e5cc14a479 Disable variable refresh rate when typing on gs201
Turn off config_variableRefreshRateTypingSupported on gs201.

Bug: 299966467
Test: presubmit
Change-Id: Idb98959749f365b7ed5f192a9f650b70a3840ae0
2023-09-19 09:22:02 +00:00
Leo Liou
9082189b43 gs201: ffu: add lifeC and activated date as condition am: 1fd5db8246 am: aaa1b92975
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24767768

Change-Id: If7b931dd8c179550b723a0ae710a0970ca0de20e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 05:22:28 +00:00
Leo Liou
aaa1b92975 gs201: ffu: add lifeC and activated date as condition am: 1fd5db8246
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24767768

Change-Id: I87c06e1ef212588193a6de47625b8c54f4a32bd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 04:27:42 +00:00
Leo Liou
1fd5db8246 gs201: ffu: add lifeC and activated date as condition
Limit the following devices to accept ffu upgrade:
- LifeC time < 10%
- Activated date < 1 year

Bug: 273305600
Test: run ffu process at local
Change-Id: I9cc9298eeb7cd32f02a9577efb71bda0737f284d
Signed-off-by: Leo Liou <leoliou@google.com>
2023-09-19 03:24:09 +00:00