summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-11-18 05:39:14 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-11-18 05:39:14 +0100
commit865cf90387989e6d021faba9c1946781039c6b03 (patch)
tree9e7bba20ddcaa4e0339d33c2ff2419f03f99fa9d
parentMerge "recovery_utils: remove FDE support" (diff)
parenton boot class_start hal (diff)
downloadandroid_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar.gz
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar.bz2
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar.lz
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar.xz
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.tar.zst
android_bootable_recovery-865cf90387989e6d021faba9c1946781039c6b03.zip
-rw-r--r--etc/init.rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 5cacb8bdb..e4afecff6 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -38,12 +38,24 @@ 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
+
+ # Start essential services
+ start servicemanager
+
on boot
ifup lo
hostname localhost
domainname localdomain
class_start default
+ class_start hal
on firmware_mounts_complete
rm /dev/.booting