Merge "Add functions to analyse the composition of payload." am: 7c20eda69e

Original change: https://android-review.googlesource.com/c/platform/development/+/1748942

Change-Id: Id872568f8ae4987a4a778131535f2cbc9c8ab06a