updated and tested on xiaomi 3