From 707dbbc43f36347d1c54217028e789b458ef73a3 Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Tue, 7 Dec 2021 16:13:38 +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: 181729410 Test: build pass Change-Id: I546dad88e5e0c72c9bafdaded8e9026deccfbb88 --- conf/init.gs201.usb.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/init.gs201.usb.rc b/conf/init.gs201.usb.rc index 3fb626a3..5c7d8285 100644 --- a/conf/init.gs201.usb.rc +++ b/conf/init.gs201.usb.rc @@ -22,6 +22,7 @@ on early-boot 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 symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1 # mtp function