I 've checked that gps doesn't work fine with miui v5 roms in Xiaomi Mi2, especially with the app Oruxmaps. It lose signal when recording a track and doesn't register the elevation correctly.
straight lines indicate times when the route stops recording