From 9589d291278c05dbe057e4b1f4d6ba8bb7a19709 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Fri, 14 Jul 2017 11:36:32 -0700 Subject: [PATCH] klte-common: Set sys.usb.ffs.aio_compat The kernel does not support aio with ffs. Set the property so adb/mtp know to use the compatible functions, and the same while in recovery. Bug: 37916658 Test: Use adb / use adb in recovery Change-Id: Id35a05fcb9952dcf7239bd15a61cc620537419bc --- rootdir/etc/init.qcom.usb.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc index 15eeec5..867d712 100644 --- a/rootdir/etc/init.qcom.usb.rc +++ b/rootdir/etc/init.qcom.usb.rc @@ -42,6 +42,8 @@ on fs mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 write /sys/class/android_usb/android0/f_ffs/aliases adb + setprop sys.usb.ffs.aio_compat 1 + # Following are the parameters required for usb functionality. They provide configurable options like # product_id/vendor id and allows specifying required functions: #