Commit graph

153 commits

Author SHA1 Message Date
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Tianjie Xu
c971ea8d5d Move libboot_control to boot_control 1.1
It should belong to the default /misc implementation of boot control
1.1. Right now, the library as well as the bootloader_message_ab
are only used by cuttlefish. So move it over to reduce the confusion
in libbootloader_message.

Bug: 131775112
Test: build
Change-Id: I599678bf90d19718de811b9e34d82cf8fe1571a4
2019-12-16 16:31:31 -08:00
Haibo Huang
83b4c1e3e1 Fix build with new googletest
The new googletest requires prefix to be non-empty.

Change-Id: I3ebd13861c4803b53dbeb4ac5f247984814bef45
2019-11-08 12:17:34 -08:00
David Anderson
9441a1eb98 IBootControl: Use new defaultPassthroughServiceImplementation signature.
Using the new signature ensures that the device actually provides an
IBootControl 1.1 implementation.

Bug: N/A
Test: manual test
Change-Id: I0ddc1ed71535a31c887d94196295baa46ed37d3c
2019-11-05 17:05:05 -08:00
nelsonli
e74bc351f2 [vts-core] add VtsHalBootV1_0TargetTest to vts-core
Convert VtsHalBootV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $ atest VtsHalBootV1_0TargetTest
Change-Id: I96c5e07dba739722227ee1ad0e365cfed3ea822c
2019-10-18 15:43:34 +08:00
David Anderson
c07c90699a Fix requests for IBootControl 1.0 when using the 1.1 HAL.
Bug: 138861550
Test: cuttlefish boots
Change-Id: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
Merged-In: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
2019-10-17 20:46:07 +00:00
David Anderson
0473214d39 Add a default implementation and tests of IBootControl 1.1.
Bug: 138861550
Test: VtsHalBootV1_0TargetTest
      VtsHalBootV1_1TargetTest

Change-Id: I53ea2465612b03435c37c3b4edeaff72c368373b
2019-10-09 17:50:30 -07:00
David Anderson
e8f1a7fdc8 Introduce IBootControl 1.1.
libsnapshot needs to communicate to the bootloader that a merge is in
progress. This can be used to prevent factory data resets, prevent
flashing or wiping userdata/metadata, and warning when the active slot
changes.

Bug: 138861550
Test: builds
Change-Id: I577877696b5ec6920b9520d518374931ce9ddfaa
Merged-In: I577877696b5ec6920b9520d518374931ce9ddfaa
2019-10-07 12:41:46 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Tao Bao
1ac8d95b9d Remove the support for PRODUCT_STATIC_BOOT_CONTROL_HAL.
Bug: 34254109
Test: TreeHugger
Change-Id: I99b94f8afe6027874439ac5f03440326af734d36
2019-05-28 17:26:51 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Connor O'Brien
3847ffcc0e Add statically linked boot HAL impl in recovery
The default Treble boot HAL implementation currently can only work in
recovery on devices that specifically build their libhardware
implementation as a shared library for recovery.

This CL adds the option to statically link the libhardware
implementation in recovery instead of finding it using
hw_get_module(). This new approach allows devices that define
PRODUCT_STATIC_BOOT_CONTROL_HAL to begin using the Treble HAL in
recovery without requiring device-specific changes.

A previous version of this CL broke some device builds by omitting
libbase.recovery from LOCAL_SHARED_LIBRARIES. This version fixes that
issue.

Test: adb sideload succeeds
Bug: 78598708
Change-Id: I1c2ef7fa59575ac7975129f7544f741459b8540e
Signed-off-by: Connor O'Brien <connoro@google.com>
2018-10-19 12:21:13 -07:00
Hridya Valsaraju
cac42c19eb Reland "Set vendor: true for boot control HAL"
This reverts commit f8169cc2bc.

Bug: 117072247
Change-Id: Ib80966e31ed92d316217844d0399e6f6ba5fdd2c
2018-10-03 17:51:58 +00:00
Hridya Valsaraju
f8169cc2bc Revert "Set vendor: true for boot control HAL"
This reverts commit f009da1bf5.

Reason for revert: Breaking presubmit boot test on walleye

