History log of /system/libvintf/VintfObject.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3efb5aca4d935763907d14c4b6362dc5fc557d63 24-May-2017 Yifan Hong <elsk@google.com> Merge "Revert "Temporary workaround for fwk compat mat vs. Runtime info"" into oc-dev
82c6fdd9d4663df32a5100d96aa3c67adfea79d3 23-May-2017 Yifan Hong <elsk@google.com> Revert "Temporary workaround for fwk compat mat vs. Runtime info"

This reverts commit c1ac82d94c148451ed5b0fde9fc6b11d42529161.

Test: adb shell vintf | tail

Bug: 38321140

Change-Id: Idc31af61f19d7481341e926e719f1aeced28d25c
Fixes: 38325817
/system/libvintf/VintfObject.cpp
8640cd1323b88e987aa4603e4c8209a46b082d23 17-May-2017 Yifan Hong <elsk@google.com> Add more vintf_object_test

* Fix duplicated Compat2 test in libvintf_test
The test is duplicated in libvintf_test and vintf_object_test;
it also fails because details::CheckCompatibility doesn't take
GetXCompatibilityMatrix functions.

* Add PartitionMounter that allows mocking on mount
procedures

* Fix duplicated mount and unmount in checkCompatibility

Test: libvintf_test
Test: vintf_object_test

Change-Id: I07be537696efe64f084fdbed77a781b26e971784
/system/libvintf/VintfObject.cpp
c1ac82d94c148451ed5b0fde9fc6b11d42529161 16-May-2017 Yifan Hong <elsk@google.com> Temporary workaround for fwk compat mat vs. Runtime info

check at OTA time.

This works around:
Bug: 38325029 Add <avb> entry to framework compatibility matrix
Bug: 38324908 Add <kernel> entry to framework compatibility matrix
Bug: 38321140 Device stuck "System update downloading"

And generates:
Bug: 38325817

Test: `adb shell vintf` on new devices
Test: try fake OTA on new devices

Change-Id: I304fa475e4ab282753312747d1c758fe72ecffac
Merged-In: I304fa475e4ab282753312747d1c758fe72ecffac
/system/libvintf/VintfObject.cpp
0d4be120d80692a8f9e79552ebbe4d64ebe26b3c 16-May-2017 Yifan Hong <elsk@google.com> Fix segfault in VintfObject::checkCompatibility.

* Fix incorrect mount procedure.
* Check error pointer.

Test: pass
Bug: 36814984

Change-Id: Id0d747c835bd73b4be42824a4e56c65dc53c6400
Merged-In: Id0d747c835bd73b4be42824a4e56c65dc53c6400
Fixes: 38321140
/system/libvintf/VintfObject.cpp
97dc0f94e3747da528bc2531a67c9c1ec193520c 08-May-2017 Michael Schwartz <schwartzmi@google.com> VintfObject::verify() will fetch data from device

- If no info is provided then all data is fetched from device.
- Add hook to mock retrieving files from device.
- Add test.
- Print more detailed messages on AVB failures.

Test: Ran vintf_object_test and libvintf_test
Bug: 37863689
Bug: 36814984
Change-Id: Ia33f4e2e73c863bc0f8f68f5ed61c30df8eff53d
Merged-In: Ia33f4e2e73c863bc0f8f68f5ed61c30df8eff53d
/system/libvintf/VintfObject.cpp
2272bf856d9c6a55c7faf81408e0e808664569f3 28-Apr-2017 Yifan Hong <elsk@google.com> Add device/fwk compatibility matrix to VintfObject.

For framework compatibility matrix, <sepolicy> sections
is injected in build time.

Test: libvintf_test
Test: adb shell vintf; matrices exist, compatible = true
Bug: 37321309
Bug: 36814503
Change-Id: I997b93456a261f0cdb85997ae88f4ac5a5f36ff3
/system/libvintf/VintfObject.cpp
9532bd2b829440712c3a15f0df867f81f32fa150 15-Apr-2017 Yifan Hong <elsk@google.com> Add VintfObjectRecovery

A special VintfObject for recovery. CheckCompatibility
knows how to mount /system and /vendor if necessary.

Test: testing with a test CL that replaces graphics test
into calling android::vintf::details::mountSystem
/ mountVendor, and the partitions are actually
mounted.

Bug: 36814503
Change-Id: Ie6a8e533841a128a411134973006ac4afb17a78e
/system/libvintf/VintfObject.cpp
143cfe6aa1e257f200829c903be67ed73d141ab2 14-Apr-2017 Yifan Hong <elsk@google.com> Implement VintfObject::CheckCompatibility.

Test: libvintf_test

Bug: 36814503 libvintf Java API
Bug: 36126928 create tests for HalManifest::checkIncompatibility

Change-Id: I1ea9b6030a068623742d23f38d287b01946f2fc8
/system/libvintf/VintfObject.cpp
fbbf047f9fa9e6e5cd52c70690e924c849c3e237 08-Apr-2017 Yifan Hong <elsk@google.com> Add VintfObject::CheckCompatibility

Given an update package, caller should extract all manifests
/ matricies from the package, and feed it into CheckCompatibility.
CheckCompatibility will check these XML strings against
the files on the device. Partitions can be mounted if the optional
boolean argument is true.

This is also exposed as android.os.VintfObject.verify (via
JNI call).

Note that this is only a stub; actual implementations will
come in a follow up CL.

Test: pass
Bug: 36814503
Change-Id: Ia92a50f347a897d3eda1f57d08073b9df881a552
/system/libvintf/VintfObject.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/VintfObject.cpp