Commit graph

3448 commits

Author SHA1 Message Date
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
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
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
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
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
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
Hsiu-Chang Chen
57ade0e64c wifi: Update p2p overlay config
Align the p2p overlay config with other projects

Bug: 273897565
Test: P2P enables on 5GHz channel when DUT connected to 2.4GHz
Change-Id: I4e4dac3b1f2fa907dc7e57408f3744086a126860
2023-09-18 03:09:39 +00:00
Jerry Huang
4097af9977 gs201: update media_codecs_performance_c2.xml based on UQ1A.230911.001
Bug: 292555946
Test: run cts -m CtsMediaDecoderTestCases -t android.media.decoder.cts.VideoDecoderPerfTest
Change-Id: If04aa80ed736db924f0da7765a8a37bb5ddc81e3
2023-09-14 05:44:45 +00:00
Martin Liu
f7a71debb7 gs201: tweak memory management
- set lmkd's swap_free_low_percentage to 100
- decrease swappiness to 60

This tweak also aligns the policy with P23.

Test: boots with correct settings
Bug: 299975853
Change-Id: I623a7687ef692f8f7a5cc906e186edde294b30be
Signed-off-by: Martin Liu <liumartin@google.com>
2023-09-12 20:35:33 +00:00
Bethany Barrientos
c7b6ab33ef Grant default permissions to PCS for camera connectivity
- android.permission.POST_NOTIFICATIONS
- android.permission.BLUETOOTH_CONNECT
- android.permission.BLUETOOTH_SCAN

Test: Same as others in topc
Bug: 287069860
Change-Id: I96d5bcc4847138db92f89933ba084af7a2648456
2023-09-12 15:18:54 +00:00
Jorim Jaggi
679cf27ac4 Revert "Enable small dirty detection for variable refresh rate"
Revert submission 24149209-enable-vrr-extension

Reason for revert: Bug: 299131033

Reverted changes: /q/submissionid:24149209-enable-vrr-extension

Change-Id: I1d21a42726ba36f7f21a56bbc28c40befa7a5270
2023-09-07 17:48:31 +00:00
Arthur Hung
7b31924b74 Enable small dirty detection for variable refresh rate
Bug: 283055450
Test: Build
Change-Id: I670432d6e566260df3cfdc938f4ddbae70b5d47a
2023-09-02 19:22:06 +00:00
Wilson Wu
4369c3083d Support variable refresh rate when typing on gs201
Enable config_variableRefreshRateTypingSupported
for gs201 devices.

Bug: 283055450
Test: build
Change-Id: I88757928225224f492365dc8cb85cc7fce01036b
2023-09-01 07:34:44 +00:00
Krzysztof Kosiński
9f82f3b251 Set USF SoC from board makefile.
Bug: 296943650
Test: presubmit
Change-Id: I020eec4f355b4977ff1194a7f146f814874aeb55
2023-08-25 02:52:20 +00:00
Alec Mouri
11e675bb97 Enable dimming in gamma space in screenshots for adaptive mode
This fixes a flicker during screen rotation

Bug: 293560925
Test: Youtube HDR playback
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:33171da4fbae416c9243dc6d036988418dd4f4fd)
Merged-In: I30cc2373acc089bac066c731bdd48632a7a79da3
Change-Id: I30cc2373acc089bac066c731bdd48632a7a79da3
2023-08-18 20:48:23 +00:00
Kelly Rossmoyer
6ea9de413c suspend: enable adaptive suspend
This CL adds build properties enabling Adaptive Suspend's short
suspend backoff with a short suspend threshold of 2 seconds and
a max backoff time of 40s.  This is the same configuration that
was deployed on the previous generation of devices.

The plan is to monitor suspend behavior, screen-off uptime,
wakeup rates, and the distribution of screen-off mA on
these devices in comparison to those same attributes on late
UDC builds, which will inform whether we ship or revert.

Bug: 208947015
Test: booted with a test kernel and used alarmtimer mods to
exercise high-frequency wakeup behavior

