diff options
author | LuK1337 <priv.luk@gmail.com> | 2017-10-10 20:38:00 +0200 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-07 11:07:17 +0200 |
commit | 80ca589be905b2c0a8836db272026b0c49c17188 (patch) | |
tree | b60175478ec0e2c41d16f6ef3d1219b5eabc439b | |
parent | 998044b58800d72f72ca91a2197de6221529d76e (diff) |
shianno-common: usb: rootdir: Enable FunctionFS
Change-Id: I12ff6e794e6993940284e6dfb48b718c40fdd3b1
-rw-r--r-- | rootdir/init.qcom.rc | 7 | ||||
-rw-r--r-- | rootdir/init.sony.usb.rc | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 0bc4a3f..09f004e 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -43,9 +43,6 @@ on init chmod 0664 /proc/rdtag chown root system /proc/rdtag - mkdir /dev/bus 0755 root root - mkdir /dev/bus/usb 0755 root root - wait /dev/block/mmcblk0p1 chown oem_5997 oem_5997 /dev/block/mmcblk0p1 chmod 0770 /dev/block/mmcblk0p1 @@ -92,6 +89,8 @@ on fs write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059 + symlink /sdcard /storage/sdcard0 + on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 @@ -148,7 +147,7 @@ on boot # Send single UNSOL_CALL_RING notification setprop ro.telephony.call_ring.multiple false - + # Create folder for timekeep mkdir /data/time/ 0700 system system diff --git a/rootdir/init.sony.usb.rc b/rootdir/init.sony.usb.rc index d83cf69..727c268 100644 --- a/rootdir/init.sony.usb.rc +++ b/rootdir/init.sony.usb.rc @@ -23,6 +23,14 @@ on boot write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} write /sys/class/android_usb/android0/iProduct ${ro.product.model} +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 + mkdir /dev/bus 0755 root root + mkdir /dev/bus/usb 0755 root root + on property:sys.usb.config=mtp write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 0FCE @@ -32,7 +40,7 @@ on property:sys.usb.config=mtp write /sys/class/android_usb/android0/bDeviceProtocol 0 write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 - stop adb + stop adbd setprop sys.usb.state ${sys.usb.config} on property:sys.usb.config=mtp,adb @@ -56,7 +64,7 @@ on property:sys.usb.config=rndis write /sys/class/android_usb/android0/bDeviceProtocol 1 write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 - stop adb + stop adbd setprop sys.usb.state ${sys.usb.config} on property:sys.usb.config=rndis,adb @@ -80,7 +88,7 @@ on property:sys.usb.config=ptp write /sys/class/android_usb/android0/bDeviceProtocol 0 write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 - stop adb + stop adbd setprop sys.usb.state ${sys.usb.config} on property:sys.usb.config=ptp,adb |