From: Jerry Zhang Date: Fri, 14 Jul 2017 18:36:32 +0000 (+0200) Subject: Set sys.usb.ffs.aio_compat X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b75307e3e6f51b62e27223afa42782ae32686613;p=GitHub%2Fmt8127%2Fandroid_device_alcatel_ttab.git 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 --- diff --git a/ramdisk/init.mt8127usb.rc b/ramdisk/init.mt8127usb.rc index 2ef7493..cf72b61 100644 --- a/ramdisk/init.mt8127usb.rc +++ b/ramdisk/init.mt8127usb.rc @@ -12,6 +12,8 @@ on fs mkdir /dev/usb-ffs/adb 0770 shell shell 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 on post-fs-data chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file