Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12b5dedf authored by Hongguang's avatar Hongguang
Browse files

Detect extcon device type from cable name.

Kernel modified the extcon device name to extcon[X] for sysfs instead of
separate device name. Follow that kernel change, the new
ExtconUEventObserver will retrieve extcon device type from
/sys/class/extcon/extcon[X]/cable.[Y]/name.

The target device needs to label the SoC's extcons to sysfs_extcon in
the device's vendor sepolicy to allow the system_server access.

Bug: 152245127
Bug: 193492798
Bug: 193114615
Test: presubmit and manual tests
Change-Id: I3468acc1ef7a273da7b81a223c884079bf465a9e
parent 82bf2153
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment