summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-05-03 22:16:13 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-05-03 22:16:13 +0200
commit9c19cd047ebeb81a054e6a372285988414d4f295 (patch)
tree30cbb4d8dd6ef7c3c9c6460d51dd674e2c49e042
parent4f642824904851e8a8f225bfb63a5d9737e4abee (diff)
downloaddevice_goldelico_gta04-9c19cd047ebeb81a054e6a372285988414d4f295.zip
device_goldelico_gta04-9c19cd047ebeb81a054e6a372285988414d4f295.tar.gz
device_goldelico_gta04-9c19cd047ebeb81a054e6a372285988414d4f295.tar.bz2
init.recovery.gta04.rc: FunctionFS bindings for ADB
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--recovery/init.recovery.gta04.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recovery/init.recovery.gta04.rc b/recovery/init.recovery.gta04.rc
index 9ba71e5..a65a5f3 100644
--- a/recovery/init.recovery.gta04.rc
+++ b/recovery/init.recovery.gta04.rc
@@ -1,4 +1,10 @@
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/functions ffs
+
mount ext4 /dev/block/mmcblk0p3 /cache wait
on post-fs