add base code

Change-Id: Iae33aae5e8b89c1a40fa5b2b2011a1ebb800e994
miui hook

Change-Id: I1d29727dfc7492531eac1090d587b3fb939f29cd