UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Installing Ubuntu Touch to a Xiaomi Mi A2 with Android 10

    Scheduled Pinned Locked Moved Solved Xiaomi Mi A2
    31 Posts 5 Posters 9.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • E Offline
        embeddedmz @MrT10001
        last edited by embeddedmz

        @mrt10001 @nero355 This archive https://github.com/ubports-xiaomi-sdm660/artifacts/releases/download/v0.1/jasmine_sprout_stock_android9.zip (after extraction) cannot be flashed with MiFlash. it says "can't find flash_all.bat"

        What I can do to install Android 9 (provided by ubports) on my device ?

        @mrt10001 said in Installing Ubuntu Touch to a Xiaomi Mi A2 with Android 10:

        try installing UT with Android 10 first, it may just work. As I said, I download and use Android Studio as it installs the correct and latest Fastboot and ADB drivers and has always worked for me.

        In the ubports web site they say that a particular Android version must be installed first. I can't take the risks !

        MrT10001M 1 Reply Last reply Reply Quote 0
        • MrT10001M Offline
          MrT10001 @embeddedmz
          last edited by

          @embeddedmz If you don't want to take the risk, don't flash Ubuntu Touch, there is a risk in flashing a phone or tablet with any ROM, it is just having the wherewithal step back and work through any issues. I have had Ubuntu Touch fail to install many times and worked through, I have not bricked any phone or tablet installing it (I am currently trying with the Mi Note 3 which I failed miserably with, but will have another go). Persistence is key to doing this (I first flashed my BQ Aquaris e4.5 first, then did Nexus 4 and 5 to really get the hang of it and iron out my own self perceived issues) and thinking it is always recoverable - the vast majority of time it is.

          Some of the links may be outdated, but here is the link i have used.

          Xiaomi Redmi Note 7.... And more...
          I have too many devices...

          E 4 Replies Last reply Reply Quote 0
          • E Offline
            embeddedmz @MrT10001
            last edited by embeddedmz

            @mrt10001 is it normal that this step takes forever ?

            997d7bbe-8bba-4936-ae5f-b500eab9c48b-image.png

            Update : OKAY I reached reboot screen

            1 Reply Last reply Reply Quote 0
            • E Offline
              embeddedmz @MrT10001
              last edited by embeddedmz

              @mrt10001
              Now, I'm stuck here (In Windows 10 the name of the device is "Failed to boot") The Xiaomi Mi A2 is showing android one and unlocked.

              That's why they say it requires a specific Adnroid version from UBPorts 😢

              1bc2b4ee-013d-440a-9e40-38d648b18b35-image.png

              M 1 Reply Last reply Reply Quote 0
              • E Offline
                embeddedmz @MrT10001
                last edited by

                @mrt10001 What can I do now ? The MiFlash can't recognize my phone anymore 😞

                1 Reply Last reply Reply Quote 0
                • E Offline
                  embeddedmz @MrT10001
                  last edited by embeddedmz

                  @mrt10001 Under fastboot it is recognized by MiFlash, so I can use an official image to restore the system !

                  Update : I reinstalled Android 10 with an image downloaded here : https://c.mi.com/in/miuidownload/detail?guide=2

                  So, it is confirmed : we do need to install that particular UBPorts Android 9 version but it can't be done with XiaomiFlash 😞

                  I will try with Ubuntu when I get back home, maybe things will be different (curse you gooooogle) !

                  MrT10001M 1 Reply Last reply Reply Quote 0
                  • MrT10001M Offline
                    MrT10001 @embeddedmz
                    last edited by

                    @embeddedmz here is the link to all Mi A2 firmware. use a global image and a fastboot image (not recovery). Persevere, the firmware flash may take longer than expected.

                    Here is a link to my experience. The ADB issue appears to be caused by the ADB version. Other factors could be the version of the installer (recommended is 0.8.9-beta), the USB port you are using and the USB cable.

                    Unfortunately, it is not always so straightforward, but keep asking if you get stuck 😳

                    Xiaomi Redmi Note 7.... And more...
                    I have too many devices...

                    N 1 Reply Last reply Reply Quote 1
                    • N Offline
                      nero355 @MrT10001
                      last edited by

                      @mrt10001 said in Installing Ubuntu Touch to a Xiaomi Mi A2 with Android 10:

                      @embeddedmz here is the link to all Mi A2 firmware. use a global image and a fastboot image (not recovery). Persevere, the firmware flash may take longer than expected.

                      Even better : Use the Stock MIUI Android ROM that your phone was sold with!

                      • EEA model = Use EEA Stock MIUI Android ROM
                      • Global model = Use Global Stock MIUI Android ROM
                      • India model = Use India Stock MIUI Android ROM
                      • China model = Use China Stock MIUI Android ROM

                      Good luck! 🙂

                      My phones :

                      • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                      • ZUK Z2 Pro - ZUI Android 8.x
                      • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                      P.S. : I am NOT a developer! ;)

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mkarpicki @embeddedmz
                        last edited by

                        @embeddedmz , not sure if root cause is same but I had same problem. On other chat I found some people saying issue could be in USB 3 port. I switched from my Ubuntu laptop (which I experience problem at same stage) to Mac from 2015 and ubports installer managed did the job there 😕
                        not sure if that helps..

                        1 Reply Last reply Reply Quote 1
                        • E Offline
                          embeddedmz @mkarpicki
                          last edited by

                          @mkarpicki After installing a fresh Android 10 image, now I can boot TWRP.

                          I finally succeeded in installing Ubuntu Touch thanks to the link you have posted. Thank you

                          1 Reply Last reply Reply Quote 2
                          • E embeddedmz has marked this topic as solved on
                          • KenedaK Keneda moved this topic from Support on
                          • MrT10001M MrT10001 referenced this topic on
                          • First post
                            Last post