Change-Id: Icf75c4dd705050833df5e48aaf0c28afa5754adb
2023-08-16 23:17:16 +00:00
Mark Chang
6ba21169aa Remove IScreenProtectorDetectorService.
Service not enabled on gs201 devices.

Test: Failed tests no longer reported.
Bug: 293555121
Change-Id: Iaaa21060c7c33d4e013d3d7c85065562a3f0c1ad
Merged-In: Iaaa21060c7c33d4e013d3d7c85065562a3f0c1ad
Signed-off-by: Mark Chang <changmark@google.com>
(cherry picked from commit 94e5bab69e)
2023-08-10 23:46:02 +00:00
Ziyi Cui
f3dfb2dad7 gs201: Add path reading for StormIRQ
Bug: 279486693
Test: Verified the existence of atom and correctness of atom stats
adb shell
cmd stats print-logs && logcat -b all | grep -i 105043
Merged-In: Iae8f8de862c21e2b8e6b32618bc5971cbe98b1ca
Change-Id: Iae8f8de862c21e2b8e6b32618bc5971cbe98b1ca
Signed-off-by: Ziyi Cui <ziyic@google.com>
(cherry picked from commit e9dab393fc)
2023-08-09 00:50:07 +00:00
Renato Grottesi
e711587192 Disable armnn nnapi backend am: e33182147a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24342934

Change-Id: I2eee7a6407a2720f4c113b77d93ae53b488b17fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-08 14:56:15 +00:00
Renato Grottesi
e33182147a Disable armnn nnapi backend
Discontinue maintenance and active support of ArmNN on Pixel phones.

Bug: 294459623
Test: Local nnapi_info
Merged-In: Ic0db64d2eec0cb955ae710fa0ac89de3d7136db6
Change-Id: Idfa020dc46070764ccfff148b1fdfc72ccd16442
2023-08-08 06:15:55 +00:00
Leo Chen
52301273fb Update IDisplay to V9
Bug: 255986866
Bug: 227384721
Change-Id: I85d56f6a3a20f512f42923af95d77e25375c8fde
2023-08-01 03:35:12 +00:00
Ian Elliott
db1a72ccdb gs201: Enable SkiaVk as RenderEngine backend
This changes RenderEngine from using the SkiaGL backend to using the
SkiaVk backend.

Bug: 290248072
Test: Manual testing
Change-Id: I2e9c9fe01c84ad06116435567bb1b02b54677cef
2023-07-28 18:34:30 +00:00
Robin Peng
5f0318b21f do not mount the debugfs on userdebug builds
Bug: 278988913
Change-Id: I5c703310a4f82acf52fad87854682ca6e668d99b
Signed-off-by: Robin Peng <robinpeng@google.com>
2023-07-26 00:25:54 +00:00
Akilesh Kailash
06b17a25e1 Use lz4 compression instead of gz.
Given the benefits of lz4 with respect
to install and merge times as well
as reduce in CPU usage, it is worth
to switch to lz4

Test: OTA
Bug: 291594891
Signed-off-by: Akilesh Kailash <akailash@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:62afad0252b57c00847d4942504c6435105b8ccb)
Merged-In: I0a6b164432e16f531c0cc1157814411960915539
Change-Id: I0a6b164432e16f531c0cc1157814411960915539
2023-07-25 03:52:08 +00:00
Ilya Matyukhin
c011b953ff Bump IDebugManager version to 4
Bug: 278914238
Test: build
Change-Id: I82bc2459776961a8a4d921aaecfa081dcbda6a00
2023-07-20 18:58:38 +00:00
Renato Grottesi
0d5fddfe8d Remove settings for old ArmNN HIDL backend am: c0baa17abe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24059470

Change-Id: If0ea12a125a6cc44dc157fb66c35884105ca34d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-20 07:28:19 +00:00
Renato Grottesi
c0baa17abe Remove settings for old ArmNN HIDL backend
Compile ArmNN shim over the support library.

