Implement initial ambient capabilities support.
am: a6eb21a9b4

Change-Id: I34365399fc6b4ba92e75bb830cb790aa933e610e