Commit graph

5035 commits

Author SHA1 Message Date
Yi-Yo Chiang
d1e8b04c5d init-display-sh: Allow writing to kmsg am: 840c1c9e2f am: 51bcffcce8
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3442472

Change-Id: I50a3ad723fdd55964c69d7f70b4f5a449865d04c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20 21:43:41 -08:00
Yi-Yo Chiang
51bcffcce8 init-display-sh: Allow writing to kmsg am: 840c1c9e2f
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3442472

Change-Id: I87201721e71343f2a7a09edbc2748127e15539cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20 21:19:12 -08:00
Piotr Klasa
987a1e0a99 move common init perf settings to gs_common
Test: Verified if all values ​​of transferred settings are as they should be after rebooting the device, and and checked that there are no new selinux errors for hal_power_default
Bug: 335874870
Flag: EXEMPT not supported by this component yet

Change-Id: I4b5ac2fb09533a87cf8dda9f2364d1fe8ab9acc9
2025-01-16 01:38:28 -08:00
Hsiu-Chang Chen
4dd8c64713 Enable WIFI_FEATURE_HOSTAPD_11AX
In the past, the WIFI_FEATURE_HOSTAPD_11AX flag was ineffective.
Because hostapd takes the value of CONFIG_IEEE80211AX to enable
11ax mode on hotspot, the unset flag WIFI_FEATURE_HOSTAPD_11AX
went unnoticed.

However, after wpa_supplicant migrated from Android.mk to Android.bp,
it correctly evaluates WIFI_FEATURE_HOSTAPD_11AX to determine 11ax hotspot support. We need to set WIFI_FEATURE_HOSTAPD_11AX as true to
re-enable the 11ax mode on hotspot.

Bug: 389824755
Test: Hotspot is enabled in 11ax mode
Flag: EXEMPT bugfix
Change-Id: I635575b77a5f149605eaeb22046fbabe71955952
2025-01-13 23:26:45 -08:00
Spade Lee
e2813a4407 pixelstats: gs201: remove firmware update path
Bug: 386187651
Test: local test pass
Flag: EXEMPT refactor
Change-Id: I725b2c87cfff8b81915fa094678f7a56669cf095
Signed-off-by: Spade Lee <spadelee@google.com>
2025-01-09 12:16:04 -08:00
Yi-Yo Chiang
840c1c9e2f init-display-sh: Allow writing to kmsg
modprobe would log errors to /dev/kmsg, need to explicit allow this.

Bug: 388717752
Test: DeviceBootTest#SELinuxUncheckedDenialBootTest
Change-Id: I142a20b0af9008956ad2325caef70e85b1463f41
2025-01-09 18:42:20 +08:00
Nelson Li
ad503a0216 To ensure that gs201's init_dpm.sh is only built for gs201 devices.
After confirmation, devices where `USES_DEVICE_GOOGLE_GS201` is true
will ultimately include device/google/gs201/device.mk. Therefore,
setting PRODUCT_SOONG_NAMESPACES in this file can prevent misuse by
other devices.

Flag: EXEMPT refactor

Bug: 385999805
Test: lunch gs201 products; m -j init_dpm.sh
Change-Id: Ic4283242786222bbf734cea7d91f6d230e12b6f6
2025-01-08 19:37:51 -08:00
T.J. Mercier
912edf74cd Revert "Disable memcg"
This reverts commit e00a9b2099.

This is being temporarily reverted as part of a data-collection
experiment. We expect to reapply this before the final 25Q2 TOT snap.

Bug: 384577842
Flag: NONE Beta experiment: go/android-memcgv2-exp
Change-Id: I6b40e7c0e7de45011659a6d55f078904e569e5f3
2025-01-08 08:30:05 -08:00
Rick Yiu
bfd81c6907 Remove ResetUclamp profiles
Replaced with sched qos profiles.