Remove SELinux permissions and settings for the old HIDL backend.
The AIDL settings will be in the gs-common folder.

Test: Local run of CtsNNAPITestCases
Test: Local run of VtsHalNeuralnetworksTargetTest
Test: Local run of MLTS Benchmark
Bug: 283724775
Merged-In: I3652eceb14d06a3e909444edc21ad86d9378bc6c
Change-Id: If26928b13cdd9f3342026af95b9446f2918784fa
2023-07-20 06:37:06 +00:00
Cody Northrop
49f3b66b3a EGL: Reduce multifile blobcache limit to 32MB am: 5c4cbe4023 am: 66f9fff138
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24044691

Change-Id: I4044651f9399423d294548773e40b3fa9f181cfa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-14 23:02:52 +00:00
Cody Northrop
66f9fff138 EGL: Reduce multifile blobcache limit to 32MB am: 5c4cbe4023
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/24044691

Change-Id: I8f8b2b82e2c79ecb541d3a46cb21ec62cbc9e146
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-14 22:14:03 +00:00
Cody Northrop
5c4cbe4023 EGL: Reduce multifile blobcache limit to 32MB
Loading the larger limit is taking too long in the field for
apps that are filling the cache.

Test: Ran app until it exceeded cache, watched it reset to 50%
Bug: 290249239
Change-Id: I1b80b8ad427d8a0d2a6d967b98b89d808c549527
2023-07-14 20:52:43 +00:00
samou
8990012f1d bcl: mask out clock divider for CPUCL1
Bug: 288238917
Change-Id: I330d966ee13539fcb46d54883d04b42152f6a58f
Signed-off-by: samou <samou@google.com>
2023-07-14 02:37:43 +00:00
qinyiyan
fdf5f05984 [automerger skipped] Use version 1 of the DBA service, since version 1 is the only frozen am: 66a548d416 -s ours am: 0845f0ca7a -s ours
am skip reason: Merged-In Ieec5b8b48c3567c940717df55a2e4582ef47d16c with SHA-1 0964781a6c is already in history

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

Change-Id: I23a6d1bd4c8475eb9e7e6eb7892032c077dfa900
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-12 23:47:59 +00:00
qinyiyan
0845f0ca7a [automerger skipped] Use version 1 of the DBA service, since version 1 is the only frozen am: 66a548d416 -s ours
am skip reason: Merged-In Ieec5b8b48c3567c940717df55a2e4582ef47d16c with SHA-1 0964781a6c is already in history

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

Change-Id: I17ff986e63973db166c23f4150c18141a1682a0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-12 23:03:02 +00:00
qinyiyan
66a548d416 Use version 1 of the DBA service, since version 1 is the only frozen
version.
bug:289317242

Change-Id: Ieec5b8b48c3567c940717df55a2e4582ef47d16c
Merged-In: Ieec5b8b48c3567c940717df55a2e4582ef47d16c
2023-07-12 22:16:59 +00:00
qinyiyan
fd428b4b0a Use version 1 of the DBA service, since version 1 is the only frozen am: 0964781a6c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/23925984

Change-Id: I97e65c330c69770ae5197142a7471c5fb7df1238
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-11 23:22:23 +00:00
qinyiyan
0964781a6c Use version 1 of the DBA service, since version 1 is the only frozen
version.
bug:290377605

Change-Id: Ieec5b8b48c3567c940717df55a2e4582ef47d16c
2023-07-11 17:55:15 +00:00
TeYuan Wang
34bb36163d Cancel boost on off-mode charger
Test: Build
Bug: 289120007
Change-Id: I753f9233600c1374f35de3eda0513451b602795a
2023-07-11 02:02:50 +00:00
Hsiu-Chang Chen
36494e4c4d wifi: convert WIFI_FEATURE_IMU_DETECTION to the equivalent soong variable
Bug: 287607876
Test: SAR scenario is set properly with motion sensor status
Change-Id: I4d0169f08a8aca4f516b775c63d36457c4ab96e2
2023-07-10 09:09:29 +00:00
Avichal Rakesh
78f6f8b59d usb.rc: Remove write permissions from uvc specific files
Files created by the uvc driver gives write permissions to 'other' by
default. This permission is not needed at runtime. To minimize write
privileges, this CL removes other-write permission from all uvc config
files that had it.

