Commit graph

358 commits

Author SHA1 Message Date
Jenny Ho
8e2f4d4b2d init: add permission to adjust temp_filter_enable am: 656976885e am: 565b592bdf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21414046

Change-Id: I6481581950943c582c70d3547ce04aa9d4dacbbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-23 03:41:12 +00:00
Jenny Ho
565b592bdf init: add permission to adjust temp_filter_enable am: 656976885e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21414046

Change-Id: Ie9b332294e3fe235def411933ab77c0b7e622d50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-23 02:06:56 +00:00
Jenny Ho
656976885e init: add permission to adjust temp_filter_enable
Bug: 262461194
Change-Id: I03cc764ac666512d00b058fd10311434d1fb8430
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-02-23 01:09:20 +00:00
Erik Staats
f2a55fc82e Set acd-com.google.umfw_stat permissions, owner, and group
Bug: 254464877
Test: Verified /dev/acd-com.google.umfw_stat permissions, owner, and
 group.
Change-Id: I9a1a781aadf592911cbc03f3fe92cb9c66ffcf57
2023-02-14 14:37:34 +00:00
Avichal Rakesh
25f66eacfb usb gadget: Add config for UVC in init
The UVC gadget requires some setup in configfs before it can be used by
the gadget HAL. This CL adds that setup to usb specific init.rc file.

Currently, UVC is setup to advertise mjpeg streams at 720p and 1080p at
60, 30, 24, and 15 fps each.

Bug: 242344221
Test: Manually tested that UVC is correctly set up on boot.
Change-Id: Id0536ded1035f371adb01ed50bbfbff47914cc6a
2023-02-06 21:20:59 +00:00
Jack Wu
942fe044ca init: add permission for charging_policy access am: c0cf226818 am: cd966979dd am: 8333686242
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I544ee3ca74947bdaf99fb8a82e4c4fd38ef4e124
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 09:27:09 +00:00
Jack Wu
8333686242 init: add permission for charging_policy access am: c0cf226818 am: cd966979dd
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I72d7f80ee9e5cbe9857f21e28b2a3cb4e2a80aee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 08:58:29 +00:00
Jack Wu
cd966979dd init: add permission for charging_policy access am: c0cf226818
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2418919

Change-Id: I4ed3c83a17116b843e6e1bfc13b1d76d4402ecba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:43:32 +00:00
Sajid Dalvi
aec4604122 dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE] am: fd2a8ca06b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21077873

Change-Id: Ib67cfb16aaf28264f4c4b556e2960167369daae7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 05:41:29 +00:00
Sajid Dalvi
fd2a8ca06b dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE]
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 267495494
Change-Id: Ic70dfd696d084c1ab7f55872b69ca86856720592
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-02-02 21:30:23 +00:00
Jack Wu
c0cf226818 init: add permission for charging_policy access
Bug: 251425963
Test: write charging_policy sysfs node successfully
Change-Id: I3f387cbd80aa9bdcb483d0c6435cb382a7a847c7
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-02 19:57:30 +08:00
Doug Zobel
a269b503e5 pixelstats: Configure PCIe link stats pathnames am: 471d17d1ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21087424

Change-Id: I7b18affe0e1a60d7744d2311eb99f72d5908676c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 14:04:22 +00:00
Doug Zobel
471d17d1ae pixelstats: Configure PCIe link stats pathnames
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: If059347f847a857f66164926edfecd2a756f2339
Signed-off-by: Doug Zobel <zobel@google.com>
2023-02-01 13:30:23 +00:00
Jack Wu
c49d350dee dumpstate: add battery eeprom in bugreport am: e28746e3f1 am: a0c8de3597
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21027679

Change-Id: Id7952997e7ec906fa5206f67335840660c11ba55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 09:14:27 +00:00
Jack Wu
a0c8de3597 dumpstate: add battery eeprom in bugreport am: e28746e3f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21027679