Change-Id: Ibeebb94b22cf81087b2ee60407a33e9d7e8a4d18
2018-10-02 20:09:17 +00:00
Hridya Valsaraju
f009da1bf5 Set vendor: true for boot control HAL
Test: make boot image and check if boot contol HAL implementation
is present in vendor and recovery.
Bug: 117072247

Change-Id: Id05563fc3b4bdf135bf7e1ae75d23f34a98845ab
2018-10-01 16:11:59 -07:00
Hridya Valsaraju
865c3bc510 Allow bootctrl hal to work in recovery
Bug: 78793464
Test: Compiles, boot commands work
Change-Id: Icd1dcd97bd03f070758ce945ddfdf2b13caf5ed4
2018-08-10 19:42:49 +00:00
Connor O'Brien
39a4374fc5 Merge "Fix boot VTS GetSuffix test" am: 5cd16a71f5 am: 9485e78b93
am: 0a7184563e

Change-Id: I86d3ed15cad7336d4250e52061574e12b8bf360e
2018-02-24 18:47:40 +00:00
Connor O'Brien
bb7ce50918 Fix boot VTS GetSuffix test
Rather than requiring "_a" and "_b" specifically, check format and
uniqueness of each suffix.

Bug: 69795155
Test: vts-tradefed run vts -m VtsHalBootV1_0Target
Change-Id: Iaf626a31b499ef74fd3c21b0a0757424a0def457
Signed-off-by: Connor O'Brien <connoro@google.com>
2018-02-23 13:54:53 -08:00
Zhuoyao Zhang
cc0933aa45 Merge "Convert boot, memtrack and power hal to use service name aware testing." am: b9515d9d3f am: a713584847
am: 6ab5305323

Change-Id: I0f8598253e34b08e73b8b65ff7fe91d937d5d8ad
2017-12-05 01:16:53 +00:00
Zhuoyao Zhang
b9515d9d3f Merge "Convert boot, memtrack and power hal to use service name aware testing." 2017-12-04 23:12:04 +00:00
Zhuoyao Zhang
2aba02af56 Convert boot, memtrack and power hal to use service name aware testing.
Motivation:
1) Support running the test against each hal service instance for the 
   registered hal.
2) Support testability checker to determine whether we should run the 
   test on the taget device.
3) Help to determine the process we want to profile for coverage data
   if running on coverage build. 
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalBootV1_0Target
      vts-tradefed run vts -m VtsHalMemtrackV1_0Target
      vts-tradefed run vts -m VtsHalPowerV1_0Target
      vts-tradefed run vts -m VtsHalPowerV1_1Target
Change-Id: Ie0bbd9ef9d9fbe11de5aee70fad9028fa0ae897c
2017-12-04 21:34:25 +00:00
Treehugger Robot
adf8208c52 Merge "Remove subdirs" 2017-11-29 17:53:33 +00:00
Steven Moreland
7b9888217e Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 17:19:46 -08:00
Steven Moreland
fcca4e23b7 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:43 -08:00
Chih-Hung Hsieh
1bf3cfc11d Merge "Use -Werror in hardware/interfaces" am: 02804915fb am: 8e736c21de
am: f53fe9317b

Change-Id: Ifc0a5be285be1a57d998db3c032e392b307cfa80
2017-11-28 19:31:03 +00:00
Chih-Hung Hsieh
3f2ea62d06 Use -Werror in hardware/interfaces
* Use hidl_defaults, which has -Wall -Werror.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ifbca0e176a8e031acc27256eb46d23b89cdf1a0e
2017-11-20 10:49:11 -08:00
Steven Moreland
8db261bc99 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 10:00:18 -08:00
Steven Moreland
a1169dd600 Update makefiles for hidl_interface.
Bug: 35570956
Test: manual
Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
2017-11-10 09:06:55 -08:00
Steven Moreland
d28c1bdf62 Merge "Automatic mk -> bp." am: e5fd969f19 am: 72c720a4e3
am: 26013bf6ac

Change-Id: Id936fb4806d122045c771c951220361efeef10c6
2017-11-07 21:24:49 +00:00
Steven Moreland
90e3a50f03 Automatic mk -> bp.
Automatic mk -> bp conversion for all modules here
which can be converted and built automatically.

