Board tree for Google Tensor G2 devices
Find a file
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
conf Allow system server to access sysfs node of led lights. 2022-11-22 15:14:57 +00:00
display display: remove boosted mode 2022-04-13 20:48:30 +00:00
dumpstate remove panther touch dump 2022-11-21 02:45:42 +00:00
factory sched: move sysfs to procfs 2022-03-24 17:44:37 +00:00
fingerprint fp_test: add command binary for fp test 2022-08-30 09:50:44 +00:00
firmware Remove mfc_fw.bin in original path for gs201 2021-10-26 16:34:00 +00:00
health health: Remove SOC based throttling 2022-08-31 19:47:00 +00:00
interfaces/boot s/gs101/gs201 2021-05-20 17:54:35 +08:00
keymaster s/gs101/gs201 2021-05-20 17:54:35 +08:00
location move brcm gps solution to gs-common 2022-10-28 05:33:37 +00:00
modem gs201: exclude GNSS and vcd if BOARD_WITHOUT_RADIO 2022-06-14 21:52:29 +00:00
overlay Add location bypass package overlay 2022-05-12 09:19:48 +00:00
overlay-factory Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
overlay-vendor/vendor/google/apps Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
pixelstats pixelstats: add cca_rate sysfs for VendorAudioHardwareStatsReported 2022-11-15 10:20:41 +00:00
powerstats powerstats: expose data provider methods for specific configurations 2022-10-19 06:38:54 +00:00
radio Update pixel stability logging mask 2022-10-16 13:50:28 +00:00
rro_overlays Add EuiccSupportPixelOverlay 2022-04-13 21:28:09 +00:00
usb Rename enable_usb dev node to move_data_to_usb 2022-10-31 14:07:51 +00:00
vibrator Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
widevine Use devkeys for widevine apex only if they are available 2022-10-07 01:37:18 +00:00
wifi wifi: Add flag BOARD_WLAN_CHIP 2022-09-16 11:31:17 +08:00
Android.bp s/gs101/gs201 2021-05-20 17:54:35 +08:00
Android.mk init gs201 builds 2021-05-19 17:38:25 +08:00
aosp_common.mk Bypass build time check for users-libs 2022-03-28 06:20:42 +00:00
BoardConfig-common.mk Merge "Switch to IGNORE_PREFER32_ON_DEVICE." am: 9c2cdd2219 am: 566efdc77c am: 9bb722f0a2 2022-11-16 23:49:35 +00:00
CleanSpec.mk Updat CleanSpec.mk for USB HAL migration to AIDL 2022-04-22 02:50:32 +00:00
compatibility_matrix.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
component-overrides.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
convert_to_ext4.sh gs201: convert_to_ext4: copy .files, fix md5sum 2022-08-01 18:00:49 +00:00
default-permissions.xml Drop the ACCESS_FINE_LOCATION for Restore 2022-11-03 05:29:45 +00:00
device-common.mk Revert "Revert "thermal: enable warm_reset on thermal shutdown"" 2022-11-12 21:18:17 +00:00
device-shipping-common.mk Bluetooth: move A2DP capabilities control to each project 2022-01-07 12:16:46 +00:00
device.mk Prevent preinstallation of AOSP apps on gs201 for clone profile 2022-11-22 13:39:04 +00:00
device_framework_matrix_product.xml audio: update hidl to 4.0 am: 6ec2acb1b0 am: 27e0af2a1e 2022-11-11 02:45:40 +00:00
disable_contaminant_detection.sh Disable USB contaminant detection when the disable flag is true 2022-09-30 08:56:59 +00:00
factory_common.mk enforce debugfs constraint on user build 2022-03-24 01:05:18 +00:00
init.display.sh use gs-common insert module script 2022-09-07 23:00:45 +00:00
init.hardware.wlc.rc.userdebug Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
manifest-gralloc3.xml audio: update hidl to 4.0 2022-11-11 01:50:19 +00:00
manifest.xml audio: update hidl to 4.0 am: 6ec2acb1b0 am: 27e0af2a1e 2022-11-11 02:45:40 +00:00
manifest_media.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
manifest_media_aosp.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
media_codecs.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
media_codecs_aosp_c2.xml [DO NOT MERGE] temporal remove CQ mode for HEVC encoder 2022-09-21 10:00:14 +00:00
media_codecs_bo_c2.xml update performance-point for AV1 decoder 2022-10-27 17:22:20 +00:00
media_codecs_performance.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
media_codecs_performance_c2.xml media: Fine tune c2.android.hevc.encoder performance point 2022-11-09 12:45:13 +00:00
media_profiles.xml Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
NOTICE Create gs201 device folder baseline 2021-05-19 13:35:26 +08:00
preinstalled-packages-product-gs201-device-debug.xml Prevent preinstallation of AOSP apps on gs201 for clone profile 2022-11-22 13:39:04 +00:00
task_profiles.json sched: move sysfs to procfs 2022-03-24 17:44:37 +00:00