Commit graph

204 commits

Author SHA1 Message Date
Yifan Hong
f8c0c17cfe Merge "matrix: IR HAL specifies interface/instance" am: 4ccae0fd74 am: ec2f7d96ff am: 282c07b49c
am: 8b28ae4f59

Change-Id: I339865df18d94dc460ac82117d59d141971a2823
2018-08-09 16:10:30 -07:00
Yifan Hong
282c07b49c Merge "matrix: IR HAL specifies interface/instance" am: 4ccae0fd74
am: ec2f7d96ff

Change-Id: I3b919295570b89955af6d0d5eab205b22cfde25d
2018-08-09 15:47:24 -07:00
Jong Wook Kim
da830c9da7 Uprev Wifi HAL to 1.3
Move Wifi HAL from 1.2 to 1.3

Bug: 111753174
Test: Builds and wifi works
Change-Id: I6a2b203997d6328d09065f23636d4ce01420942a
2018-08-09 15:40:09 -07:00
Yifan Hong
a8fc3a2542 matrix (current): IR HAL specifies interface/instance
This is missing from a very old CL. IR is an optional
HAL so specifying interface / instance here doesn't break
requirements.

Test: builds
Change-Id: I3aeab2798ce48cd1851b155fd41194fe70357aa2
2018-08-09 13:43:43 -07:00
Yifan Hong
baa72a6e63 matrix: IR HAL specifies interface/instance
This is missing from a very old CL. IR is an optional
HAL so specifying interface / instance here doesn't break
requirements.

Test: builds
Change-Id: I6d30d33041a01d8a8a724a89e00ba4c57d820d46
2018-08-09 13:43:01 -07:00
Yifan Hong
dcbd63920b Merge "matrix: Enforce kernel requirements in OTA only when flag is set." am: 0084639ada am: 0e193786e8 am: 707b4be33c
am: 5b97350e31

Change-Id: I60a2557ccab2873a3d2696698f6632188d6cffde
2018-07-30 10:55:25 -07:00
Yifan Hong
707b4be33c Merge "matrix: Enforce kernel requirements in OTA only when flag is set." am: 0084639ada
am: 0e193786e8

Change-Id: Icdd6ae9a045e801806fdfd449f7d36fd8f50c7d3
2018-07-30 10:42:58 -07:00
Yifan Hong
0e193786e8 Merge "matrix: Enforce kernel requirements in OTA only when flag is set."
am: 0084639ada

Change-Id: Iad98f059fd3a15a7bd5dffa1c53300340e3f9e19
2018-07-30 10:38:43 -07:00
Yifan Hong
f529c34cc4 matrix: Enforce kernel requirements in OTA only when flag is set.
Enforce only when PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS
is set. If a device does want to require kernel configs, it has to
provide info for new kernel in OTA package.
Bug: 111840577
Test: build and manual inspection

Change-Id: I36b3fcd9d14a9795aaf8d020bba6180c5e8681d1
2018-07-27 12:42:28 -07:00
Steve Muckle
3528bab763 Merge "change kernel config naming convention" am: f4fdfc325f am: 0564f4d6a9 am: 25b6255792
am: a156c4fdc6

Change-Id: Id7b51c88ac8698f7b58c7a815c0a19766baffc01
2018-07-25 16:44:58 -07:00
Steve Muckle
25b6255792 Merge "change kernel config naming convention" am: f4fdfc325f
am: 0564f4d6a9

Change-Id: I022e2854b4282034b409aa9f19470b42301cb17f
2018-07-25 16:35:53 -07:00
Steve Muckle
0564f4d6a9 Merge "change kernel config naming convention"
am: f4fdfc325f

Change-Id: I4c9e0e3baa0ec27ecb9e74f4accff4e2d2b91790
2018-07-25 16:31:47 -07:00
Steve Muckle
914a897385 change kernel config naming convention
The kernel config naming convention is being modified
to use .config instead of .cfg.

Bug: 111762107
Test: builds
Change-Id: I33fb46226313abc2c8e854301cef1ac1b34342d2
2018-07-23 17:30:28 -07:00
TreeHugger Robot
4d887f79ba Merge "Update power hidl to version 1.3 in compatibility_matrix.current.xml." 2018-06-23 01:30:11 +00:00
Peiyong Lin
4926bc12c4 Merge "Update power HAL to version 1.3." into pi-dev am: d8725d1521
am: ccb69d4d5b

