Commit graph

4988 commits

Author SHA1 Message Date
Robert Luo
c40d53b69b [Pixel RR] Apply reviewed default permissions
Pregrantting below permission(s):
CALL_PHONE

Flag: EXEMPT add pregranted permission in b/371912006
Bug: 336203918
Test: presubmit
Change-Id: I6ef16e5571706cd865d9083ebc363a181473eea9
2024-10-16 08:42:30 +00:00
Robin Hsu
0bfc85475d gs201: Disable kmem cgroup accounting
Disable cgroup kernel memory accounting to avoid unnecessary overhead

similar change ag/22891292 but now back-port to gs201

Flag: NONE kernel config
Bug: 373232814
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
          -t com.google.android.perfwbs.pts.KernelModuleTest
          and alternative tests on forrest.

Change-Id: I306b3e608655dc9e5f868a1f1a79e60e5b9b40fd
2024-10-14 03:01:04 +00:00
Kuen-Han Tsai
f22f21191b Usb: Add status check to prevent NPE
This patch prevents a Null Pointer Exception in
queryMoistureDetectionStatus() when getPortStatusHelper() fails to open
the /sys/class/typec file. The failure results in an empty
currentPortStatus vector, causing the NPE when accessing its first
element.

Bug: 361097811
Flag: EXEMPT bugfix
Test: NPE does not occur when getPortStatusHelper() fails
Change-Id: I61c9f7647aafca28b777e53f170764ddd02c060f
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-10-09 15:15:56 +08:00
Jim Tang
617251a80a Relocate modem_svc_sit to proper places
Flag: EXEMPT refactor
Bug: 358485346
Test: m modem_svc_sit
Change-Id: Ib47ac55c504eafd32340e66a7286be48f2ea7b48
2024-10-07 08:45:10 +00:00
Brian Norris
3ab1329966 gs201: Copy insmod configs from kernel to vendor_dlkm
We're going to transition to using the kernel copy, not the HLOS copy.

Bug: 369686096
Test: build, flash, check /vendor_dlkm/etc/ (may or may not exist,
      depending on kernel contents)
Flag: build.RELEASE_KERNEL_CHEETAH_DIR
Flag: build.RELEASE_KERNEL_FELIX_DIR
Flag: build.RELEASE_KERNEL_LYNX_DIR
Flag: build.RELEASE_KERNEL_PANTHER_DIR
Flag: build.RELEASE_KERNEL_TANGORPRO_DIR
Change-Id: I4c4350b8f77017902b75c8c077fcefbff6012d83
2024-10-04 18:37:23 +00:00
Ocean Chen
2fef0def24 gs201: Remove unused BFQ I/O scheduler configuration
The I/O scheduler was changed to mq-deadline in ag/29073420,
making the previous BFQ configuration obsolete.

This commit removes the following lines which no longer
have any effect.

Bug: 186902601
Test: forrest build
Change-Id: I5d662e9762809f2d0598a7e980ef0468ac8aff38
2024-10-04 04:18:42 +00:00
Jimmy Shiu
28382ce693 [task_profiles]Add MaxPerformance and PreferIdle to InputPolicy profile.
Flag: com.android.input.flags.enable_input_policy_profile
Bug: 369574417
Change-Id: Ia79a88addeddbada1d92d7623a7f9b3e7764c016
2024-10-02 03:13:49 +00:00
Nishant Panwar
169b08ddfc Set dexpreopt and dexopt filter for SystemUI
Bug: 271887637
Test: Built and flashed on local device
Flag: build.RELEASE_SYSTEMUI_USE_SPEED_PROFILE
Change-Id: I49900d45a60f9f4b3bc15a4027751be30f63e272
2024-09-30 04:40:41 +00:00
Zhengyuan Cui
991aeb89c6 Change any use case of folder name apis to tachyon_apis to avoid api review
Bug: 364390678

Change-Id: I1e8b92c694a0f5991c51a7ade623d5066a29eccf
Flag: EXEMPT refactor
2024-09-26 21:00:49 +00:00
Les Lee
14885d60f7 wifi: Upgrade vendor hal version
Bug: 362355566
Flag: EXEMPT HAL interface change
Test: Build
Change-Id: Ifd0045beb52d2e88bb3b5526472f2864de91ded8
2024-09-25 21:36:03 +00:00
Kyle Tso
44855fc359 dumpstate: Modify dumpTcpc path and content
Ported from I248fb250b94cbd4078e7f3c44da83f62002b53fb with some
modifications.

