diff options
author | Jerry Zhang <zhangjerry@google.com> | 2018-08-16 11:33:47 +0100 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-25 22:16:12 +0200 |
commit | 7fa06a5c278f76dd37bde49d8ab92e99cef0f3c1 (patch) | |
tree | 955825d90a696da5dc38fa8571a21f4a9b2cd7da /rootdir | |
parent | 9f0cff2de4e17c54036b75f4d59458b172c581ec (diff) |
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
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.recovery.qcom.rc | 2 | ||||
-rw-r--r-- | rootdir/init.sony.usb.rc | 2 |
2 files changed, 4 insertions, 0 deletions
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 |