Fix compile error, and register a common api Change-Id: If296dfe70529e1ef6e0bb3094b6fa63aa4c0b8d6 CRs-Fixed: 3081328