Bug: 369474465
Test: checked the content in dumpstate
Flag: EXEMPT bugfix
Change-Id: I405c15db38f084017599c465e8c3d49e0e1b2f3e
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-09-25 11:51:07 +08:00
Kyle Tso
24d312d190 dumpstate: Dump logbuffer_pogo_transport
Bug: 336665682
Test: check dumpstate in bugreport
Flag: EXEMPT bugfix
Change-Id: I2be3638efad870e83c3f36bb759d3b3be50c0f45
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-09-24 09:11:33 +00:00
Krzysztof Kosiński
0caaaaedd7 Delete TARGET_CPU_VARIANT_RUNTIME. am: b22dab1117 am: e5d3affa5b
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3272802

Change-Id: I7907de98ca4a7b865cec807dfb33d50a9b3898af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-20 21:26:13 +00:00
Krzysztof Kosiński
e5d3affa5b Delete TARGET_CPU_VARIANT_RUNTIME. am: b22dab1117
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3272802

Change-Id: I258a124649dd33a8828438e46308bdcbd50036fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-20 20:43:52 +00:00
Krzysztof Kosiński
b22dab1117 Delete TARGET_CPU_VARIANT_RUNTIME.
This variable only does something when it differs from
TARGET_CPU_VARIANT. Setting it to the same values doesn't do
anything.

Bug: 368635026
Test: presubmit
Change-Id: I15a3b367df0a5be2de23f535f9f9df0866dd306a
2024-09-20 19:19:24 +00:00
Jerry Chang
f0733782af Add input event profile to mitigate input latency of input threads
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9
2024-09-18 12:09:37 +00:00
Ryan Prichard
6328876ea2 gs201: avoid vector<const T> am: c92b81622d am: d1604426b8
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3265798

Change-Id: I58e87d471346b565d1e5b1bcfc77dcb7673c0c22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-16 20:13:39 +00:00
Ryan Prichard
d1604426b8 gs201: avoid vector<const T> am: c92b81622d
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3265798

Change-Id: I0a4ac942083232e6065ce746a1d26b5f0c5dee01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-16 19:53:10 +00:00
Ryan Prichard
c92b81622d gs201: avoid vector<const T>
std::vector<const T> uses std::allocator<const T>, which is an
undocumented libc++ extension to the C++ standard library. The extension
was removed in llvm.org/PR96319. Use an ordinary non-const T instead.

Bug: http://b/349681543
Test: m android.hardware.power.stats-impl.gs201
Flag: EXEMPT, refactor to fix build failure
Change-Id: Ic355f68c4ebb09e204ea3fb4822940aad07ccd7b
2024-09-12 13:18:03 -07:00
Treehugger Robot
7cb22ac5f6 Merge "Delete PRODUCT_FULL_TREBLE_OVERRIDE." into main am: 5d21fda779 am: 933ef530c9
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3258674

Change-Id: I78b26aa9cd31ef542ad14526f678a7653cdb3ff7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-09 03:01:06 +00:00
Treehugger Robot
933ef530c9 Merge "Delete PRODUCT_FULL_TREBLE_OVERRIDE." into main am: 5d21fda779
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3258674

Change-Id: Ib802235d264813831cac53cc25cd02841c811ca1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-09 02:51:06 +00:00
Treehugger Robot
5d21fda779 Merge "Delete PRODUCT_FULL_TREBLE_OVERRIDE." into main 2024-09-09 02:46:24 +00:00
Xin Li
03644ec631 [automerger skipped] Merge 24Q3 to AOSP main am: 1096924af1 -s ours am: 58665d84e8 -s ours
am skip reason: Merged-In Ib3cc0c6ad576e7cda26b7f50cdc61d52e6349c78 with SHA-1 cb51a640f4 is already in history

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

Change-Id: Iace0355cab3fa84d65aa835aecb5cc2c7b528d50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-07 03:40:51 +00:00
Xin Li
58665d84e8 [automerger skipped] Merge 24Q3 to AOSP main am: 1096924af1 -s ours
am skip reason: Merged-In Ib3cc0c6ad576e7cda26b7f50cdc61d52e6349c78 with SHA-1 cb51a640f4 is already in history

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

Change-Id: Ifaed61f09391c67f23f8bf0d4a15bdf2e9177644
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-07 03:14:09 +00:00
Krzysztof Kosiński
2a814d7aab Delete PRODUCT_FULL_TREBLE_OVERRIDE.
This variable doesn't do anything for devices launching with
API level 26 or later, and the initial gs201 devices (Pixel 7)
launched with API level 33.