Change-Id: I21afd7ffa7370e940993e5b316bc1075bddfa6fe
2018-06-22 16:50:58 -07:00
Peiyong Lin
ccb69d4d5b Merge "Update power HAL to version 1.3." into pi-dev
am: d8725d1521

Change-Id: I75ff593c6135dd77fb0bc03ec7ca53dc05ae06e2
2018-06-22 16:47:28 -07:00
Michael Wright
07eabef427 Update power HAL to version 1.3.
Adds new EXPENSIVE_RENDERING power hint.

This adds a new library which does not affect any pre-existing
targets unless they create and add a new binary which uses this.

BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I5fb33abbbe4c4958882a106dfa400ad74013e40d
2018-06-22 19:36:58 +00:00
Peiyong Lin
9475cc240b Update power hidl to version 1.3 in compatibility_matrix.current.xml.
BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I397a30044850ffa8d078dce7ef201073ae65c940
2018-06-21 14:02:13 -07:00
Yifan Hong
0887627cdd Merge "Do not install assembled framework matrix to device." am: c70978d890 am: bf4d56a5b3
am: 023eb2976e

Change-Id: I8fba1780d3494a32e0b9be2e7990c5b2f89074dd
2018-06-12 14:08:18 -07:00
Yifan Hong
bf4d56a5b3 Merge "Do not install assembled framework matrix to device."
am: c70978d890

Change-Id: I607c056eb99e558b9adf172262392767434243cc
2018-06-12 13:05:11 -07:00
Yifan Hong
774c2bfcca Do not install assembled framework matrix to device.
Test: `m` dist
Test: make system matrix incompatible, `m` dist fails
Test: `m` and /system/etc/vintf files are installed
Bug: 110056937
Change-Id: If0bf2023f48ef31fffaf8636b3893cbfb40270ee
2018-06-11 19:28:15 -07:00
TreeHugger Robot
b37c1b64c8 Merge "Add configstore@1.1 to current matrix." 2018-05-24 22:35:00 +00:00
Jaesoo Lee
efc9693b39 Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev am: ce7d394935
am: ff866b9b0d

Change-Id: I3fa3d2b579834c586b149055f158393a9b8991dd
2018-05-24 10:16:51 -07:00
Yifan Hong
dc523a0f59 Merge "P requires 4.14.42" into pi-dev am: 6e839e80bb
am: b50e8777f4

Change-Id: I49dd72822968c7126c2a93b0502fb29cefd271f0
2018-05-24 10:15:59 -07:00
Jaesoo Lee
ff866b9b0d Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev
am: ce7d394935

Change-Id: I610b46eb5a8d959e7ebacbc2beecb953b9e5383c
2018-05-23 18:20:47 -07:00
Yifan Hong
b50e8777f4 Merge "P requires 4.14.42" into pi-dev
am: 6e839e80bb

Change-Id: I7d741a1faf84be0dbf452faba71e635ef0db3fbb
2018-05-23 18:07:39 -07:00
TreeHugger Robot
ce7d394935 Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev 2018-05-24 00:50:19 +00:00
Jaesoo Lee
712ee82162 configstore: configstore HAL uprev'ed to 1.1
This change provides a reference implementation of the configstore HAL
v1.1.

Bug: 69691076
Test: tested on walleye-userdebug
Change-Id: I68ee224bcbda64f6fef91e8a0f95adb32d504aad
2018-05-23 15:48:36 -07:00
Yifan Hong
75c7e3d5b7 P requires 4.14.42
Test: build and manual inspection of matrices
Change-Id: Ib5223e41c175843babe9039011fe56a616b225af
Fixes: 72409164
2018-05-23 14:59:15 -07:00
Steven Moreland
74274cfbc6 Add configstore@1.1 to current matrix.
This was added late in P. Go ahead and require
configstore@1.1 since it is built from a universal source
for all devices as well.

Bug: 69691076
Test: N/A
Change-Id: I0203ecc2e70127c11f596896f71c869d12cd3973
2018-05-23 13:35:08 -07:00
Yifan Hong
39c6033ce8 Merge changes from topic "pi_matrix" into pi-dev am: 3569b0273f
am: cdd39fb0d7

