Commit graph

16 commits

Author SHA1 Message Date
Michelle Yang
75726e25f3 Set /dev/video12 file permissions for gs101
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: I181c8f8d1647d91d092d83887f28bef640e3b464
2023-01-05 19:20:28 +00:00
Vaibhav Devmurari
a690698afa 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)

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: I2e9f3cbce55f3f894ca346bafa5ded280086a3ca
2022-10-04 09:22:33 +00:00
matthuang
4ea4bdb936 Set permission and owner for acd-com.google.usf.non_wake_up.
Bug: 195077076
Test: check file permission.
Change-Id: Id03d489dda97a05a72ebf6a8c2e1987f70159f4f
2022-07-01 02:16:04 +00:00
Erik Staats
ba462d1ed8 ueventd.gs101.rc: Add raw HID devices.
Bug: 195964858
Test: Paired a Sony PS4 controller and verified that it's discovered by
 the dynamic sensor HAL.
Test: See details in testing done comment in
 https://googleplex-android-review.git.corp.google.com/15847274 .
Change-Id: I8d5987171d5b316410e8ba34cc02a4d4508e0054
2021-09-27 18:34:39 +00:00
Tri Vo
f29084928b Set /dev/sg1 permissions in ueventd.rc
This way we don't need to guess when we need to chown.

Bug: 187105270
Test: boot raven
Change-Id: I36b17d440ef340e558b10ed3fef03435ec63690f
2021-08-11 16:02:34 +00:00
Andrew LeCain
20c4f4090c Set owner for mfg_data partiton.
Enable the FP HAL to read from the mfg_data partition chowning to system

Bug: 193549276
Test: sideload cal with valid signature. auth. enroll.
Change-Id: I0897e545dc368782587ae031716012a806d05485
2021-07-27 21:32:11 +00:00
Armelle Laine
e81847c70d ueventd.gs101.rc add /dev/trusty-log0
Specify ownership to system and r/w permissions to user/group.
Allows dumpstate to access /dev/trusty-log0.

Bug: 188285071
Test: lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty
Change-Id: I935cb9dd11d1e0968ab0e2c9d7349de336502e7c
2021-06-15 14:35:43 +00:00
Roger Fang
9b811a56e7 gs101: import audio_amcs_ext library
Bug: 171854614
Test: Manually test
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Icd843f292eff510d43bc664ddf1a550c19479648
2021-04-28 08:50:40 +00:00
ichihlu
fbd55ffa06 Update to use secure share memory
Bug: 148421469
Test: TUI VTS pass

Change-Id: I17f5c9daa05bf8aed0f4dcda9a57557581945800
2021-04-20 10:58:13 +00:00
Ted Lin
41a0f99d0c ueventd.rc: set system ownership for direct charging
Bug:185041587
Test: ls -al /dev/log*
Change-Id: I02c635c424b37e9e9767d508397fc9c5673925e2
Signed-off-by: Ted Lin <tedlin@google.com>
2021-04-15 10:26:57 +00:00
millerliang
1868e419d5 audio: set the permission for dma heap
Set the permission for the two dma heap.
They are used for mmap audio in exclusive mode.
 /dev/dma_heap/aaudio_playback_heap
 /dev/dma_heap/aaudio_capture_heap

Bug: 165737390
Test: make
Change-Id: Ie8d35d59fb3bde10915dd0e0746852849acbad8c
2021-04-09 20:43:11 +08:00
Adam Shih
777c58e8ae Align modem's DAC setting with other AB partitions
Bug: 183174452
Test: Apply OTA locally under SELinux enforcing mode
Change-Id: I0cf4fdff565ded69cc342d7052aed990c6f55593
2021-03-23 04:54:57 +00:00
David Li
62903463d5 audio: add /dev/acd-audio_dcdoff_ref for audio effect visualizer
Set /dev/acd-audio_dcdoff_ref as 0660 system audio
crw-rw---- 1 system audio u:object_r:aoc_device:s0  500,  29 2021-03-18 22:19 /dev/acd-audio_dcdoff_ref

Bug: 180984363
Bug: 165719427
Test: make -j128
Test: ls -alZ /dev/acd-audio_dcdoff_ref
Change-Id: I4720349eccd5e3b797ff8e964329fe6352d5bba0
2021-03-22 02:07:32 +00:00
Charlie Chen
935a1dd591 Revert "Switch back from DMABUF to ION/BLOB allocator"
This reverts commit f35c9cb038.
To enable DMABUF again.
Patch: https://android-review.googlesource.com/c/platform/system/memory/libdmabufheap/+/1634146/
fixed the error when using DMABUF

Bug: 153786620
Test: reboot O6 device and confirm the error does not show up again
Change-Id: Id378fe1fe8b9615f72138575cec8e5e1e20caec9
2021-03-16 16:28:15 +08:00
Wonsik Kim
f35c9cb038 Switch back from DMABUF to ION/BLOB allocator
Revert of the following changes:
I70af757f5 conf: change a group about dma_heap for video codec
Id4fc2f04b uses dmabufheap on codec2
I090f0491f disable to use BLOB allocator

Bug: 182312949
Test: boot without DMABUF failures
Change-Id: Ibeb05a1341c15a206b8c1d2b9c9765769f6472e1
2021-03-11 13:56:46 -08:00
Robin Peng
c2b5ca99e3 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I2ebf7f019afed1cbe9b60dcd82581bd3a52fe109
2021-03-06 16:31:12 +08:00