History log of /system/libvintf/RuntimeInfo-target.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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-target.cpp
c19b900575f7365af8828c532c9e7cb32e31f30a 28-Apr-2017 Yifan Hong <elsk@google.com> RuntimeInfo::fetchAllInformation does not error.

Client of libvintf may have less permissions than
libvintf expects, so it doesn't make sense to disable
the whole RuntimeInfo API. For cts, untrusted_app
cannot read /proc/config.gz and sepolicy files, but it can
still do uname() etc.

Bug: 28656227

Test: cts-tradefed run cts -m CtsEdiHostTestCases --skip-preconditions

Change-Id: I449cb486bbfa9710707e75159470988cf9cdcbea
Merged-In: I449cb486bbfa9710707e75159470988cf9cdcbea
/system/libvintf/RuntimeInfo-target.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-target.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-target.cpp
6f8411e3c64ded603e85f1e9d5142cc408c29dc6 20-Apr-2017 Yifan Hong <elsk@google.com> Add sepolicyFilePaths() to RuntimeInfo.

Test: adb shell vintf
Bug: 28656227
Change-Id: If8c28eff7a057fafda88384c92498f0f21121b97
Merged-In: If8c28eff7a057fafda88384c92498f0f21121b97
/system/libvintf/RuntimeInfo-target.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-target.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-target.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-target.cpp