Make switching works, now it supports xiao mi and nexus 5