Bug: 242344229
Test: Manually verified that no files have other-write permissions
Change-Id: I27611d0ba4ecf2851aef6ea8bd613284744142fb
2023-07-07 21:53:53 +00:00
Randall Huang
0e178ea210 fstab: add the noatime for read-only ext4 partitions
This is to avoid unnecessary ext4 behavior

Bug: 289631992
Test: boot to home
Change-Id: I44f9632cc7b848d6fe673232be014cef71355018
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-07-06 14:59:39 +00:00
Sebastian Pickl
ac5dd11596 Revert "bt: make bluetooth own the data vendor bluetooth folder ..."
Revert submission 23844270-P22-vendor-log-udc-qpr

Reason for revert: causes selinux tests to fail b/289989584

go/abtd: https://android-build.googleplex.com/builds/abtd/run/L37600000961782595

Bug:289989584

Reverted changes: /q/submissionid:23844270-P22-vendor-log-udc-qpr

Change-Id: Ife1c71257572101c32b9e6f60c275b9366c654b2
2023-07-05 11:28:39 +00:00
Nicole Lee
05ec1a52e6 Update pixel stability logging mask
- Update format to align p23 radio codebase
- Enable UHAL_COMMON, UHAL_MISC, UHAL_SLEEP

Bug: 289694702
Change-Id: Ida0eae486d0de3f14f85aec1edb209d56129a4c5
2023-07-05 08:41:34 +00:00
Patty Huang
f77e84ac98 bt: make bluetooth own the data vendor bluetooth folder permission
Bug:289055382
Test: enable vendor debug log and check the vendor snoop log contain the
vendor log

Change-Id: If3e247093deae5b9d5c237dc585973e77a0629b1
2023-07-05 06:16:08 +00:00
ChengYou Ho
99f7374ba0 device.mk: add misc_writer am: 1d66ee690b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/23844835

Change-Id: I7c71a5303fb8d5c2c00b51593518627e05cd7b46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-05 02:13:47 +00:00
ChengYou Ho
1d66ee690b device.mk: add misc_writer
Bug: 285803498
Bug: 271950369
Change-Id: I4974f32fe49d218f7954568db4c585896b29f4f4
2023-07-05 01:32:06 +00:00
Luis Delgado de Mendoza Garcia
03df275b45 Add chre dedicated channel and start using them in chre_daemon.
Adding the necessary entries to ueventd for gs201 and newer and
enable the flag for chre_daemon to start using the channel.

Bug: 241960170
Test: in-device verification.
Change-Id: Ie53e3c21e6c83f9e184d31fd189cff3e5602bb2b
2023-07-03 02:57:05 +00:00
guibing
ae51b7425b init: reduce the boot boost uclamp min.
Use a moderate boost instead of fmax out of thermal constraints.

Bug: 284039815
Test: boot ab tests
Change-Id: Ie8d321e20d64e97d2896f6e5cf6f437dede84928
2023-06-30 08:38:04 +00:00
Habib Moukalled
aee7da9f88 Updating VINTF manifest for IDebugManager. am: 2a4d72f894
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/23816646

Change-Id: Ie3e453bd7c0874777fded69a0d55be39b8cd7bd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 18:39:50 +00:00
Habib Moukalled
2a4d72f894 Updating VINTF manifest for IDebugManager.
Notes:
- Updating AIDL HAL for IDebugManager.

Bug: 284165549
Test: build test
Change-Id: I07aad9ee651d299d294b6c6627baa33ae65f6099
2023-06-26 20:17:14 +00:00