Bug: 355612114
Flag: NONE vendor task_profiles.json does not support flag
Test: build pass
Change-Id: I025a31b3303acc409b74e3f33ce589f68ae2385e
2025-01-06 19:16:18 -08:00
Chris Lu
341185cc5f Update IDisplay to V13-V14
V14 is not frozen yet. We should still allow V13 for 'next' build.

Bug: 381463038
Bug: 378407278
Test: build pass
Flag: EXEMPT bugfix
Change-Id: Ieffe2c96ce2225560815158a8e89975e19f16499
2024-12-30 14:43:02 -08:00
Hung-Yeh Lee
ff2584a9ac display-dump: make display dump project-specific
Bug: 376426334
Test: adb bugreport
Test: adb shell /vendor/bin/dump/dump_*_display
Test: adb shell /vendor/bin/dump/dump_*_second_display
Flag: EXEMPT bugfix
Change-Id: I838f95abc934644063fd0c46e8106af4dbb105f8
2024-12-29 18:31:41 -08:00
Nelson Li
a0676aa9d8 Refactor: Use googleDeviceConfig namespace in gs201 BoardConfig
Replaces the `CitadelProvision` Soong config namespace with the more
generic `googleDeviceConfig` in
device/google/gs201/BoardConfig-common.mk. This improves clarity and
consistency, as the namespace is used for configurations beyond
Citadel-related functionality.

Flag: EXEMPT refactor

Bug: 386114735
Test: m CitadelProvision
Change-Id: If4b3428b391762e65fbf6631f7bd60e02d73b250
2024-12-26 03:05:38 +00:00
Jack Wu
7270e65cfd dump_power: add battery caretaker dump into bugreport
logging for AACR(+H), AAFV, AACT, AACC and AACP Version

Bug: 384737509
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: I366adec774866a9561067e1a3e42f9c794d3ccb8
Signed-off-by: Jack Wu <wjack@google.com>
2024-12-20 18:00:10 +08:00
Paulsu Su
c74b1a6c60 Set initial value for foreground_window group
For multi-window foreground app group.

Bug: 200769420 
Change-Id: I2d9cd9d90e9011593c53facf5fd47a4414e3f1cf
Test: build pass
Flag: NONE vendor init file does not support flag
2024-12-16 04:23:58 -08:00
Xin Li
97d8618f09 [automerger skipped] Merge 24Q4 into AOSP main am: aa57c8b0a1 -s ours am: b9794b0ff5 -s ours
am skip reason: Merged-In Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9 with SHA-1 f0733782af is already in history

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

Change-Id: I3e3726eb0f2003d91c678042214f8a43889175a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 20:51:59 -08:00
Xin Li
b9794b0ff5 [automerger skipped] Merge 24Q4 into AOSP main am: aa57c8b0a1 -s ours
am skip reason: Merged-In Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9 with SHA-1 f0733782af is already in history

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

Change-Id: Ic88d188bd516b34760f2e99b19b068efb1e3ffae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 19:15:21 -08:00
Xin Li
aa57c8b0a1 Merge 24Q4 into AOSP main
Bug: 370570306
Merged-In: Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9
Change-Id: I5e5c73eceaec0ce6c3cfca299ed43ede43b8f3e6
2024-12-13 11:15:09 -08:00
Piotr Klasa
8cca4af88c Move all vendor_sched parameters and permissions to init.pixel.perf.rc
Bug: 335874870
Test: Checked that permissions and values ​​for all affected files are correct (ls -l, cat)
Flag: EXEMPT not supported by this component yet
Change-Id: I018b7b564bcc533212d2ada0dda85678c41feead
2024-12-12 04:08:53 -08:00
Chungkai Mei
dc10f550c0 set input to 100 explicitly in task_profile
instead of using ADPF, let's use task_profile to boost input tasks'
priroity

