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: I4bed0358263910d1312238a8e109afb75517d8c2
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: I0c0a39e3fc03d8df4e9e87cf61fb8e1dafcfc996
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: I9433d73e7ed4bfd5e72a0f8318e959373e76202e
Signed-off-by: Ocean Chen <oceanchen@google.com>
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: Idefd1a5d8154a51792c6cb52ee6d11cbb7f6df78
Remove irrelevant copy and paste content. None of the gs101
devices ever included these services and these sockets are
not doing anything.
Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I6fdab1e2232f83c0286d5f33773aaa17f9da3f7a
move the rfkill permission setting from post-fs-data to early_boot
stage because the kernel/net/rfkill/rfkill.ko may not be loaded on
post-fs-data stage and cause the permission setting failed.
Bug: 277148159
Test: m
Change-Id: I65f0593caddbe659528877f583917cdaead1756b
With uclamp changes against margins, we need to bump this value by 1.25
to retain previous boost.
Bug: 314123492
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I0b001772116bdbc2285e942b5795451dee925eda
Revert GPU clk divider ratios.
Bug: 324534203
Test: Confirm no DATA_INVALID_FAULT while running GFXBench under stress
Change-Id: I9379988d68665924de72441bc0ea24f5fc12be4d
Signed-off-by: George Lee <geolee@google.com>
Update i2c device paths with static bus numbers.
Also remove some redundant paths.
Bug: 323447554
Test: Boot to home
Change-Id: I90a723018f6628c825e97ff75a80350843684959
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: I20c1a843edadbc4ed2da51af3e242957b5849d6b
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
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: I29c352696cd9d31168a8eac8c58d23adb484f5d0
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. 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.
Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.
Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
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: UIbench ab test
Change-Id: I6f8aa26587578860483d6ededf88e9c04a926644
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.
Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: Ib412510e4b6c086c978ad5487486323685732cae
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: I76cb73cf9149347d486354abf8c9fc7d165e1bea
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.
Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: I579143fa38bc2e9b3bf7dc618b10e63001263e2e
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: I78e9f97575784996aac94e576c7f23b0874a8d09
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.
ported from 6710e31a629f81cf308e1099f75a01c82db6d006
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>
There are some regression reports. Disable them completely for now.
Bug: 297496375
Change-Id: I2a2b4d13366d3173c441e8ccad456a67ddd3a16b
Signed-off-by: Qais Yousef <qyousef@google.com>
- 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: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778
Signed-off-by: Martin Liu <liumartin@google.com>
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's write permission from all uvc config
files that had it.
Bug: 242344229
Test: Manually verified that no files have other-write permissions
Change-Id: I67d504fa924f90f3a54dab5264ab1609050f5dd5
This is to avoid unnecessary ext4 behavior
Bug: 289631992
Test: boot to home
Change-Id: I5efdb979e9c738964350b221b9f5fffea19c721d
Signed-off-by: Randall Huang <huangrandall@google.com>
Use a moderate boost instead of fmax out of thermal constraints.
Bug: 284039815
Test: boot ab tests
Change-Id: I5787a62ca26f9e128e73c7bf9d60c4d2216d5e0c
rt_uclamp_min and sf_uclamp_min have been made redundant in Pixel by
ADPF for sf, so we are just going to remove them outright rather than
worrying about overriding them later
Bug: 285248880
Test: manual
Change-Id: I5abdf2e16dd769f1fece28a1dc630a9a8e3ddd14
Background:
* Not all secure storage files had the correct ownership transitions.
Bug: 280325952
Test: Changed permissions and confirmed user transitions
Change-Id: I306209fe04256ca48ea7b6246a6c8718a29b149b
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
Add temperature residency reset path
chown to system to reset from pixelstats
Bug: 193833982
Test: Local build and verify statsD logs
adb shell cmd stats print-logs && adb logcat -b all | grep -i 105045
Change-Id: Id73badfb8f8ff97a1a75b0544d3e1457ad0e2f84