Commit Graph

22 Commits

Author SHA1 Message Date
Jooyung Han
fa2dd8e2ad Merge "Revert^2 "Add bootcontrol HAL APEX"" into main 2023-10-11 04:20:38 +00:00
Jooyung Han
c829836109 Revert^2 "Add bootcontrol HAL APEX"
e5687ce492

Change-Id: Ie86897efb0380d2ad2884b29ae45126d25d40b34
2023-10-04 01:03:45 +00:00
Treehugger Robot
3beb387558 Merge "Revert "Add bootcontrol HAL APEX"" into main am: ac9f70ee2f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2766666

Change-Id: Ie25e8545f086c130c56ed6709d89330ac4a11306
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-30 04:07:43 +00:00
Isaac Chiou
e5687ce492 Revert "Add bootcontrol HAL APEX"
Revert submission 2756126-bootcontrol-hal-apex

Reason for revert: Fix BB for b/301548350

Reverted changes: /q/submissionid:2756126-bootcontrol-hal-apex

Change-Id: Ia0da4a4983030f3a1bc4ff717e845e34ce9cfaa7
2023-09-28 07:26:41 +00:00
Jooyung Han
d99cf00892 Merge "Add bootcontrol HAL APEX" into main am: aefc0473b8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2756126

Change-Id: I8d1ee84352400f98069e94e2da5d75ce52d352a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 03:27:07 +00:00
Jooyung Han
ac5383d204 Add bootcontrol HAL APEX
To make the binary(and the apex) smaller, refactored dependency types.
The binary in the apex is now statically linked to its dependencies
if possible.

Bug: 297467553
Test: VtsHalBootAidlTargetTest
Change-Id: I4052c802cf0b6cd9ace4cd87bce6d5531a259237
2023-09-19 15:19:55 +09:00
Treehugger Robot
65ee60f992 Merge "Merge OWNERS files for boot" into main am: cbf319a710
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2746936

Change-Id: Id0c37d3540142df0f4fe384d2569d71da97920fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 23:42:42 +00:00
Devin Moore
eac9f99552 Merge OWNERS files for boot
Test: none
Bug: 296950573
Change-Id: I53e45a7d40b699c7413cac0fb29c14bd67c4a6f2
2023-09-08 20:32:15 +00:00
Alessio Balsini
1d2490ef61 Update bug component from Android Systems to OTA client am: dbf321c5ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2721154

Change-Id: I748c12a71d8598b552be10f250dbd771a1154f6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 15:10:00 +00:00
Alessio Balsini
dbf321c5ee Update bug component from Android Systems to OTA client
It's been a while since the Android Systems bug component does not
access the creation of new bugs for triage, instead, new bugs must
be created in the subcomponents of the team.
This change updates the bug component originally associated to this
subsystem from the Android Systems' 30545 to OTA client's 1014951.

Test: none
Bug: 270571229
Change-Id: I10ea8fba3b7683cf6259394f2163b68bfc96dfb5
Signed-off-by: Alessio Balsini <balsini@google.com>
2023-08-29 15:18:53 +01:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Steven Moreland
4d92497720 boot 'Hidl' test is actually 'Aidl'
Confusing names.

Bug: N/A
Test: N/A
Change-Id: Iaace7aa33dbbda1f390fa6506d76ba5a76a6f377
2022-11-04 22:02:09 +00:00
Steven Moreland
a0352cd8ed allow BootHidlTest uninstantiated
No instances to test if AIDL HAL is installed instead.

Bug: 257225651
Change-Id: I1cdd3de73c87fd62ad53924107f3df5fa5ff6aa7
Test: N/A
2022-11-03 20:18:53 +00:00
Kelvin Zhang
1cc8267aac Make BootControlHAL available in recovery
Test: th
Bug: 227536004
Change-Id: Idd0009f68598c85ef9fe234049851b9b8bd0d893
2022-08-31 16:23:38 +00:00
Kelvin Zhang
6dc58288fe Add VTS tests for IBootControl AIDL
Test: atest VtsHalBootAidlTargetTest
Bug: 227536004
Change-Id: I622424e4d1a9fe2b2f634dd7ec2515b78d0214c9
2022-08-03 11:24:34 -07:00
Kelvin Zhang
a6759d5d66 Return empty suffix for invalid slots
Old HIDL HAL returns empty suffix, we should maintain this behavior in
AIDL.

Test: bootctl get-suffix 9, make sure result is empty
Bug: 219966986
Change-Id: Ia01c6bda899f3c5e0cdd1007cb051f7558f2e911
2022-07-28 16:12:49 -07:00
Kelvin Zhang
781b4ff19e Check if AIDL service is declared before calling wait
If bootctl AIDL service is not installed and we call waitForService,
caller will block indefinitely. So check with
AServiceManager_isDeclared before calling waitForService.

Test: th
Bug: 227536004
Change-Id: I551040b222c6c9127fe79aceb36bb3d69b52c3b6
2022-06-27 16:34:28 -07:00
Bob Badour
d3d6065f7e [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  boot/aidl/client/Android.bp
  boot/aidl/default/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I2bddc0d13a4de6a5766de85fdf432fd05d84a581
2022-06-23 07:14:55 -07:00
Kelvin Zhang
b66d2a08f0 Add a wrapper for callers of BootControl HAL
We are switching BootControl from HIDL to AIDL. All clients must be
compatible with both implementations. To ease implementation, create a
wrapper that will use AIDL if possible, and fallback to HIDL otherwise.

Test: th
Bug: 227536004
Change-Id: Ia40cb384058a0052f7c5c39766534c23a095ca59
2022-06-17 10:22:17 -07:00
Kelvin Zhang
121bec542e Implement bootctrl aidl
There's already a libboot_control, which provides implementation for
bootcontrol HAL. Implement AIDL bootctrl server by wrapping
libboot_control

Test: th
Bug: 227536004
Change-Id: Ia54f91f7fd17b6e86956e458cdf0c36c31624dbc
2022-06-15 09:51:02 -07:00
Bob Badour
829f72e358 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  boot/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I2166ff89ef6a370312f902d3d534e11b4006da16
2022-06-08 10:09:09 -07:00
Kelvin Zhang
c056242bdf Add AIDL definitions for IBootControl
Test: th
Bug: 227536004

Change-Id: Ic27f41e640927639bf5b901c2b592224f9d8308b
2022-06-06 16:09:03 -07:00