mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-02 05:30:20 +00:00
redfin: usb: add state of usb extcon to monitorffs am: c4e6499d88 am: 09404a3c8a
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/1686048 Change-Id: I121a4643cec34214a417eec3d5ab18486c908c61
This commit is contained in:
@@ -66,7 +66,8 @@ using ::android::hardware::usb::gadget::V1_1::IUsbGadget;
|
||||
using ::std::string;
|
||||
|
||||
constexpr char kGadgetName[] = "a600000.dwc3";
|
||||
static MonitorFfs monitorFfs(kGadgetName);
|
||||
constexpr char kExtconUsbState[] = "/sys/class/extcon/extcon4/cable.0/state";
|
||||
static MonitorFfs monitorFfs(kGadgetName, kExtconUsbState);
|
||||
|
||||
struct UsbGadget : public IUsbGadget {
|
||||
UsbGadget();
|
||||
|
||||
Reference in New Issue
Block a user