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
2 files changed