Change-Id: Id9d5db03edbd9c53512d385c7c03f3d5eb0081dc
2018-05-16 16:38:32 -07:00
Yifan Hong
cdd39fb0d7 Merge changes from topic "pi_matrix" into pi-dev
am: 3569b0273f

Change-Id: I6c82b5536b11f458b28044cbe8c3ca469f3d88bf
2018-05-16 15:53:58 -07:00
TreeHugger Robot
3569b0273f Merge changes from topic "pi_matrix" into pi-dev
* changes:
  matrix: broadcastradio@2.0::IBroadcastRadio/.*
  matrix: nn@1.0-1
  matrix: graphics.mapper@2.0-1
  matrix: graphics.composer@2.1-2
2018-05-16 22:32:30 +00:00
Yifan Hong
f46d4d907e Merge "Update kernel minor revision for P." into pi-dev am: ae4136070e
am: f2fda5e4df

Change-Id: Iae6c5a640e395beaef06471ffcd2bae26c0f29b2
2018-05-16 15:31:45 -07:00
Yifan Hong
f2fda5e4df Merge "Update kernel minor revision for P." into pi-dev
am: ae4136070e

Change-Id: I0ad36b2b03aee9f2b7e87b7befbfe7750be8eee4
2018-05-16 15:08:30 -07:00
Yifan Hong
e18d1cd547 matrix: broadcastradio@2.0::IBroadcastRadio/.*
Test: builds
Bug: 79871481
Change-Id: Icd81124f74f60443f48322ab882cb6170b61ebb7
2018-05-16 14:31:19 -07:00
Yifan Hong
9b917bd21a matrix: nn@1.0-1
Test: builds
Bug: 79871481
Change-Id: I5d68a32dbbe740738e202aebf9cf867a39f48be8
2018-05-16 14:28:10 -07:00
Yifan Hong
71965a570d matrix: graphics.mapper@2.0-1
Test: builds
Bug: 79871481
Change-Id: I32accd4f4a20843c3491b1e5fa4508107bb275cd
2018-05-16 14:27:37 -07:00
Yifan Hong
84dd44b630 matrix: graphics.composer@2.1-2
Test: builds
Bug: 79871481
Change-Id: Icaa31db4b6c5795474fd423a3ac65562fb6a6e6d
2018-05-16 14:26:43 -07:00
Yifan Hong
22af37df18 Update kernel minor revision for P.
These are the P requirements of kernel versions:
4.4.107, 4.9.84, 4.14.40.

Test: build and manual inspection of matrices
Test: boots
Test: vts_treble_vintf_test

Change-Id: Ic3cec1395e960000b70c6e001aa4981a9ffcd8c6
Fixes: 72409164
2018-05-16 11:07:28 -07:00
Steven Moreland
b713793f93 rename BUILT_SYSTEM_{COMPATIBILITY_,}MATRIX am: 515324a7a4 am: 240aa37762
am: 93df7cf513

Change-Id: Ia233238a01ef612e178a91d1a5e08a5ec72b0c76
2018-05-02 18:36:44 -07:00
Steven Moreland
9679cb8942 Remove early checks on manifest. am: a5cca55a1f am: e03003b4de
am: 5920eae277

Change-Id: I8637f62475356fb7999f2085f191500a03d10bdb
2018-05-02 18:36:37 -07:00
Steven Moreland
93df7cf513 rename BUILT_SYSTEM_{COMPATIBILITY_,}MATRIX am: 515324a7a4
am: 240aa37762

Change-Id: Ib11c05f8591c559d70154f8d06007f7d3c027342
2018-05-02 18:29:05 -07:00
Steven Moreland
5920eae277 Remove early checks on manifest. am: a5cca55a1f
am: e03003b4de

Change-Id: I6932f9a4091ad6d3d6ab1c9c2ee464becd53752f
2018-05-02 18:29:00 -07:00
Steven Moreland
515324a7a4 rename BUILT_SYSTEM_{COMPATIBILITY_,}MATRIX
For consistency with BUILT_VENDOR_MATRIX.

Bug: 66917623
Test: manual
Change-Id: I666eceeb9fc20e5f5754f605c2fbb6530e51b326
2018-05-01 18:36:30 -07:00
Steven Moreland
a5cca55a1f Remove early checks on manifest.
These are to be checked in verify_vintf_matrices at
the end of the build when all of the manifest fragments
are available.

