Add base code

Change-Id: I0e09c324895d8e9b02dd2072a4804cf13cd5210b
miui hook

Change-Id: Ib9543d025e5ad8584f8e9cfaefec3be3edf18e67