ramdisk: Enable FunctionFS
authorStricted <info@stricted.net>
Sat, 28 Jul 2018 07:01:52 +0000 (09:01 +0200)
committerJan Altensen <info@stricted.net>
Fri, 22 Feb 2019 17:35:29 +0000 (18:35 +0100)
Change-Id: If7dee7520b075a5535c7ed2c70f305835504e471

ramdisk/init.mt8127usb.rc

index 4663761566ad40df2a5877565d35a1ef2636f47f..2ef7493adbfa2e238d8a4c04e4fff076dcdd0451 100644 (file)
@@ -6,6 +6,13 @@ on init
     write /sys/class/android_usb/android0/iSerial $ro.serialno
     write /sys/class/android_usb/android0/idVendor $sys.usb.vid
 
+
+on fs
+    mkdir /dev/usb-ffs 0770 shell shell
+    mkdir /dev/usb-ffs/adb 0770 shell shell
+    mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
+    write /sys/class/android_usb/android0/f_ffs/aliases adb
+
 on post-fs-data
     chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
     chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file