Set sys.usb.ffs.aio_compat
authorJerry Zhang <zhangjerry@google.com>
Fri, 14 Jul 2017 18:36:32 +0000 (20:36 +0200)
committerJan Altensen <info@stricted.net>
Sun, 24 Feb 2019 12:31:38 +0000 (13:31 +0100)
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

ramdisk/init.mt8127usb.rc

index 2ef7493adbfa2e238d8a4c04e4fff076dcdd0451..cf72b612b4deca22faf5015aba5fda3c3c75b9da 100644 (file)
@@ -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