Test: Soong resolves all dependencies
Bug: 37512442
Change-Id: Ib789212cb88d55731397c600d132e7c672c0d8be
2017-11-03 16:30:28 +00:00
Steven Moreland
1d7374c5e1 Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1
am: 116161d94e

Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
2017-10-11 16:39:21 +00:00
Steven Moreland
c3e80fa01e Update for Soong java makefiles.
Test: pass
Bug: 33420795
Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
2017-10-10 23:07:20 +00:00
Steven Moreland
9b019ac4fe Merge "Remove useless Android.mk files." am: 75d5cf515a am: f27cfa15d7 am: 33dc30ce49
am: 0653f3b212

Change-Id: I7c2da3cf30da7b4a1eda7e5369e9caa5ebab2462
2017-10-05 21:52:50 +00:00
Treehugger Robot
75d5cf515a Merge "Remove useless Android.mk files." 2017-10-05 21:40:27 +00:00
Steven Moreland
65f07d3094 Merge "Remove Android.bp subdirs loop." am: a8c16c91cc am: e9ed55ffc6 am: c3084485c4
am: ef78b3c62a

Change-Id: I5f2b87feb905d7ae0d726b01f60a0f69808ef733
2017-10-05 07:53:50 +00:00
Treehugger Robot
a8c16c91cc Merge "Remove Android.bp subdirs loop." 2017-10-05 07:38:52 +00:00
Steven Moreland
4b60470f1a Remove useless Android.mk files.
These have been c/p'd all over the place.

Test: m -j nothing
Bug: 33420795
Change-Id: I77979866dbb2345a41a873c84ec3fccd7b127510
2017-10-04 15:52:40 -07:00
Steven Moreland
d15ef6d7b4 Remove Android.bp subdirs loop.
Test: m -j nothing
Change-Id: Ic40edd1986fd40be4bf752ecbe925e6539d0df32
2017-10-04 15:47:30 -07:00
Steven Moreland
70bfb9d250 Merge "Update for hidl adapter module defaults." am: 988c977079 am: 861651985f am: b53e6ad535
am: 9a17f41f6f

Change-Id: I78d9292068b372238554fd9d35128e69f5b5f9d2
2017-10-04 21:54:11 +00:00
Steven Moreland
527fd76a0e Update for hidl adapter module defaults.
Test: pass
Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf
2017-10-04 12:47:03 -07:00
Steven Moreland
91799c6cc7 Merge "Fix typo in update makefiles." am: 9960148420 am: f07e364ce3 am: 71a193a425
am: 9fdd241905

Change-Id: I1c852fa6600fecc44d5afd1a65a5f51c43ecf71c
2017-09-27 00:02:52 +00:00
Steven Moreland
a5299ee739 Fix typo in update makefiles.
Bug: 37518178
Test: pass
Change-Id: Ic401b3a473f15ca4c01e58b3072e19db7c31b653
2017-09-26 21:59:43 +00:00
Steven Moreland
7741c0e17b Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e am: b94d0c7290
am: 97228c0b7d

Change-Id: Ic4b459b7c1a4325453945b0b00db8f44e4e77c26
2017-09-26 13:36:09 +00:00
Steven Moreland
26a0bb2762 Update makefiles for hidl adapter.
Bug: 37518178
Test: manual
Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
2017-09-25 18:35:56 +00:00
Jaekyun Seok
81104ae5ef Add 'vendor.' prefix to a vendor HAL service name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a walleye device
Bug: 36796459
Change-Id: I4e8fbee791ec917a8f627a1366f4d44ec7e6febc
2017-09-12 08:01:42 +09:00
Tri Vo
b65c5ceff2 VTS tests now static link to HAL def libs.
And use VtsHalTargetTestDefaults.
This is a partial cherry-pick of ag/2657080.

Bug: 64040096
Test: compiles, works fine in internal master
Merged-In: I8f6995e9536a9aefe283ee3effec9f5a7f03b620
Change-Id: I76d47d8546416b57055841851a9d343026cd3210
2017-08-25 11:48:10 -07:00
Steven Moreland
6da35570df Updating all makefiles.
Bug: 64487114
Test: none
Change-Id: I8608c8f636c35f21e4246a805a9eff6d14124e0a
2017-08-10 23:43:46 +00:00