Bug: 378761104
Flag: EXEMPT new task_profile behavior
Change-Id: Ice311b1abcf3d629917e16f1490d4cb63fd83796
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-12-11 16:48:30 -08:00
Daniel Lowe
796a10b440 [Pixel VPN] Apply reviewed default permissions
Pregrantting below permissions:
READ_PHONE_STATE

Flag: EXEMPT add permission pregranted in b/337725984
Bug: 373686360
Test: presubmit, manual install
Change-Id: I2f2cf9e1bd2e60dd04afac8fdf6d1c7f5f654778
2024-12-11 10:39:17 -08:00
Daniel Zheng
cadf608f92 update health HAL dependency
Bug: 381926253
Test: th
Change-Id: I55424b1ce6672b532a83dd9349c5265d31f279b2
2024-12-07 06:50:51 +00:00
Rick Yiu
6eded858fc Add sched qos support
Add task profiles and set permissions.

Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: I04d2f7af89fe3b1425962a5a5ab01e42f09fc19d
2024-12-06 08:19:59 +00:00
Nelson Li
8ff9d17a35 [automerger skipped] Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs201 am: 81a804eab6 am: 33da5a379e -s ours
am skip reason: Merged-In I1a41a48feb26771127f9603ae5ae226d2de61065 with SHA-1 a477bea5e2 is already in history

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

Change-Id: Ie3526667c1a4bab7d7a6e44064bf5a8c6167d3a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-06 01:46:50 +00:00
Nelson Li
33da5a379e Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs201 am: 81a804eab6
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3393979

Change-Id: I588cbdcf4795cfe47273cab32b9cf0dada96c5cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-06 01:35:50 +00:00
Nelson Li
81a804eab6 Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs201
Since the TARGET_RECOVERY_UI_LIB for each device is not exactly the
same, and most of the modules in it contain `soong_namespace{}` to
avoid conflicts between different devices, after converting
`librecovery_ui_ext` from Android.mk to Android.bp, it needs to be
changed to a `fully qualified name` in order to correctly use the
corresponding module.

Flag: EXEMPT refactor

Bug: 339143524
Test: m -j librecovery_ui_ext

Merged-In: I1a41a48feb26771127f9603ae5ae226d2de61065
Change-Id: I1a41a48feb26771127f9603ae5ae226d2de61065
2024-12-05 03:34:41 +00:00
Nelson Li
a477bea5e2 Change TARGET_RECOVERY_UI_LIB to use fully qualified names in gs201
Since the TARGET_RECOVERY_UI_LIB for each device is not exactly the
same, and most of the modules in it contain `soong_namespace{}` to
avoid conflicts between different devices, after converting
`librecovery_ui_ext` from Android.mk to Android.bp, it needs to be
changed to a `fully qualified name` in order to correctly use the
corresponding module.

Flag: EXEMPT refactor

Bug: 339143524
Test: m -j librecovery_ui_ext
Change-Id: I1a41a48feb26771127f9603ae5ae226d2de61065
2024-12-05 02:39:03 +00:00
Chaohui Wang
fac8b49c5a Clean up unnecessary data_connection_5g_plus overlay
This string is not device specific, and already set at,
frameworks/base/packages/SettingsLib/res/values-mcc311-mnc480/strings.xml
frameworks/base/packages/SettingsLib/res/values-mcc310-mnc004/strings.xml

Bug: 377907543
Flag: EXEMPT clean up
Test: m
Change-Id: I3391ec3d0a45e70ef3a96005961f7060da25e997
2024-12-03 17:29:53 +08:00
Will Song
d817c86300 init: gs201: move sched rate limit to late init
Since pixel performance has a shared configuration,
we need to move override values into late init.

