Mount binderfs and add /dev/binder in recovery.
Test: recovery mode
Bug: 170338625
Change-Id: I6c64039b4139a48f739a62e15a26e624566d252c
diff --git a/etc/init.rc b/etc/init.rc
index 5cacb8b..983d91a 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -38,6 +38,14 @@
write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/vm/max_map_count 1000000
+ # Mount binderfs
+ mkdir /dev/binderfs
+ mount binder binder /dev/binderfs stats=global
+ chmod 0755 /dev/binderfs
+
+ symlink /dev/binderfs/binder /dev/binder
+ chmod 0666 /dev/binderfs/binder
+
on boot
ifup lo
hostname localhost