From 7fa06a5c278f76dd37bde49d8ab92e99cef0f3c1 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Thu, 16 Aug 2018 11:33:47 +0100 Subject: shinano-common: rootdir: 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: I540b979ee0890aa8e9b20ec7d4332c4193952c46 --- rootdir/init.recovery.qcom.rc | 2 ++ rootdir/init.sony.usb.rc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rootdir/init.recovery.qcom.rc b/rootdir/init.recovery.qcom.rc index 998c647..4d427f1 100644 --- a/rootdir/init.recovery.qcom.rc +++ b/rootdir/init.recovery.qcom.rc @@ -3,6 +3,8 @@ on init write /sys/class/android_usb/android0/idProduct 6182 symlink /dev/block/platform/msm_sdcc.1 /dev/block/bootdevice + setprop sys.usb.ffs.aio_compat 1 + on boot # Allow core adjustements write /sys/module/msm_thermal/core_control/enabled 0 diff --git a/rootdir/init.sony.usb.rc b/rootdir/init.sony.usb.rc index 727c268..679a600 100644 --- a/rootdir/init.sony.usb.rc +++ b/rootdir/init.sony.usb.rc @@ -31,6 +31,8 @@ on fs mkdir /dev/bus 0755 root root mkdir /dev/bus/usb 0755 root root + setprop sys.usb.ffs.aio_compat 1 + on property:sys.usb.config=mtp write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 0FCE -- cgit v1.2.3