From: Stricted Date: Sat, 28 Jul 2018 07:01:52 +0000 (+0200) Subject: ramdisk: Enable FunctionFS X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f7b92030109b018c4aba10db3f7b1202c4e5740;p=GitHub%2Fmt8127%2Fandroid_device_alcatel_ttab.git ramdisk: Enable FunctionFS Change-Id: If7dee7520b075a5535c7ed2c70f305835504e471 --- diff --git a/ramdisk/init.mt8127usb.rc b/ramdisk/init.mt8127usb.rc index 4663761..2ef7493 100644 --- a/ramdisk/init.mt8127usb.rc +++ b/ramdisk/init.mt8127usb.rc @@ -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