Change-Id: Ib1f9a08b6e14445852164f0a5d7bef8e7d6c7094
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 07:57:56 +00:00
Doug Zobel
7e9ed22e6a pixelstats: Configure PCIe link stats pathnames
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: If059347f847a857f66164926edfecd2a756f2339
Signed-off-by: Doug Zobel <zobel@google.com>
2023-01-24 02:05:32 +00:00
Jack Wu
e28746e3f1 dumpstate: add battery eeprom in bugreport
Bug: 265889611
Test: adb bugreport
Change-Id: I604834cdae4a3352db20301128d61059c71f0fb2
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-18 08:17:23 +00:00
Wasb Liu
48676580c3 dumpstate: dump dual batt logbuffer am: 08a7fc6c70 am: ddb529fff8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20806353

Change-Id: I61b2c69c8dcf19cb0bb43b9a8ca5298a13a0325c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 06:00:50 +00:00
Wasb Liu
ddb529fff8 dumpstate: dump dual batt logbuffer am: 08a7fc6c70
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20806353

Change-Id: I71eb4fdcff36d63dd2c27d6c9d7cbff419691d26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 05:21:51 +00:00
Wasb Liu
08a7fc6c70 dumpstate: dump dual batt logbuffer
Add logbuffer_dual_batt to dumpstate.
Also fix some dual batt related dump pathes.

Bug: 263496320
Test: build pass, no related permission errors.
Change-Id: Ibfd3dfc18acc049052f07246c8d85ae04b4f95f5
Signed-off-by: Wasb Liu <wasbliu@google.com>
2023-01-17 04:52:50 +00:00
Treehugger Robot
7086c038ea Merge "Remove wait_for_keymaster" am: c3cd098631 am: 6fa12a3ce7 am: 09fe281831
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2385712

Change-Id: I0309f9480a53e33b0f56dbcc261b0bece6ac25c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-12 08:35:14 +00:00
Treehugger Robot
09fe281831 Merge "Remove wait_for_keymaster" am: c3cd098631 am: 6fa12a3ce7
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2385712

Change-Id: I98c35782fe8dfcd47d1d7227c860ca516e96a402
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-12 07:30:06 +00:00
Xin Li
79632f0b90 Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040
Merged-In: If9ccdfa44bc37e5ae8c73ccf96150f46b8723dc5
Change-Id: Ic782dda73ae3cf0000038a0634d50e912831051a
2023-01-11 22:46:18 -08:00
Treehugger Robot
c3cd098631 Merge "Remove wait_for_keymaster" 2023-01-12 05:07:58 +00:00
Jaegeuk Kim
48e4f36abc Remove wait_for_keymaster
Bug: 186580823
Change-Id: I1e0e0fd4135385ec590ba2e4d4406648853c2700
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-01-11 19:25:33 -08:00
Vaibhav Devmurari
008708a827 Allow access to all brightness and multi_intensity nodes in sysfs
Depending on how the device is connected, sysfs path to leds can
have different directory path, to allow backlight controls, we
will provide access to all 'brightness' and 'multi_intensity'
nodes under sysfs directory of USB devices for whitechapel_pro.

Test: manual
Bug: 245506418
Change-Id: I9ca43f1b6d7950c56d08e300b6ac97320982e979
2023-01-11 23:50:38 +00:00
Sophia Wang
6252293286 Revert "Revert "gs201:conf Add memlat CPU idle awareness settings""
This reverts commit 54eea43433.

Reason for revert: Perf regression issue get addressed

Change-Id: I87eddfe5a9a64eaa9c725d7dd918b736ded6f275
2023-01-10 18:26:30 +00:00
Michelle Yang
9b1235529a Set /dev/video12 file permissions for gs201
This is required so Lyric is able to talk to smfc driver

