Commit graph

4796 commits

Author SHA1 Message Date
Kyle Tso
2371ea7920 usb: Select usb-service rc files based on kernel versions
The sysfs paths in the rc file differ across kernel versions or build
targets. Given that the path is static in the newer kernels (6.1+),
modify the paths for newer kernels in the original rc file and create
another rc file for older kernels (i.e kernel 5.10). Put the correct rc
file to the vendor partition based on kernel versions.

Bug: 317946158
Change-Id: Ie313664ee14c837bc9f33113e9341f6e06192401
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-02-03 01:14:43 +00:00
Kyle Tso
9bafd5f134 usb: Runtime search the i2c path
The paths of sysfs nodes are different on multiple build targets and are
also different between the old kernel (5.10) and newer kernel (6.1).
Since usb HAL code is shared by those targets and different kernel
versions, Runtime search the correct paths.

Bug: 317946158
Change-Id: I676455145232fd71db1578bb7a9801fed7bb327f
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-02-03 01:14:43 +00:00
Leon Scroggins III
7d2aafad34 gs201: Remove sysprop forcing renderengine to skiaglthreaded
This is already the default, so no need to set via sysprop. Moving
forward, we will set this using flags, unless a particular category
of device needs to override the flag.

Bug: 293371537
Test: NA
Change-Id: Id05d31e3c058d3bfe961d90e37a0c6992d823605
2024-02-02 14:29:25 +00:00
Xin Li
4418833d9b [automerger skipped] Merge Android 24Q1 Release (ab/11220357) am: 25172cefce -s ours
am skip reason: Merged-In Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c with SHA-1 8412883458 is already in history

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

Change-Id: I153247ab42c2a09ea35bd6d30bec9919508dca51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 02:03:34 +00:00
Joe Onorato
55257cbde8 remove build log spam
Test: m
Change-Id: I5bd60de66b31c7c5df43240161350d0f5d4da29f
2024-01-29 18:49:40 -08:00
Darren Hsu
ff196ef65a powerstats: expose display MRR state residency data provider
Bug: 317767775
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I72037cc9d5b35a47ae0173d52bbc57708a593936
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-29 05:59:52 +00:00
kierancyphus
0eb7d38545 liboemservice_proxy: Remove service defs
`Liboemservice_proxy` was originally included as a part of the build target for DMD, which meant that the binder aidl declaration had to be done on all devices that used DMD (all Lassen devices), even if they didn't use the service. `Liboemservice_proxy` has now been decoupled from DMD so it only needs to be included on our target devices now. This CL removes the outdated service definitions.

Test: Build gs101 and ensure it still builds.
Bug: 321867236
Change-Id: I7fb10e4013da59f42cff47da6d104deed9b4bb71
2024-01-29 05:58:40 +00:00
Robin Peng
c6d819462e Support system_dlkm modules.blocklist from kernel side
assign system_dlkm.modules.blocklist to BOARD_SYSTEM_KERNEL_MODULES_BLOCKLIST_FILE
located from kernel prebuilts folder

Bug: 267429528
Bug: 322457552
Change-Id: I912f1a8e0df12e4614c74b870921ca0b47b8383e
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-01-26 13:38:14 +00:00
Robin Peng
975145cc52 Assign system_dlkm.modules.load to BOARD_SYSTEM_KERNEL_MODULES_LOAD
- BOARD_SYSTEM_KERNEL_MODULES_LOAD is for GKI modules
- BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD should not contains GKI modules

Bug: 267429528
Bug: 322457552
Change-Id: Ib5da01f861a34edec07e2a958f153c876e5cef10
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-01-26 13:09:10 +00:00
Jerry Huang
c67150d613 gs201: update c2.android.av1-dav1d.decoder performance point
c2.android.av1-dav1d.decoder performance has been improved with CL
"C2SoftDav1dDec: Fix performance issues in frame parallel multi-threading"
More detail in b/315828433

