Skip to content

Commit

Permalink
Switch boot HAL to binderized mode
Browse files Browse the repository at this point in the history
Test: marlin boots, passes boot VTS, successfully sideloads an OTA.
Bug: 35763949
Change-Id: I3b1403ccdb57a9544a57cab8da118c6795901ebc
Signed-off-by: Connor O'Brien <connoro@google.com>
(cherry picked from commit b903712)
  • Loading branch information
cobrien7 committed Apr 4, 2017
1 parent 7127355 commit 768995b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions device-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ PRODUCT_PACKAGES += \
# Boot control
PRODUCT_PACKAGES += \
android.hardware.boot@1.0-impl \
android.hardware.boot@1.0-service

# Library used for VTS tests (only for userdebug and eng builds)
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
Expand Down
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</hal>
<hal format="hidl">
<name>android.hardware.boot</name>
<transport arch="32+64">passthrough</transport>
<transport>hwbinder</transport>
<impl level="generic"></impl>
<version>1.0</version>
<interface>
Expand Down
1 change: 1 addition & 0 deletions sepolicy/hal_bootctl.te
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ allow hal_bootctl gpt_block_device:blk_file rw_file_perms;
# A/B slot selection for the XBL partition. Allow also to issue a
# UFS_IOCTL_QUERY ioctl.
allow hal_bootctl sg_device:chr_file rw_file_perms;
allow hal_bootctl self:capability sys_admin;

# Read the sysfs to lookup what /dev/sgN device
# corresponds to the XBL partitions.
Expand Down

0 comments on commit 768995b

Please sign in to comment.