Bug: 257084044
Test: ls -la /dev/video12 shows proper file permissions
Change-Id: Ifbb212707fa7eba551b77e061a0ad4285d80bb97
2023-01-05 19:48:33 +00:00
Super Liu
33673ae71f [DO NOT MERGE] Support gti proc dump.
Bug: 262796907
Test: TreeHugger build pass.
Change-Id: I84f68070b50272d4beeaa6178011584fc3a38a9f
2022-12-23 06:56:00 +00:00
Bruce Po
d932511adf Set acd-audio_rtp_* permissions to "radio" for vowifi
Set /dev/acd-audio_rtp_rx and /dev/acd-audio_rtp_tx permissions
to system:radio so that ImsMedia can use them for VoWIFI.

BUG: 259874554
Change-Id: Ie5e0500b09c91b450f55d5748fd7e9abd6b65510
Signed-off-by: brucepo@google.com
2022-12-14 18:04:39 +00:00
Bruce Po
592ff18146 Set acd-audio_rtp_tx permissions for vowifi
The nodes /dev/acd-audio_rtp_rx and /dev/acd-audio_rtp_tx permissions
should be set system:audio so that ImsMedia can use them, for VoWIFI.

BUG: 259874554
Change-Id: I245bd3f2539ba30cb557525eaf95b300efff5d37
Signed-off-by: brucepo@google.com
2022-12-14 02:21:30 +00:00
Jack Wu
28041c3d9f init: enable dock-defend by default am: 0ac69fbfc0 am: c5620b07aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20717026

Change-Id: Iad683acda5c7deef57ce4a4a376c030d09fdb49d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-13 08:59:58 +00:00
Jack Wu
0ac69fbfc0 init: enable dock-defend by default
dock-defend is enabled in kernel code.

Bug: 262322247
Test: dock-defend is enabled by default
Change-Id: Ib7c7381f9d7d6d818e034911115e8c9045d5d0b6
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-13 11:18:10 +08:00
Chungkai Mei
42eccca4c9 Remove UClamp Threshold setting am: b35aecbd48 am: ec067d589a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20672099

Change-Id: Ie0d25dfaf2abb606bd306ea1af9df150969b4cad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 23:01:25 +00:00
Chungkai Mei
b35aecbd48 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-09 21:43:57 +00:00
Wasb Liu
05bbee4d27 init: fix permission for logbuffer am: 51e87c4f51 am: 28837ce0f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20604239

Change-Id: I0a0cf6ba73f1c847b7087b0a8a9636eed8d25692
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 19:11:01 +00:00
Wasb Liu
51e87c4f51 init: fix permission for logbuffer
Move permissiion setting for logbuffer to eraly-boot to avoid timing
problem.

Bug: 260678111
Test: Ensure that the owner of necessary logbuffers is system/system
Change-Id: I6a3a48ce31e95b8b781c8a90237c10aa7a0c4210
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-12-08 18:14:29 +00:00
Jack Wu
87c26c1cd5 gs201: use CPU4 in charger mode am: d59bb0d1bf am: 003dbba083
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20650334

Change-Id: I28242bd29ba9d56cfdb7b8d068535c6c8c7768c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-06 17:13:50 +00:00
Jack Wu
d59bb0d1bf gs201: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 260019919
Test: measure power consumption in charger mode
Change-Id: Iffccde0c3161e3fa4768d5f7c7ec2212dbab1a73
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-06 15:25:27 +08:00
Wasb Liu
17d9a89d34 init: add battery persist folder am: 243d9332db am: 399b41622d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If4e6611c4c3188ef3c9e67470e7d80bc6fe8cd6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 04:56:13 +00:00
Wasb Liu
ffec37b6b3 init: add battery persist folder am: 243d9332db am: 74851536f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: Ic3c474dc3459fab6b02f5d2543fb98d2de525134
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 04:55:23 +00:00
Wasb Liu
399b41622d init: add battery persist folder am: 243d9332db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If52c930b8fea311ac91ec59c5216ec646da1439a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 03:51:19 +00:00
Wasb Liu
243d9332db init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 258535661
Bug: 260878511
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
(cherry picked from commit a573337875)
2022-12-02 01:59:46 +00:00
Wasb Liu
ce5f36cfa7 init: add battery persist folder am: a573337875 am: ab7efdbdbb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20473347

