Best guideline to do this can be found here: https://sorenpoulsen.com/flashing-android-firmware-on-bq-aquaris-m10-ubuntu-touch-fhd However, I could not find the firmware mentioned there. I stead I used the version found here: http://www.mediafire.com/file/bpo42m4r4s4vut1/BQ_Aquaris_M10_2.2.0_20161114_1220_6.0_MT8163.zip/file After that, the original guideline above is easy to follow.