Bug: 66917623
Test: check that verify_vintf_matrices hits these checks
Change-Id: I3f184a05a6a95751384da077257dddcf73d3a6f2
2018-05-01 18:36:30 -07:00
android-build-team Robot
0aa7b9ccb8 Merge "matrix: copy kernel configs to subdirectory." into pi-dev am: 14bdba8865
am: faf69300b6

Change-Id: Iba9dd65c68d9b90e8162c3be67416df0be0624d0
2018-04-30 23:18:41 -07:00
Yifan Hong
a6a1e0b2d2 Restore kernel requirements for frozen matrices.
Requirements for legacy/1/2.xml has changed because
android-base.cfg files are changed. These files should
build from an older snapshot of the requirements.

Fixes: 78576469
Test: builds
Test: vts_treble_vintf_test

Change-Id: I908ebbe495ae06f983ef983a1be7937cf6be1c12
Merged-In: I908ebbe495ae06f983ef983a1be7937cf6be1c12
2018-04-30 17:27:46 -07:00
Yifan Hong
d8a4d3463e Add 4.14.0 kernel to all matrices.
P framework can work with 4.14 kernel. 0 should
be updated to the correct value in a follow-up
patch.

This creates the following tags in all matrices:
Kernel 4.14 common requirements
Kernel 4.14 requirements on CONFIG_ARM is set
Kernel 4.14 requirements on CONFIG_ARM64 is set

Bug: 72409164
Bug: 77886167
Test: manually inspect built matrix
Change-Id: I82168df314ad61b21440ec5c703db8358468e083
Merged-In: I82168df314ad61b21440ec5c703db8358468e083
2018-04-30 16:33:56 -07:00
Yifan Hong
efbb22fec4 matrix: copy kernel configs to subdirectory.
Bug: 78576469
Test: make vintf metadata and manual inspect
Test: vts_treble_vintf_test
Change-Id: Ie3c299e74c9479cbf9a868aeef96f5850feb8cfe
2018-04-30 15:41:41 -07:00
Steven Moreland
2d2e2d5c05 Add compatibility_matrix.current.xml for Android Q.
HAL development is starting for Andorid Q, so we need this.

Test: m compatibility_matrix.current.xml
Test: assemble_vintf (but b/78895849)
Test: boot a Pixel device after setting its target-level to 4
    and verify that the compatibility check passes, and the
    file is in the correct location (system/etc/vintf) and that
    the dependencies are setup properly.
Change-Id: I42426d0145a97c719092306abc4f7ce8fa2b51bd
2018-04-30 14:28:49 -07:00
Yifan Hong
366101caf4 Restore kernel requirements for frozen matrices.
Requirements for legacy/1/2.xml has changed because
android-base.cfg files are changed. These files should
build from an older snapshot of the requirements.

Fixes: 78576469
Test: builds
Test: vts_treble_vintf_test

Change-Id: I908ebbe495ae06f983ef983a1be7937cf6be1c12
2018-04-26 18:40:37 -07:00
Steven Moreland
db33cf2552 Deprecate nfc@1.0 for P.
nfc@1.0 requires a conf file (libnfc-nci.conf) in order to work.
Since this file has no schema, it is a system<->vendor violation
and must be placed on the system image, however this makes the
system image non-generic.

nfc@1.1 contains this configuration in the interface, and so it
can be used entirely without creating a Treble violation.

Test: P-launching devices have nfc@1.1
Bug: 72080121
Change-Id: I7a99eb7cd5e577be0c70b4c5124f28fa471717e6
2018-04-23 09:30:37 -07:00
Yifan Hong
26e3a58f53 Add 4.14.0 kernel to all matrices.
P framework can work with 4.14 kernel. 0 should
be updated to the correct value in a follow-up
patch.

This creates the following tags in all matrices:
Kernel 4.14 common requirements
Kernel 4.14 requirements on CONFIG_ARM is set
Kernel 4.14 requirements on CONFIG_ARM64 is set

Bug: 72409164
Bug: 77886167
Test: manually inspect built matrix
Change-Id: I82168df314ad61b21440ec5c703db8358468e083
2018-04-12 16:18:15 -07:00
Steven Moreland
92ea6540a5 Freeze current as compatibility_matrix.3.xml.
This freezes the current compatibility_matrix for
Android P.

Fixes: 68112778
Test: m (assemble_vintf checks devices)

