History log of /system/libvintf/RuntimeInfo.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4cec603d4baef149fbe02ce35190db01d0c757f5 08-May-2017 Michael Schwartz <schwartzmi@google.com> Improve error message for AVB failures

Bug: 38131335
Bug: 36814984

Test: `m -j libvintf_test` and run test.
Change-Id: I952da9d08cfb0e16855bf63167e6067716abe777
Merged-In: I952da9d08cfb0e16855bf63167e6067716abe777
/system/libvintf/RuntimeInfo.cpp
6f2f63748f83fbb107dcc0e7e772189b8f0988a7 08-May-2017 Yifan Hong <elsk@google.com> Remove sepolicy files from libvintf.

CTS device info collects sepolicy files via
adb pull, not via libvintf.

Changes RuntimeInfo::fetchAllInformation
errors to warnings.

Bug: 38070361
Test: pass
Change-Id: I5157efcbe65940bc5e71f5df8b6e3f208368797c
/system/libvintf/RuntimeInfo.cpp
9346c6184acd2aaed8b7b18476c2494f118be4b4 26-Apr-2017 Yifan Hong <elsk@google.com> Add getters to RuntimeInfo

They are used by Java API.

Test: pass
Bug: 28656227
Change-Id: I612692b96a9df69dca5cf4d1b15fc6ec45c86ee7
Merged-In: I612692b96a9df69dca5cf4d1b15fc6ec45c86ee7
/system/libvintf/RuntimeInfo.cpp
6a3071a9c6b37e6562b7f5c3ccb82b2536e10bd5 28-Apr-2017 Yifan Hong <elsk@google.com> Renamed avb version variables in RuntimeInfo.

Old variable names are confusing.

Test: pass
Change-Id: I21d43b0615f52443fcda8c067507d2d7207ec3e7
Merged-In: I21d43b0615f52443fcda8c067507d2d7207ec3e7
/system/libvintf/RuntimeInfo.cpp
9499a758bf5cd9daaf2e413727013c7fe8fb0eae 20-Apr-2017 Yifan Hong <elsk@google.com> Add /proc/cpuinfo to RuntimeInfo.

Test: adb shell vintf
Bug: 37513906
Change-Id: I94617cb2ca0ae961ec56b2d22b663ecafbcbed48
Merged-In: I94617cb2ca0ae961ec56b2d22b663ecafbcbed48
/system/libvintf/RuntimeInfo.cpp
dc145b385fc9d369335d8176ff6b504b6c37f219 13-Apr-2017 Yifan Hong <elsk@google.com> Add avb.vbmeta-version to CompatibilityMatrix and RuntimeInfo

RuntimeInfo fetch avb vbmeta version by reading the following two sysprops:
- ro.boot.vbmeta.avb_version
- ro.boot.avb_version
If the sysprop does not exist, 0.0 is set.

Test: libvintf_test
Test: adb shell vintf (shows 0.0 because CLs
for sysprops are not merged yet)

Bug: 35322304
Change-Id: I345bc792d1a7ceb585d246ec657707814b42ceff
/system/libvintf/RuntimeInfo.cpp
10a218ed30cdc124ad239495c8adbc22a82d0cf4 13-Apr-2017 Yifan Hong <elsk@google.com> RuntimeInfo::sepolicyFilePaths for sepolicy files.

Create an API to report sepolicy files. The file paths
are TBD. This is for device info reporting purposes.

Test: pass
Bug: 36456394
Change-Id: Ia769dbb951aa1056e679dbd16f0a7cab1670aaa6
/system/libvintf/RuntimeInfo.cpp
4a4445dfc243c72c18c1f8199fb8eeb4e9a92a03 13-Apr-2017 Yifan Hong <elsk@google.com> Removed unused clear().

Removed it from CompatibilityMatrix, HalManifest
and RuntimeInfo.

Test: pass
Bug: 34620633
Change-Id: Ie91717dae09cacf974e43827657154055841b39a
/system/libvintf/RuntimeInfo.cpp
6c2e12f0e7a64be368813f5246d3c31809705537 07-Apr-2017 Yifan Hong <elsk@google.com> Remove libz-host dependency.

