summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupData.cpp
diff options
context:
space:
mode:
author Roy Luo <royluo@google.com> 2024-09-25 17:42:19 +0000
committer Roy Luo <royluo@google.com> 2024-09-25 17:42:19 +0000
commit82bc241205747c423e2e370163c393a65725f092 (patch)
tree8933a3505c798ae79e20135a92edbe2d86d408d3 /libs/androidfw/BackupData.cpp
parent28c0d2a2e3c39a03974c55d8650d86ca3eb7ca3b (diff)
Add legacy fallback for midi device identification
This commit refines the MIDI device identification logic to prioritize a new sysfs-based method that relies on the udc sysfs interface. If this method fails to identify the MIDI device (e.g., on older kernels lacking the necessary udc sysfs entries), the code falls back to the legacy method using the android_usb sysfs interface. This ensures compatibility with vendor freeze devices running older kernels while still leveraging the improved sysfs-based approach when available. Change-Id: I60d139b6aee2cfd7cf3cdea5fc8f1dc46f85cfca Flag: android.hardware.usb.flags.enable_usb_sysfs_midi_identification Bug: 333778731 Test: exercise usb midi with the flag on/off
Diffstat (limited to 'libs/androidfw/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions