From 77519ba82e5de55c87c5ceb25e5f838d5e0616bd Mon Sep 17 00:00:00 2001 From: Ricky Niu Date: Tue, 20 Jul 2021 22:38:36 +0800 Subject: [PATCH] usb: set sys.usb.mtp.batchcancel to true The cancelling behavior in MTP has two behaviors. 1. cancel requests one by one 2. batch cancel all requests This patch will set the property to true to enable batch cancel all requests. Bug: 193868252 Test: Verified work Change-Id: If8c78b00858b049c68eb2b398ce679fd830107c4 --- init.hardware.usb.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/init.hardware.usb.rc b/init.hardware.usb.rc index 5dcbe54d..999cc60f 100644 --- a/init.hardware.usb.rc +++ b/init.hardware.usb.rc @@ -49,6 +49,7 @@ on post-fs-data mount functionfs mtp /dev/usb-ffs/mtp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1 mount functionfs ptp /dev/usb-ffs/ptp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1 setprop sys.usb.mtp.device_type 3 + setprop sys.usb.mtp.batchcancel true setprop sys.usb.controller "a600000.dwc3" symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1 write /sys/module/libcomposite/parameters/disable_l1_for_hs "y"