core: xiaomi support

Change-Id: I448531348cb2a57d60a400c5706eec1034b0a4a1