Handle composition v2 for validate method

We need to add suppor for composition v2 to keep consistent with
emulator host side.

Test: manuually
Change-Id: I5d3c922f86f1de27487d552eb62ce8762d6fafa8
1 file changed