Extension support for embedding API

It is not a new file, it is shared with other test apk.