Change-Id: Ie6197d8f9a879c7dfcddc57d887321ea7660f167
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 10:31:38 +00:00
Wasb Liu
a573337875 init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 258535661
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-11-30 09:44:34 +00:00
Puma Hsu
6c7e5cc70c usb: modify the initial_descriptor_timeout to 500ms am: 0c3dc78fb9 am: 360258f4c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20543177

Change-Id: Ifcd90540366282cf936add885f8567eed145583a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-25 02:47:45 +00:00
Puma Hsu
0c3dc78fb9 usb: modify the initial_descriptor_timeout to 500ms
Since retry times of kernel driver are 24 during USB enumeration,
the total time of bad USB enumeration will waste 48 seconds.

This patch will reduce the timeout from 2 seconds to 500ms, so the
total time is changed to 12 seconds.

(cherry-pick from commit dd9bb5578cd197b44f32c0c19aca79610b5bdd54)

Bug: 256100001
Test: the timeout value is 500
Change-Id: I6c30e3c9168242f5c22443cbd5622892617e0520
Signed-off-by: Puma Hsu <pumahsu@google.com>
2022-11-24 13:34:14 +00:00
Vaibhav Devmurari
0f9dcda519 Allow system server to access sysfs node of led lights.
To support input device lights manager feature in frameworks, provide
sysfs node access to system server process.
DD: go/pk_backlight_control (For keyboard backlight control for external
keyboards)

Similar CL: ag/20102346

Kernel provides a standardized LED interface to expose LED controls
over sysfs: https://docs.kernel.org/leds/leds-class.html
The feature will be provided for devices with kernel sysfs class led
support and vendor kernel driver for input controllers that do have
lights. The kernel sysfs class led support is a kernel config option
(LEDS_CLASS), and an input device driver will create the sysfs class
node interface.
By giving system_server the access to these sysfs nodes, the feature
will work on devices with the kernel option and kernel input/hid driver
support. We do use CTS tests to enforce the kernel options and the
input device drivers.

What's already supported:
- We already expose paths for UHID based LED nodes which covers all
bluetooth based peripherals that have custom vendor drivers to expose
LED sysfs nodes. (see CL aosp/1546377)

What's included in this CL:
- Exposing paths for sysfs nodes for external USB based devices that
expose LED nodes using vendor specific drivers using standard LED
interface provided by Kernel
- We are using specific paths for USB devices instead of
/sys/class/leds to avoid giving access to system LED nodes that would
also appear under /sys/class/leds (see discussion in aosp/1546377)

NOTE: Light HAL should never touch the HID device sysfs light, as the
light HAL only defines a number of lights supported
(https://android.googlesource.com/platform/hardware/interfaces/+/master/light/2.0/types.hal)
but not include input device lights, so we shouldn't have conflict
for managing these lights.

NOTE: External keyboard backlight is different for HAL light type
KEYBOARD which is for devices with attached keyboards.

Test: manual
Bug: 245506418
Change-Id: I17031179b7c1e56b0e841d4047859006d005fd21
2022-11-22 15:14:57 +00:00
Sophia Wang
54eea43433 Revert "gs201:conf Add memlat CPU idle awareness settings"
This reverts commit 0b1a579e9b.

Reason for revert: High perf regression

Change-Id: I626b353bf4fd8f85e648112f45d6c818a67d193c
2022-11-15 21:20:52 +00:00
Sophia Wang
0b1a579e9b gs201:conf Add memlat CPU idle awareness settings
Test: cat /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/memlat_cpuidle_state_aware

Bug: 256185411
Signed-off-by: Sophia Wang <yodagump@google.com>
Change-Id: I63c4a4816e5308d24b3274ed6a87180feeaa46f0
2022-11-11 02:02:06 +00:00