Change-Id: Ida30b7ba7f5df7c2755bd7c737190574b9195a92
2018-04-03 11:19:40 -07:00
Steven Moreland
61f1ddf635 Add confirmationui to compatibility matrix.
Bug: 68112778
Test: install compatibility matrix
Change-Id: Ibab77dce5848b0843c5c33048e7d027f0d3fe099
2018-04-02 15:02:26 -07:00
Steven Moreland
adbe943fd5 Add automotive.audiocontrol to compatibility matrix.
Bug: 68112778
Test: install compatibility matrix
Change-Id: I0829a91d2f715886dc226131d4ef50ad0dec8075
2018-04-02 15:01:13 -07:00
Yifan Hong
e84319da9d Merge "matrix: add radio.config" into pi-dev 2018-04-02 18:21:01 +00:00
TreeHugger Robot
1398462d18 Merge "matrix: secure_element use regex eSE[1-9][0-9]*" into pi-dev 2018-03-30 20:57:29 +00:00
TreeHugger Robot
e7fb362dc1 Merge "matrix: radio 1.0-2 IRadio/slot[1-3], ISap/slot1" into pi-dev 2018-03-30 20:09:56 +00:00
Yifan Hong
45ab966221 matrix: secure_element use regex eSE[1-9][0-9]*
Bug: 68112778
Bug: 73738616
Test: m framework_compatibility_matrix.xml

Change-Id: Ia9db2d3e55c0745f715de14be768ee73adaad988
2018-03-30 12:31:52 -07:00
Yifan Hong
1f8a14fce5 Merge "matrix: add gnss 1.1" into pi-dev 2018-03-30 18:04:20 +00:00
Yifan Hong
a1f7f7171a matrix: radio 1.0-2 IRadio/slot[1-3], ISap/slot1
Framework only uses these instances. If a vendor extension
of the framework use more instances, they should be added
via DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE.

Bug: 68112778
Test: builds + treehugger (telephony test)
Change-Id: Ie08db3c61f940d78e33f46ecc36e931dc688a7aa
2018-03-30 10:51:20 -07:00
Yifan Hong
ae85d49b31 Merge "matrix: add nfc 1.1" into pi-dev 2018-03-30 17:34:42 +00:00
Yifan Hong
f56d92f582 Merge "matrix: add bluetooth.a2dp" into pi-dev 2018-03-30 17:27:48 +00:00
Yifan Hong
860d745e0d matrix: add bluetooth.a2dp
Add bluetooth.a2dp to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml

Change-Id: I818a1d278eeae625f563ce74f056140407c50a64
2018-03-30 00:14:24 +00:00
Yifan Hong
fd7674f596 matrix: add gnss 1.1
Add gnss 1.1 to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml

Change-Id: I4a3676ab85db6c4bd632224298524dfa70f9ecf6
2018-03-30 00:10:06 +00:00
Yifan Hong
da9ee894a2 matrix: add nfc 1.1
Add nfc 1.1 to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml
Change-Id: I48ea252b5f6318f091ecf91dfaee8b71625eafe3
2018-03-30 00:09:19 +00:00
Yifan Hong
3874ebc5b2 matrix: add radio.config
Add radio.config to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml
Change-Id: If4466e3f189897219b33cf7da09883cf63c66de3
2018-03-30 00:08:31 +00:00
Yifan Hong
e62d476e3d matrix: ENFORCE_NO_UNUSED_HALS
Enforce that all hals in the device manifest are
in framework compatibility matrix -- at build time.

Bug: 65028233
Test: build a phone without DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX.
Change-Id: Ibf220f80ca3621ddbf8288d372d5f40336e45248
Merged-In: Ibf220f80ca3621ddbf8288d372d5f40336e45248
2018-03-29 14:55:07 -07:00
Yifan Hong
4d6c4a96ae matrix: generalize case for LOCAL_WARN_REQUIRED_HALS
Add LOCAL_ASSEMBLE_VINTF_ENV_VARS_OVERRIDE and
LOCAL_ASSEMBLE_VINTF_ERROR_MESSAGE for a more generic case.

