Commit graph

12 commits

Author SHA1 Message Date
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