summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-11-18 06:17:58 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-18 06:17:58 +0100
commitc3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf (patch)
tree56c305f3528e04f44068c9e71c1c9c8a8c81a587
parent[automerger skipped] Merge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master am: d4777b4401 -s ours (diff)
parentMount binderfs and add /dev/binder in recovery. am: cb22b13418 (diff)
downloadandroid_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar.gz
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar.bz2
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar.lz
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar.xz
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.tar.zst
android_bootable_recovery-c3f177b5ec63c6f7b3bccbd7e1e5ef6c250b9baf.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