From 8dddc352faf022ba318277c795d180bbe7b4d48c Mon Sep 17 00:00:00 2001 From: Sriharsha Allenki Date: Mon, 19 Feb 2024 16:15:50 +0000 Subject: [PATCH] rosemary: rootdir: Set the sys.mtp.device_type property VtsTrebleSysProp test cases fail if the sys.mtp.device_type is unset. Set the property to value 3 so that the device appears as a phone on the host PC. Change-Id: I1123ca808cf027d6d787c58f58133b6ce67af4de --- rootdir/etc/init.mt6785.usb.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/etc/init.mt6785.usb.rc b/rootdir/etc/init.mt6785.usb.rc index c60671e..97885a6 100644 --- a/rootdir/etc/init.mt6785.usb.rc +++ b/rootdir/etc/init.mt6785.usb.rc @@ -35,6 +35,7 @@ on post-fs mkdir /dev/usb-ffs/ptp 0770 mtp mtp 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 # ncm function mkdir /config/usb_gadget/g1/functions/ncm.gs9