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>
Set `avb_keys=no_such_key` for dynamic kernel partitions 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: I11edf6e50411a05c6723f7523f3672a9a8116d7a
This reverts commit c13cd03ccf.
Reason for revert: Let's go through a proper security review for this.
Bug: 306264015
Change-Id: I51fe3f32f8a4ec92cb2d38869568a51dc2522bb4
Set `avb_keys=/avb` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel that is signed using a test key.
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.
Test: flash production userdebug build, then flash custom kernel.
Bug: 274825778
Change-Id: I11edf6e50411a05c6723f7523f3672a9a8116d7a
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: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
-t com.google.android.perfwbs.pts.SchedulerTest
Change-Id: I94f17627f913e20323f9fe111a34fcc666f38a72
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: Ife250a1a4984f94cc52bc1b3e52deeffbc5b5410
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: I0bb6e2073554de4e5ce8fe472dae6a77e69aeb54
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>
There are some regressions reports. Disable them completely for now.
Bug: 297496375
Change-Id: I6478931d73145a15471982738f0ff93eae5f2f07
Signed-off-by: Qais Yousef <qyousef@google.com>
Enables the debug features required an unlocked SJTAG to the section
`on property:ro.vendor.sjtag_ap_is_unlocked=true`, so they can be
enabled when 1. PD is available on non-fused device on boot, or 2. PD is
available after betterbug acquires it from the corp service.
Bug: 298314432
Change-Id: Ie834b587c130d749a33a87801113df03d5b3d29a
- 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>
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
This is to avoid unnecessary ext4 behavior
Bug: 289631992
Test: boot to home
Change-Id: I44f9632cc7b848d6fe673232be014cef71355018
Signed-off-by: Randall Huang <huangrandall@google.com>
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
Use a moderate boost instead of fmax out of thermal constraints.
Bug: 284039815
Test: boot ab tests
Change-Id: Ie8d321e20d64e97d2896f6e5cf6f437dede84928
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: I230a9f39603a27409a2a06b22bc62b8ede4af94c
Background:
* Not all secure storage files had the correct ownership transitions.
Bug: 280325952
Test: Changed permissions and confirmed user transitions
Change-Id: I4486bb08d21e42cf3099c6b600a7adaf7580c4bf
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 atom logs
Change-Id: I272b1f52243dcb91d4d6dd142c54edf533f6498c
Background:
* Not all secure storage files had the correct ownership transitions.
Bug: 280325952
Test: Changed permissions and confirmed user transitions
Change-Id: Ic76f312ec954e8afbbe95b3843356b8f92a1d4a7
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
With bg group throttle set to 30 percent of cpu capacity, we need to
relax background cpuset as well.
Bug: 201260585
Test: value set as expected.
Change-Id: I18297904e63f84c4d3d64880ebab7e924a830e42