Bug: 315828433
Test: run cts -m CtsMediaDecoderTestCases -a arm64-v8a -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1-dav1d.decoder
Change-Id: If4912322095ec112507c2e7f37e5bc1506d8c17a
2024-01-25 11:03:11 +00:00
Spade Lee
df3f348d3b dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: If12b04cca0b5f426709d4f0a8e4c6937d7abc7e2
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:50:25 +00:00
Wayne Lin
c1a79afe2d gps: add new certificate
Bug: 319329399
Bug: 319329247
Test: confirm certificate is included
Change-Id: Iafdbb7ad53da68c7f14fa94c1458f56016f70680
2024-01-19 06:36:07 +00:00
Kyle Tso
84e6e2b491 dumpstate: Fix wrong path for tcpm psy uevent
Bug: 320605646
Change-Id: I24ee174bdb5f9bb8127f5ae158c55a8738d852e3
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-01-18 15:12:23 +00:00
Xin Li
25172cefce Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c
Change-Id: I6d87c71b72050405370a19801b9e49ef46c5d3e0
2024-01-17 22:12:36 -08:00
Midas Chien
6a34636f89 display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: Id41872449035e16e7abc7f5111cdf95a7914f846
2024-01-17 07:53:09 +00:00
Utku Utkan
6afe88fbce Pregrant ACCESS_FINE_LOCATION as default permission to PCS on G2
Bug: 309676824
Test: m && flashall + pair & connect to remote device Wi-Fi AP
Change-Id: Ic40efe2d77b6d69ec97888fd421a5d0bda51860b
2024-01-12 16:51:42 +00:00
Mahesh Kallelil
9366c5117a Set owner as system for logbuffer_cpif
Setting the owner of /dev/logbuffer_cpif as system to allow the
dump_modem script to read the logs as part of bugreport

Test: Tested bugreport on device
Bug: 305600375
Change-Id: Ic7c64f942985596d9a5d919dfd3ca2127de881d0
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-12 06:36:47 +00:00
Devika Krishnadas
58dc835539 Revert^3 "Use graphics allocator 2"
4217a458ba

Reverting to comply with the Allocator VTS for 24Q1, do not merge to main.

Bug: 310046460
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: I322cdf9452a80e5da87f1808b324ac2e499fe9cd
2024-01-11 20:58:19 +00:00
Roy Luo
fc280685ca usb: dump flag value in the constructor
Dump flag value in the construtor for easier debugging. Feature flags
are not expected to change in runtime, dumping the value once should
be enough.

Bug: 296119135
Test: manual test
Change-Id: Ie5aca2dff23e59704fb306833cde0e592b9f430d
(cherry picked from commit 9164eae7cdee032381d8bf045fbbed33f62b00bf)
2024-01-10 11:47:02 +00:00
wenchangliu
59ed5b77f5 gs201: uses Codec2 HIDL 1.2 service
- Include mediacodec_samsung setting from gs-common
- Enable Codec2 HIDL 1.2 from BoardConfig and update
manifest hidl version for samsung.hardware.media.c2

Bug: 318793681
Test: run cts -m CtsMediaDecoderTestCases
Test: run cts -m CtsMediaPlayerTestCases
Test: run vts -m vts_treble_vintf_vendor_test
Change-Id: I1f947d2eb75bd4d75d9db1d39b0b083d32f8032f
2024-01-09 14:49:56 +00:00
Limon Mia
4305bf7cd0 Packed vendor log to bugreport for P22
Bug: 316071157
Test: enable vendor log and take bugreport
Change-Id: If9497810763d813e97a893d736bfbdeaf208c904
2024-01-03 02:11:04 +00:00
Roy Luo
5e14ba01be 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
2023-12-26 21:49:19 +00:00
Roy Luo
42020dc458 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
2023-12-22 03:05:06 +00:00
Jaegeuk Kim
a04e12983b 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:22:34 -08:00
Sandeep Dhavale
9ffdaf1c94 Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40 am: c4c2921aad
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I80d5838d50c521c42404e5ebdd128e2e3daf345b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:50:00 +00:00
Sandeep Dhavale
c4c2921aad Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: Ia736dc5ff4339bc96c2f6f0d60465529b688af20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:17:36 +00:00
Sandeep Dhavale
cc462adf40 Update health AIDL HAL to V3 am: 7bdd0af481
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I078b2af55d78f2fc7e3421b5299146fd4e8f2d92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 08:47:14 +00:00
Sandeep Dhavale
7bdd0af481 Update health AIDL HAL to V3
Bug: 316837586
Test: TH
Test: vts-tradefed run vts -m vts_treble_vintf_vendor_test
Change-Id: Ib4b240cd28df174257105db5bf6eae6accfae26a
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2023-12-18 23:36:44 -08:00
Jenny Ho
2542b04a24 Adjust bd_state to system for read
Bug: 316432531
Change-Id: I4964217a9c1782cc60011850ea111bd235b91ef6
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
Jenny Ho
7755cc6fde dump_power_gs201: lynx: add battery EEPROM dump path
Bug: 316820830
Change-Id: Ia5833d8980f97335b15e9ebb3a81f28b9019adc9
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-18 08:27:05 +00:00
kierancyphus
b9424d9c59 logmasklibrary: update version info and freeze api
The versions were originally not specified in the device manifest and
compatibility matrices. This is changed here to fix the broken vts
tests.