Bug: 307369186
Test: presubmit
Flag: EXEMPT trivial build cleanup
Change-Id: I35bdec5d9e21abb25f12c0ad9681d3dee01aee67
2024-09-06 22:27:24 +00:00
Xin Li
1096924af1 Merge 24Q3 to AOSP main
Bug: 357762254
Merged-In: Ib3cc0c6ad576e7cda26b7f50cdc61d52e6349c78
Change-Id: Icc7a517d0cb2b6688ecc25d5af3a3c11e16e7c09
2024-09-05 17:02:37 -07:00
samou
8d194cb38c bcl: remove charging debugfs data logging
Flag: EXEMPT refactor
Bug: 362322242
Change-Id: Ibdd3df9c7a2dfeab36a43d32dc092fefdec9d77d
Signed-off-by: samou <samou@google.com>
2024-09-05 10:02:21 +00:00
Ocean Chen
a664dadaa8 Switch from the BFQ to the mq-deadline I/O scheduler
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the
boot time is shorter with the mq-deadline I/O scheduler. It only changes the scheduler on new kernel.

Bug: 186902601
Test: forrest build

Change-Id: I5d336b3f146ca673c83c03304773d0ccf4c01e77
Signed-off-by: Ocean Chen <oceanchen@google.com>
2024-09-05 06:37:21 +00:00
carmenyip
541efd2ce2 extended_log: update directory permissions for gs201
Bug: 336638376

Test: $ cd data/vendor/radio
$ ls -la
Flag: NONE changing directory permissions only

Change-Id: I972634ab85eb8416b43183712394c27d4d0340ee
2024-09-05 04:02:07 +00:00
Charlie Yang
fcc8f3875f Revert "Add soong config use_google_qns in device/google/gs201/d..."
Revert submission 28947244-grilservice

Reason for revert: b/363911795

Reverted changes: /q/submissionid:28947244-grilservice

Change-Id: I81e58d0f1190a592f388ab1031275e6f2656217b
2024-09-04 11:03:21 +00:00
kellyhung
646cc8fdcf Add soong config use_google_qns in device/google/gs201/device.mk
Bug: 360757079
Test: lunch r11-trunk_staging-userdebug; m grilservice
Flag: EXEMPT bugfix

Change-Id: Ia10d6d73f7349b6a5de5046236c8498f54962036
2024-08-30 07:22:52 +00:00
Ankit Goyal
fe86e10394 Delete mapper4 manifest
Bug: 362183626
Flag: EXEMPT manifest update
Test: Boot to home on shiba
Change-Id: I828ee34e1de2fb0ac228688517d4be89e43247d1
2024-08-28 22:54:00 -07:00
Roy Luo
f13115f44c usb: correct sys.usb.controller sysprop
system/core/init/init.cpp SetUsbController picks the first udc device if
there're multiple udc devices present on the system to populate
sys.usb.controller system property.
CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a
dummy udc device named "dummy_udc.0". Depends on timing, the dummy
device might be picked up by the init process and incorrectly populate
sys.usb.controller.
This issue only applies to devices on kernel-5.10 GKI, the WAR is to
overwrite the sysprop if it's incorrectly populated by the dummy udc.

Bug: 333778731
Test: tested on Cheetah
Flag: EXEMPT bugfix
Change-Id: I7555dda7f0bb436200ef7cd8a46b785232187cfd
2024-08-27 23:39:24 +00:00
Elliott Hughes
6afa4bc6d1 The "messaging" package is being removed. am: 69bd3c07ab am: 053f552fae
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3241482

Change-Id: I4ef97d4b9a979aa5e242f34d7bf4b459c0b730b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-27 16:15:47 +00:00
Elliott Hughes
053f552fae The "messaging" package is being removed. am: 69bd3c07ab
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3241482

Change-Id: Iab4c5f6f9b720ae5147025644b22766e2291fe7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-27 15:39:41 +00:00
Elliott Hughes
69bd3c07ab The "messaging" package is being removed.
Change-Id: Ibbd134ec0f695ac9fbdb2831e81a6502729c96db
2024-08-26 16:03:18 +00:00
samou
11938381ec Migrate dump_power_gs201.sh contents into cpp for improved speed
Flag: EXEMPT refactor
Bug: 349935208
Test: ./dump_power
Change-Id: I7799487b0f88cf59cb46f050d87528d535f7e788
Signed-off-by: samou <samou@google.com>
2024-08-23 10:58:20 +00:00
samou
c62a6b812d Remove BCL from thermal
Flag: EXEMPT tuning changes
Bug: 349935208
Change-Id: I43b37dc596c799927868c0c546d30ed8e51c17c5
Signed-off-by: samou <samou@google.com>
2024-08-12 12:32:21 +00:00
Cyan_Hsieh
44ae6ffad2 Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 8c9f1f1663 am: 874a2b07cb
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3214297

