core: add AST support

Change-Id: I42203d7c0173e6cd880da3937f88e8f5c501db9d
Merge remote-tracking branch 'upstream/cm-10.2' into cm-10.2