Test: m framework_compatibility_matrix.xml -j
Bug: 65028233
Change-Id: Iec142d161daa18122e7a6daebb82c7230cb98ba6
Merged-In: Iec142d161daa18122e7a6daebb82c7230cb98ba6
2018-03-29 14:55:07 -07:00
Yifan Hong
b2a83d1770 matrix: IGNORE_TARGET_FCM_VERSION -> VINTF_*
All "private" environment variables to assemble_vintf
(inserted by the build rules, not build system variables)
should have this prefix (to distinguish against,
e.g. PRODUCT_ENFORCE_VINTF_MANIFEST)

Test: m framework_compatibility_matrix -j

Bug: 65028233
Change-Id: Iaefa88cefc0918fb86235ea6fcd8e367cbd82788
Merged-In: Iaefa88cefc0918fb86235ea6fcd8e367cbd82788
2018-03-29 14:55:07 -07:00
Yifan Hong
37ad8c4f64 matrix: define LOCAL_MODULE for all modules.
Test: m framework_compatibility_matrix -j
Bug: 65028233
Change-Id: Iab61771b8ebe0e1b771404bb25a0a04caf399585
Merged-In: Iab61771b8ebe0e1b771404bb25a0a04caf399585
2018-03-29 14:55:07 -07:00
Yifan Hong
7d61a8d47b matrix: ENFORCE_NO_UNUSED_HALS
Enforce that all hals in the device manifest are
in framework compatibility matrix -- at build time.

Bug: 65028233
Test: build a phone without DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX.
Change-Id: Ibf220f80ca3621ddbf8288d372d5f40336e45248
2018-03-29 11:29:32 -07:00
Yifan Hong
3693fe4ab5 matrix: generalize case for LOCAL_WARN_REQUIRED_HALS
Add LOCAL_ASSEMBLE_VINTF_ENV_VARS_OVERRIDE and
LOCAL_ASSEMBLE_VINTF_ERROR_MESSAGE for a more generic case.

Test: m framework_compatibility_matrix.xml -j
Bug: 65028233
Change-Id: Iec142d161daa18122e7a6daebb82c7230cb98ba6
2018-03-29 11:29:32 -07:00
Yifan Hong
e0cad7a553 matrix: IGNORE_TARGET_FCM_VERSION -> VINTF_*
All "private" environment variables to assemble_vintf
(inserted by the build rules, not build system variables)
should have this prefix (to distinguish against,
e.g. PRODUCT_ENFORCE_VINTF_MANIFEST)

Test: m framework_compatibility_matrix -j