Change-Id: Ie37ab68bca27259034f34d009463111caaeb2f36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 11:07:34 +00:00
Cyan_Hsieh
874a2b07cb Add FSTAB_OWNERS and update OWNERS to include Android.bp am: 8c9f1f1663
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3214297

Change-Id: Ie0461f7ba8bbaf4f747fa9b82ec4bc567af38d9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 10:49:03 +00:00
Cyan_Hsieh
8c9f1f1663 Add FSTAB_OWNERS and update OWNERS to include Android.bp
Flag: EXEMPT only changing OWNERS
Bug: 357036384
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b3b56408e146d323e55767be770a5b37cb1c298f)
Merged-In: I2a5813f8436dd2d36b35b790aaebc00df13c5196
Change-Id: I2a5813f8436dd2d36b35b790aaebc00df13c5196
2024-08-09 08:33:39 +00:00
Kuen-Han Tsai
0c1f69415f Limit hub tuning when enable_hub is enabled
Some external hubs have the same VID and PID as the internal hub,
causing unintended hub tuning and compatibility issues.

This patch restricts hub tuning to only the internal hub located on
bus 1, port 1 when enable_hub is set to 1.

Bug: 353650207
Test: Verified an external GL852G speakerphone dock works when docked.
Test: adb shell cmd android.hardware.usb.IUsb/default hub-vendor-cmd
<hex wValue> <hex wIndex>
Flag: EXEMPT bugfix
Change-Id: If2cfe6684e4f5fafaab34bf7a4e4b4cd464d6575
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-08-07 12:27:59 +08:00
George Lee
fa514f6781 init: gs201: Mask VDROOP1 for GPU CLK Divider
Bug: 337613046
Test: Confirm divider is configured
Flag: EXEMPT bugfix
Change-Id: Id143431a6d63c4915ab0c0e97207eca1be4ea171
Signed-off-by: George Lee <geolee@google.com>
2024-08-05 15:06:01 +00:00
Chris Lu
0386e9b22f Upgrade IDisplay to V13
Bug: 315496839
Test: build pass
Change-Id: I9bf92af08fd21d834ca538d79bd906ca9e4fab2a
2024-08-02 08:08:26 +00:00
Qais Yousef
6566e47574 BoardConfig-common.mk: Enable Lazy RCU
Bug: 340860065
Flag: EXEMPT this is a boot time parameter
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Id8ce33fac746f3a873c69461f7f9054b274603d9
2024-07-30 18:04:04 +00:00
Herbert Xue
01383d9603 Add soong config variable for PowerAnomalySitril
Set the variable is true when USE_LASSEN_OEMHOOK is true and
BOARD_WITHOUT_RADIO is not true.

Flag: EXEMPT bugfix
Bug: 325857852
Test: m ConnectivityMonitor
Change-Id: I10d1b9b198db960d1d6af0a69044907c8043c4e6
2024-07-26 02:57:15 +00:00
Robert Luo
06118f1b53 [Pixel RR] Apply reviewed default permissions
Pregrantting below permissions:
READ_CONTACTS
WRITE_CONTACTS
READ_CALL_LOG

Flag: EXEMPT add pregranted permission in b/337725984, b/337802920
Bug: 337725984, 337802920
Test: presubmit
Change-Id: I611bedf6f05acc3f80ccc021fb534869e131dba1
2024-07-19 06:25:00 +00:00
Jerry Huang
338008193e gs201: video: change to use c2 "default" AIDL service
Bug: 322920559
Change-Id: Ia2e6cac052bc0ee417e179f61804eada9ae87bf5
2024-07-18 07:08:49 +00:00
Jörg Wagner
9bbd539930 Increase the max core index for protected TLS allocations to 4
Pixel has removed unnecessary allocation padding, and we now pass
dEQP with a maximum physical core index setting of 4, which allows
the driver to utilize 4 GPU cores (1111b) in the extreme tests.

Bug: 221255664
Test: L10 atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.protected_memory.*'
Flag: EXEMPT bugfix
Change-Id: Iee15ed0d929f648ad45f7d5fe708e8cb14296e6f
2024-07-11 12:07:49 +00:00
Krzysztof Kosiński
a1ad16fd77 Delete PDX sockets for legacy VR services.
Remove irrelevant copy and paste content. None of the gs201
devices ever included these services and these sockets are
not doing anything.

Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I60698b026c2e456296943adc8c2a2f03fe3dd867
2024-07-11 04:41:53 +00:00