summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-11-18 06:34:45 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-18 06:34:45 +0100
commit997f6e1bf73689a184d992dfaa0ab2041f486e7e (patch)
tree56c305f3528e04f44068c9e71c1c9c8a8c81a587
parent[automerger skipped] Merge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master am: d4777b4401 -s ours am: 77015df546 -s ours (diff)
parentMount binderfs and add /dev/binder in recovery. am: cb22b13418 am: 1033aafe6c (diff)
downloadandroid_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar.gz
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar.bz2
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar.lz
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar.xz
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.tar.zst
android_bootable_recovery-997f6e1bf73689a184d992dfaa0ab2041f486e7e.zip
-rw-r--r--etc/init.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 5cacb8bdb..983d91aa4 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -38,6 +38,14 @@ on init
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