Bug: 65028233
Change-Id: Iaefa88cefc0918fb86235ea6fcd8e367cbd82788
2018-03-29 11:29:32 -07:00
Yifan Hong
7831d437d4 matrix: define LOCAL_MODULE for all modules.
Test: m framework_compatibility_matrix -j
Bug: 65028233
Change-Id: Iab61771b8ebe0e1b771404bb25a0a04caf399585
2018-03-29 11:29:32 -07:00
TreeHugger Robot
4e2a68ee79 Merge "Build DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE" into pi-dev 2018-03-29 03:21:33 +00:00
Yifan Hong
dc83563449 matrix: Set drm 1.1/* as required, 1.0/* as optional
This correctly specifies the requirement of framework
on device. Specifically:

A device at target FCM version 2 is still required to
provide 1.0/default as specified in 2.xml.

Combined matrix at FCM version 2 has the following:
optional: 1.1/.*
optional: 1.0/.*
required: 1.0/default

A device at target FCM version 3 is required to provide
1.0-1/(any instance) as specified in 3.xml.

Matrix at FCM version 3 has the following:
required: 1.1/.*
optional: 1.0/.*

OTA: old libvintf does not recognize the <regex-instance>
tag, and parse this as "no instance requirements"
(satisfyAllInstances returns true). Hence this should
state no restrictions for old libvintf.

Caveat:
if a device does not provide any DRM instance, OTA
(specifically, full OTA that upgrades vendor image to
target level 3) will pass, but when the device is booted
there will be run-time checks about inconsistent builds
and VTS failures. But this case should be caught at build
time.

Test: vts_treble_vintf_test
Test: vts_testability_checker64 --compliance \
      android.hardware.drm@1.0::IDrmFactory
Test: vts_testability_checker64 --compliance \
      android.hardware.drm@1.1::IDrmFactory
Fixes: 73556059
Bug: 68112778
Change-Id: I45c76356d304a94d716eddebc621d367c0ce165a
2018-03-29 00:48:30 +00:00
Yifan Hong
13df628b8f Build DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE
... along with compatibility_matrix.device.xml.
The new module cm.device.xml contains the original content
of empty.xml (kernel configs, sepolicy, etc.) as well
as HALs from DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE.
This variable points to a framework compatibility matrix
that contains framework HALs as a vendor extension; all
HALs in this file must be optional.

Bug: 65028233
Test: m framework_compatibility_matrix.xml -j and manual inspection
Test: vts_treble_vintf_test

Change-Id: I94949f62f7f5b332d845f2e7fa4714df7c49ed3e
Merged-In: I94949f62f7f5b332d845f2e7fa4714df7c49ed3e
2018-03-28 17:45:26 -07:00
TreeHugger Robot
28efdacd2c Merge "matrix: camera HAL uses [^/]+/[0-9]+ instance." into pi-dev 2018-03-28 20:51:08 +00:00
TreeHugger Robot
2953a165c7 Merge "matrix: NN HAL uses .* instance." into pi-dev 2018-03-28 17:54:58 +00:00
Yifan Hong
383860105f matrix: NN HAL uses .* instance.
Use regular expression. NN HAL is a new
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: I1bfb916854c62fa75d341d4572a15a944178eb47
2018-03-28 17:50:40 +00:00
Yifan Hong
f945261b30 matrix: camera HAL uses [^/]+/[0-9]+ instance.
Use regular expression. Camera HAL is an optional
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: Idf2b8cbe49f5a913df744833147bb1c48588c956
2018-03-27 23:49:16 +00:00
Yifan Hong
fee9ea41cc Build DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE
... along with compatibility_matrix.device.xml.
The new module cm.device.xml contains the original content
of empty.xml (kernel configs, sepolicy, etc.) as well
as HALs from DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE.
This variable points to a framework compatibility matrix
that contains framework HALs as a vendor extension; all
HALs in this file must be optional.

Bug: 65028233
Test: m framework_compatibility_matrix.xml -j and manual inspection
Test: vts_treble_vintf_test

Change-Id: I94949f62f7f5b332d845f2e7fa4714df7c49ed3e
2018-03-27 16:28:51 -07:00
Yifan Hong
9b3392dcb5 matrix: radio HAL uses slot[0-9]+ instance.
Use regular expression. Radio HAL is an optional
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: I00a0d97a9528e0c4a72bde6244e47dc2842686ed
2018-03-27 15:24:29 -07:00
nagendra modadugu
8862966152 Add strongbox KM instance as optional
The strongbox instance of the Keymaster 4.0 HAL
is optional, as not all P devices are expected
to provide an implementation.

Test: builds
Bug: 68112778
Change-Id: I96a18cb31058d82b04ba3486a88ceac26058a7d2
2018-03-20 14:21:42 -07:00
nagendra modadugu
597197a5bf Remove KM strongbox instance temporarily
Strongbox is not supported on all devices
and breaks device builds (cf_x86_phone-userdebug).

This change to be relanded once dependencies are resolved.

Test: builds
Bug: 68112778
Change-Id: I846cdbcfdf7d0a76e0c86518da8a1bb4eeed3caa
2018-03-20 14:08:46 -07:00
nagendra modadugu
02d1bb7a96 Add strongbox KM instance to compatibilty matrix
Test: builds
Bug: 68112778
Change-Id: If04ff2b5ab95dd1a17c145f509657e5438d00bdc
2018-03-19 18:11:02 -07:00
Steven Moreland
6684b2c65c Fix order of compatibility matrix.
Bug: 65028233
Test: N/A
Change-Id: I46a0f86d19ba74186fc6eac32fa7c7b2289bcbdb
2018-03-19 11:23:56 -07:00
Yifan Hong
1d853503ef Update compatibility_matrix.current.xml.
Add the following:
    android.hardware.neuralnetworks@1.0::IDevice/hvx
    android.hardware.soundtrigger@2.1::ISoundTriggerHw/default
    android.hardware.usb.gadget@1.0::IUsbGadget/default
    android.hardware.vibrator@1.2::IVibrator/default
    android.hardware.wifi.hostapd@1.0::IHostapd/default
    android.hardware.wifi.supplicant@1.1::ISupplicant/default
    android.hardware.wifi@1.2::IWifi/default

Test: builds (checks VINTF data at build time)
Bug: 68112778
Change-Id: I3c48f2c35c1a7a63549b1a30c9c2bb02d707a4a2
2018-03-16 16:32:25 -07:00
Kevin Rocard
802931b173 Only allow audio V4 for devices targeting level 3
Device targeting the last level must use the last version of the
audio HAL.

Bug: 38184704
Test: cuttlefish has no build target, so there is no way to test,
      nevertheless the exact same trivial change was made to Pixel 2
Change-Id: If767803e08caf5b03edcea26fd8dba1cca12cc38
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-07 19:12:50 -08:00
Kevin Rocard
5b84bbb548 Audio V4: Require audio V4 in new devices, optional for upgrades
Upgrading devices are allowed to stay on audio V2,
but can also update to V4.

Bug: 38184704
Test: compile and check V4 can be loaded and functional with lshal
Change-Id: Ib1c8381925837a8402ae535755a0558afcf26f4d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 18:30:23 +00:00
nagendra modadugu
897dbb572c keymaster: add 4.0 to compatibility matrix
Change-Id: I53af1c33f05b73459372a8f8bfc8c0997a925a92
2018-03-01 17:26:12 -08:00
Yifan Hong
e3d0fd346b Merge "Fwk matrix use PLATFORM_SEPOLICY_*" am: 8f7ff5730b am: 9dda065989
am: 777d18ccaf

Change-Id: I076b6a910f6b6c43b00beb42cdf19502514f2e9f
2018-02-07 23:21:49 +00:00
Yifan Hong
b426af39ad Fwk matrix use PLATFORM_SEPOLICY_*
It used BOARD_SEPOLICY_VERS as a workaround, which is incorrect.

Test: m framework_compatibility_matrix.xml -j
Bug: 67920434
Change-Id: I029edd2f573740af272f8b767bb1ec5cc1dc0415
2018-02-05 13:45:36 -08:00
Ruchi Kandoi
54791a993b Merge "Add VTS Test for Secure Element HAL" am: 6a75cdbe96 am: 3b24df528a
am: 6e3948f36b

Change-Id: I0a360479fd9f31352bacb4b857672f642c99b253
2018-02-02 06:55:31 +00:00
Ruchi Kandoi
22a4d0e07e Add VTS Test for Secure Element HAL
Test: Run VTS test
Bug: 64881253
Change-Id: If77d87c88bd073409dce3d18aba8f15a1267a80e
2018-01-31 11:51:48 -08:00
Yifan Hong
21bd732f22 Merge changes from topic "vintf_kernel_ver" am: f3dd36fd5c am: 3c0032a742
am: ec8fb9e8ef

Change-Id: I2ddb722ec90ea07dc0b8d234fa55ac85b2cb8d6e
2018-01-24 22:52:44 +00:00
Yifan Hong
94b7d2ca19 Compatibility matrices: add minor revision to kernel versions
Test: builds
Bug: 72388844
Change-Id: Id60cef10610f39d70eebccbeb6e625e3d93795c6
2018-01-23 17:28:27 -08:00
Yifan Hong
44c9b2e1f4 Compatibility matrices: kernel req at each FCM version
* devices with Shipping FCM version
   legacy / O / O-MR1 use 3.18, 4.4, 4.9

* devices with Shipping FCM version P use 4.4 4.9

Bug: 72389707

Test: manual inspection on
$OUT/system/etc/vintf/compatibility_matrix.*.xml

Change-Id: I4f37325c0210f88e9e6d3e7136a82d50da3e93fe
2018-01-23 17:28:27 -08:00
Wei Wang
277ce85c27 add powerhal 1.2 to compatibility_matrix
Bug: 71613821
Test: Build
Change-Id: I4587028c5c38e35e00522b2e9041f0b07ac7e036
2018-01-16 18:37:58 -08:00
Yifan Hong
c8b8599fd4 Merge "Install all comp mat to system image" am: 1612a3c27e am: 8f44cca63e
am: c420de7939

Change-Id: Iee2942bb2b8ce0874ea8bfed781368d8ac5284c8
2018-01-11 19:28:51 +00:00
Yifan Hong
2d8442c762 Install all comp mat to system image
Moved framework_compatibility_matrix.xml module definition
from target/board/Android.mk here because it depends on
compatibility_matrix.*.xml.

Test: m dist
Bug: 69636193

Change-Id: I7480b27756992b47555f6b397925170ae9d1ac22
2018-01-10 19:17:23 -08:00