An OpenSource toolkit for Xiaomi devices