From 68c780d290cdb542e048145ae3f7f66ed7b1122d Mon Sep 17 00:00:00 2001 From: John Stultz Date: Mon, 18 Mar 2019 21:47:18 -0700 Subject: [PATCH] universal7580: recovery: Disable nonblocking_ffs to avoid recent crashes with adbd Recent changes to adbd have enabled nonblocking_ffs by default. These have seeminly uncovered some bad memory corruption in the kernel ffs gadget driver on every kernel I've tried so far. Unfortunately I've not been able to diagnose what is going wrong, so for now, lets disable the nonblocking_ffs. We still need to root cause the issue as its a problem even with the mainline kernel on HiKey, so its likely a generic kernel issue. Change-Id: Ia483f8f9a7792b0c470b855f3549a836306f9863 --- ramdisk/etc/init.recovery.samsungexynos7580.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ramdisk/etc/init.recovery.samsungexynos7580.rc b/ramdisk/etc/init.recovery.samsungexynos7580.rc index a404173..c60e8f3 100644 --- a/ramdisk/etc/init.recovery.samsungexynos7580.rc +++ b/ramdisk/etc/init.recovery.samsungexynos7580.rc @@ -1,2 +1,7 @@ on fs setprop sys.usb.ffs.aio_compat 1 + +on post-fs-data + # avoid USB crash + setprop persist.adb.nonblocking_ffs 0 + setprop ro.adb.nonblocking_ffs 0 -- 2.20.1