Bug: 381100494
Test: Boot
Flag: EXEMPT bug fix
Change-Id: Ia0ec769ff8996d66a4355f20de884fcb05728c3f
2024-11-27 14:58:10 +00:00
kellyhung
f5e3505bc9 Add soong config use_google_qns to device/google/gs201/device.mk
Bug: 360757079
Test: lunch cheetah-trunk_staging-userdebug; m grilservice
Flag: EXEMPT bugfix
Change-Id: I114d13b8e610a289b3c2df60630a14241c93eb28
2024-11-27 02:04:28 +00:00
Herbert Xue
e89e33a63c Set soong config variables for libExynosC2H263Dec and libExynosC2H263Enc
Flag: EXEMPT bugfix
Bug: 375111251
Test: m libExynosC2H263Dec libExynosC2H263Enc
Change-Id: Ifd1a768baa7aab356f37922c017a65e95f083232
2024-11-25 06:27:19 +00:00
Paulsu Su
f48f2625e6 init: make pmu_poll_enable node readable
Bug: 378509589
Flag: EXEMPT init config for read permission
Change-Id: I226aa1a9801bdbb2630c7583180495752c9002e1
2024-11-19 11:41:43 +00:00
Herbert Xue
2451f7afe4 Set soong config variable "board_use_dec_sw_csc" for libExynosVideoCodec
Flag: EXEMPT bugfix
Bug: 375522783
Test: m libExynosVideoCodec
Change-Id: I23e96ea7ece291562c3ad959c84cc6f95f587e1c
2024-11-19 06:26:48 +00:00
Boon Jun
ba05fccd6d Update ldaf sensor device filename
LDAF sensor device filename changed after kernel upgrade
from v5.10 to v6.1 in some of our in-market devices.
We need to update the device filename to access the LDAF
with this new kernel version.

Bug: 378045567
Test: Open camera, and observe available LDAF sensor in logs
Flag: EXEMPT bugfix
Change-Id: I9ecdeb73e6787409e02eae3c699d2d9817249bc4
2024-11-18 03:36:18 +00:00
Xin Li
135dcb87ba [automerger skipped] Merge 24Q4 (ab/12406339) into aosp-main-future am: c6c5aa6608 -s ours
am skip reason: Merged-In Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9 with SHA-1 f0733782af is already in history

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

Change-Id: Ie16ca9ad24009fb2d83a3bf7f9bbf38226dc6cbf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-14 01:15:11 +00:00
Spade Lee
7d140022ff dump_power: gs201: correct dump path
- fix dual fg path
- fix pmic path
- add logbuffer_dual_batt
- move fg registers dump from debugfs to sysfs
- remove max77779fg path

Bug: 377895720
Flag: EXEMPT bugfix
Change-Id: Ie5c8fe188fa0426617fc481cd8d38b2dfeca1e07
Signed-off-by: Spade Lee <spadelee@google.com>
2024-11-13 17:00:00 +00:00
Xin Li
c6c5aa6608 Merge 24Q4 (ab/12406339) into aosp-main-future
Bug: 370570306
Merged-In: Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9
Change-Id: I856c6cb88142711f2d8d25240c3176b05f8edfdb
2024-11-06 10:31:19 -08:00
Herbert Xue
837de89c13 Move video_codec soong config variables into board config
Flag: EXEMPT bugfix
Bug: 370663515
Test: m libExynosC2OSAL
Change-Id: Iff6a4e9c5cbadf0eb7711cb9d1ad971f0ec365db
2024-11-06 11:08:36 +08:00
Bill Yang
12dd9e39f2 Use full namespace path for BOARD_WPA_SUPPLICANT_PRIVATE_LIB
There are several different version lib_driver_cmd_qcwcn control by
different soong_namespace and it will be used as static lib of hostapd
and wpa_supplicant and due to these wlan modules are in global namespace
and in order to read static lib from other namespace, will need to set
full namespace path instead.

Bug: 359745733
Test: lunch lynx-trunk_staging-userdebug; \
      m hostapd_cli hostapd libhostapd_aidl wpa_cli wpa_supplicant \
        wpa_supplicant_macsec libwpa_client libwpa_aidl libpasn
