add dualboot support for xiaomi devices