Merge changes from topic 'b/31458381'

* changes:
  init.rc: have hwservicemanager start the HAL class
  Add hwbinder dev node permissions.
This commit is contained in:
Treehugger Robot 2016-09-26 23:54:53 +00:00 committed by Gerrit Code Review
commit 8d8545120c
3 changed files with 14 additions and 0 deletions

View File

@ -59,3 +59,4 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/grep $(PRODUCT_OUT)/syst
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/gatekeeper.$(TARGET_DEVICE).so)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/gatekeeper.$(TARGET_DEVICE).so)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/vendor)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/init.rc)

View File

@ -556,6 +556,8 @@ on boot
# Define default initial receive window size in segments.
setprop net.tcp.default_init_rwnd 60
# Start all binderized HAL daemons
start hwservicemanager
class_start core
on nonencrypted
@ -645,3 +647,13 @@ on property:ro.debuggable=1
service flash_recovery /system/bin/install-recovery.sh
class main
oneshot
service hwservicemanager /system/bin/hwservicemanager
user system
disabled
group system readproc
critical
writepid /dev/cpuset/system-background/tasks
on property:hwservicemanager.ready=true
class_start hal

View File

@ -19,6 +19,7 @@ subsystem adf
/dev/hw_random 0440 root system
/dev/ashmem 0666 root root
/dev/binder 0666 root root
/dev/hwbinder 0666 root root
# Anyone can read the logs, but if they're not in the "logs"
# group, then they'll only see log entries for their UID.