Flag: EXEMPT refactor
Change-Id: I747026b7ac5711ed0d450edf79e1fa24da9ac3b6
2024-11-05 19:51:22 +00:00
Spade Lee
8202fc2818 dumpstate: gs201: fix dump path
- Add missing change ag/25268925
- Correct FG reg dump path in sysfs
- Correct battery EEPROM dump path
- Correct main/dc charger dump path in sysfs
- Correct tcpm dump path
- Add charger dump path in debugfs
- Add swelling data dump in dumpBatteryHealth
- Remove function not for gs201

Bug: 376080915
Test: all paths were correctly dumped, but debugfs need sepolicy
Flag: EXEMPT bugfix
Change-Id: Ida288b94f19c3d49843a2944c323486980587779
Signed-off-by: Spade Lee <spadelee@google.com>
2024-11-05 13:36:13 +00:00
Priyanka Advani (xWF)
e4f334fece Revert "Add IGoodixFingerprintDaemon aidl interface"
Revert submission 30066446-goodix-ext-service-aidl

Reason for revert: Droidmonitor created revert due to b/376465180. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:30066446-goodix-ext-service-aidl

Change-Id: If0f21a8cfe11d9caad55defb963c961b7c16d284
2024-10-30 16:33:03 +00:00
chenkris
aed4820ab2 Add IGoodixFingerprintDaemon aidl interface
Flag: EXEMPT NDK
Bug: 370671685
Test: authenticate fingerprint.
Change-Id: Ib8871f722d2afca769494c047d098629e53ff2aa
2024-10-30 08:45:29 +00:00
Bill Yang
266c4f896c Set BOARD_LIBACRYL_G2D_HDR_PLUGIN for soong am: d764715871 am: 196e62305c
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3286784

Change-Id: I0b27a9a01682c0238e7da343a6793740902e92d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-29 03:12:00 +00:00
Bill Yang
196e62305c Set BOARD_LIBACRYL_G2D_HDR_PLUGIN for soong am: d764715871
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3286784

Change-Id: I3e2adec627e78596f0499e5e8dd0a37abf11220b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-29 02:50:15 +00:00
Bill Yang
d764715871 Set BOARD_LIBACRYL_G2D_HDR_PLUGIN for soong
Set the full module path of libacryl_hdr_plugin and the include dir for
lobacryl conversion to soong. It will take effect after aosp/3286932 and
aosp/3287183 merged.

Bug: 370414334
Test: lunch aosp_panther-trunk_staging-userdebug ; m libacryl_hdr_plugin libacryl
Change-Id: I77d3e23d2c8fd956d7207e2aa486577646a18763
2024-10-25 03:31:42 +00:00
kellyhung
33f3bf6e45 Add a soong config variable for CitadelProvision
Bug: 373235487
Test: Presubmits
Flag: EXEMPT bugfix

Change-Id: Ia7ba2ccd292c536379120e57ed27f76f03fa2798
2024-10-24 12:34:13 +00:00
Kostya Yarmash
9826c8d092 init.gs201.rc: change permission of SJTAG writable files
On userdebug & eng builds, change permission of SJTAG writable sysfs files that need to be written to 'system'. This became necessary after HSUM separated main user from the SYSTEM user

Bug: 374645181
Flag: EXEMPT bugfix
Test: Ensure that there is "Privileged Debugging" item in BetterBug settings.

Signed-off-by: Kostya Yarmash <kyarmash@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cfde8e50cc66c22ca44da58f4a35c0b3e055646f)
Change-Id: I12857abcb94b4a7e6a068ea712c7f21c3de205ff
2024-10-24 09:48:55 +00:00
Richard Chang
08cc782e85 gs201: MCP: Set the vendor customized max cached processes to 1024.
Bug: 374891496
Change-Id: I657ea431a33003b0cc3310589e9b8fa359a66fae
Test: adb shell dumpsys activity | grep CUR_MAX_CACHED_PROCESSES
Flag: EXEMPT config XML change
2024-10-23 04:10:13 +00:00
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