RuntimeInfo doesn't need to be retrieved on host.

Test: builds on mac

Bug: 36456394
Bug: 36983271
Bug: 36681384

Change-Id: Ide634663ecf6bf69cd618129b615a98333590866
/system/libvintf/RuntimeInfo.cpp
352226f8b598ba6877872546edf4bed00ca68cdd 07-Apr-2017 Yifan Hong <elsk@google.com> Revert "Revert "Create assemble_vintf""

Test: builds on mac

This reverts commit dbb9a780e050221fbedbf5bfdf3286994511c07c.

Bug: 36456394
Bug: 36983271
Bug: 36681384

Change-Id: Id01227fd856f56890fdf13035d04054cd2446e75
/system/libvintf/RuntimeInfo.cpp
dbb9a780e050221fbedbf5bfdf3286994511c07c 07-Apr-2017 Yifan Hong <elsk@google.com> Revert "Create assemble_vintf"

Test: none

This reverts commit c371908350ae073a54193db14588fe43548aa3ed.

Change-Id: Ie3b727f69d76ebe519a4c598905a4e16e845c3a4
/system/libvintf/RuntimeInfo.cpp
c371908350ae073a54193db14588fe43548aa3ed 05-Apr-2017 Yifan Hong <elsk@google.com> Create assemble_vintf

* Make libvintf available on host
* Created a small binary, assemble_vintf, that utilizes
the host-side libvintf to read the device manifest file
and fill in appropriate information (like sepolicy version)

Test: pass
Test: BORAD_SEPOLICY_VERS=25.0 assemble_vintf -i /path/to/manifest.xml
outputs manifest.sepolicy.version correctly.

Bug: 36456394
Bug: 36983271
Bug: 36681384

Change-Id: I5ea45353e380f9bf8d73f62d54094bef750c0a9d
/system/libvintf/RuntimeInfo.cpp
f3a68574718c38ef9445f1cf49104a6130c5b23a 05-Apr-2017 Yifan Hong <elsk@google.com> Add manifest/compatibility-matrix.type attribute

to distinguish device and framework HAL manifest, and
device and framework compatibility matrix.

Add .device / .framework entries to HalManifest and
CompatibilityMatrix class for device-only / fwk-only
entries. Access to these fields should be guarded with
a check to mType.

Test: libvintf_test
Test: boots
Change-Id: Id9c93c1e6bb585234a9ae6d9296f5a10582ef58f
/system/libvintf/RuntimeInfo.cpp
b4c8870f715643ee7d0845b3773f1109fb874c54 05-Apr-2017 Yifan Hong <elsk@google.com> Hide CompatibiilityMatrix::findKernel and getSepolicy

as part of the effort to minimize public API for libvintf.

Bug: 34620633
Test: pass
Change-Id: I0218c317ceae48be45f7c54d29ebf0c702c23150
/system/libvintf/RuntimeInfo.cpp
3daec8116236a720edf3349b59470e41dd6c1056 28-Feb-2017 Yifan Hong <elsk@google.com> Add VintfObject as the top level API.

VintfObject has:
GetDeviceHalManifest (replace HalManifest::Get)
GetRuntimeInfo (replace RuntimeInfo::Get)
GetFrameworkHalManifest

Test: vintf
Test: libvintf_test
Change-Id: I6c1f0e6af0ea323054102bf713667c23dbc10972
/system/libvintf/RuntimeInfo.cpp
a7201e77e0c5221ada625ba5fcf89b25af45c10a 17-Feb-2017 Yifan Hong <elsk@google.com> vintf: KernelInfo -> RuntimeInfo.

There are more runtime information to report to the
OTA server besides kernel information (like avb.meta-version).
Renaming this class to reflect this.

Test: mma
Test: libvintf_test

Change-Id: Ie5863508bdac7a1a378c00528c8fd9853c6c50aa
/system/libvintf/RuntimeInfo.cpp