Create module for ahat, fix API checking am: bdc6241921 am: 24a5e5748f
am: 8bcba3e2af

Change-Id: I7e6552aff829c60ab75d4f8a1904d45fd3b46192