Bug: 310109332
Test: atest vts_treble_vintf_vendor_test -- --abi arm64-v8a
Change-Id: Ib2baeda6a3c81c701e6f813b6c88f561b158e674
2023-12-15 22:46:17 +00:00
Kuen-Han Tsai
8412883458 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: Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 08:06:12 +00:00
Hungyen Weng
6fa3ccb524 config: Use carrier config in ROM by default am: 8dbc173f2b am: 26e7f60254
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Ieb8260a470929777b3fad60cc6c66e480a9ffee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:45:01 +00:00
Hungyen Weng
26e7f60254 config: Use carrier config in ROM by default am: 8dbc173f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Icb4bdc42888cbd41d71387574affabc6607f4745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:10:55 +00:00
Poomarin Phloyphisut
2ae9b5a025 pixelstats: Fix access permission by adding total call count and update cca path sysfs
Related changes :
ag/24513108

Bug: 289857250
Test: Local test uploading atoms.
Change-Id: I584af796d03585ba3e27baeb8d006af2cab8c24d
2023-12-12 02:12:37 +00:00
Xin Li
75ebe9dcd3 [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours am: d372ef70ff -s ours am: 31e614038a -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

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

Change-Id: I5e8c5e70ff6b013d65d04ca84a1b6c92bd646bc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:57:54 +00:00
Xin Li
31e614038a [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours am: d372ef70ff -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

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

Change-Id: I2b868ab3e8999174c3415cb28f2ad7a72f0729b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:02:41 +00:00
Xin Li
d372ef70ff [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

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

Change-Id: I0a0102fc588322a247feaa366a600807de6f8aac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 21:16:51 +00:00
Hungyen Weng
8dbc173f2b config: Use carrier config in ROM by default
Bug: 314890118

Test: Flash ROM and confirm the carrier config follows the ROM.
Change-Id: Id0407802e2027397ca7a409345c51273b75079e7
2023-12-11 11:23:16 -08:00
Roy Luo
8d10e34fe0 Revert^2 "usb: introduce UsbDataSessionMonitor class"
a9ac5d5869

Bug: 297224564
Bug: 296119135
Change-Id: I0e15924ff133c8070c923f9072497bfda4370b5b
2023-12-09 00:22:03 +00:00
Xin Li
d815a6775f Merge Android 14 QPR1
Merged-In: I484f4446b915cad1347dd065f2539cc12c75beec
Bug: 315507370
Change-Id: Ib3fcff289774f28e147fe39738f3cf9908a571e4
2023-12-08 13:13:24 -08:00
Xin Li
c0c1b696b3 [automerger skipped] Merge UQ1A.231205.015 am: e8cf7e19a1 -s ours am: 351907775f -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 e4a81c0e8f is already in history

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

Change-Id: I994f6d90ddd48844383fa910ea69a754114e8b22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:51:04 +00:00
Xin Li
351907775f [automerger skipped] Merge UQ1A.231205.015 am: e8cf7e19a1 -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 e4a81c0e8f is already in history

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

Change-Id: I7025d5c373402976626128aa08909c7d0620e95e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:21:17 +00:00
Xin Li
e8cf7e19a1 Merge UQ1A.231205.015
Bug: 308969284
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I484f4446b915cad1347dd065f2539cc12c75beec
2023-12-07 15:47:12 -08:00
Jason Chiu
a509a4b067 gs201: use android.hardware.boot aidl interface
Bug: 314215524
Change-Id: Id6e4083674e8e42572952ea516eae244d4d5e8e7
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:39:05 +00:00
Jason Chiu
dc7845e89a gs201: update manifest HAL android.hardware.boot from hidl 1.2 to aidl
Bug: 314215524
Change-Id: I59988d13f9bedc3a2067f9ffc49d690048383d66
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:39:05 +00:00
Qian-Hao Huang
a9ac5d5869 Revert "usb: introduce UsbDataSessionMonitor class"
Revert submission 25524752-usbDataSessionMonitor

Reason for revert: Test for gs101/gs201 boot blocking issue (b/314904288)

Reverted changes: /q/submissionid:25524752-usbDataSessionMonitor

Change-Id: I0f762a9ba8345d2963ebfb2d50cb8a7460885221
2023-12-05 17:13:31 +00:00
Jason Chiu
ca538bb2b4 gs201: include bootctrl_hidl_1.2.mk from gs-common
Bug: 265063384
Change-Id: I2e00ddafe970dcda873da691bd64908f5ef1c0f9
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
2baf1d63eb gs201: move bootctrl service declaration to gs-common
Bug: 265063384
Change-Id: If265211d9b433eef789d0d68df1cae7cc369cfa1
2023-12-05 02:30:54 +00:00
Jason Chiu
fcab3aa32f gs201: move bootctrl hal to gs-common
Bug: 265063384
Change-Id: I11d07835c2785bdcc2a373befc1109bc12e4d11f
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00