summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-11-18 06:01:37 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-18 06:01:37 +0100
commit1033aafe6c42c9c060f395a867a5111517de90a4 (patch)
treeb9d047aee04bdc391bb3decf631d4137025df390
parentMerge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master (diff)
parentMount binderfs and add /dev/binder in recovery. (diff)
downloadandroid_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar.gz
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar.bz2
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar.lz
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar.xz
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.tar.zst
android_bootable_recovery-1033aafe6c42c9c060f395a867a5111517de90a4.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