Create module for ahat, fix API checking
am: bdc6241921

Change-Id: Idbfe21857d3e7ed08aa9d4d3378108e441e11fd8