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

    Need help porting to Xiaomi Mi A1 (tissot)

    Scheduled Pinned Locked Moved Porting
    28 Posts 10 Posters 8.2k Views 5 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.
      • T Offline
        turanmahmudov
        last edited by

        GUI loads. The device is very very slow.
        No WiFi, No Bluetooth, No SIM, No GPS, No Sound

        1 Reply Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp
          last edited by

          I thought the GSI was no longer supported or us this something else?

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            turanmahmudov @Lakotaubp
            last edited by

            @lakotaubp yes, GSI didn't work for me. I built halium-boot.img and system.img
            The device boots into Lomiri UI, apps work.
            All the other stuff doesn't work. I will start from scratch.

            1 Reply Last reply Reply Quote 0
            • T Offline
              turanmahmudov
              last edited by

              Source code:
              https://github.com/xiaomi-tissot-ubuntu

              Sound works, Sensors work, GUI works
              No WiFi, No Bluetooth, No Cellular

              I am still trying to make WiFi work. Will give manifest file and install instructions.

              1 Reply Last reply Reply Quote 0
              • T Offline
                turanmahmudov
                last edited by

                GitLab CI method works.

                Source:
                https://gitlab.com/turanmahmudov/xiaomi-tissot/

                Kernel & Device Source:
                https://github.com/xiaomi-tissot-ubuntu

                Instructions

                • Get boot.img and system.img here:
                  https://gitlab.com/turanmahmudov/xiaomi-tissot/-/jobs/2362910100/artifacts/browse/out/

                • Get vendor.img here:
                  https://gitlab.com/turanmahmudov/xiaomi-tissot/-/blob/master/prebuilt/vendor.img

                • Get the latest TWRP with Treble Manager for tissot here:
                  https://forum.xda-developers.com/t/recovery-treble-twrp-3-3-1-0-with-tissot-manager.3976117/

                  • Format Data in Wipe option (to remove Stock encryption), then Reboot into Recovery again.
                  • In TWRP, go to Advanced > Treble Manager and repartition the device by following the wizard.
                • Flash Ubuntu in fastboot mode:
                  fastboot flash vendor vendor.img
                  fastboot flash boot boot.img
                  fastboot flash system system.img

                What doesn't work / Issues

                • Camera
                • GPS
                • Fingerprint
                A M 5 Replies Last reply Reply Quote 6
                • C Offline
                  Cesar Herrera
                  last edited by Cesar Herrera

                  I have Xiaomi Mi A2 and a car Citroen C4. I have paired the phone but only hear the calls in it, not in the car. I can't listen the phone's music in the car. If you can do it in A1, it would be the solution for A2.

                  1 Reply Last reply Reply Quote 0
                  • raptoR Offline
                    rapto
                    last edited by

                    I tried to follow the instructions. Now it says "the system has been destroyed". ¿Any chance of recovery?

                    raptoR 1 Reply Last reply Reply Quote 0
                    • raptoR Offline
                      rapto @rapto
                      last edited by

                      @rapto Never mind. Started from 'flash stock rom' and retrying...

                      raptoR 1 Reply Last reply Reply Quote 0
                      • raptoR Offline
                        rapto @rapto
                        last edited by

                        @rapto Nope. System destroyed again. There must be something I am not doing right.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          almas @turanmahmudov
                          last edited by

                          @turanmahmudov Thank you for sharing :smiling_face_with_heart-eyes: :heart_suit: . Is it your last build?

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            almas @turanmahmudov
                            last edited by

                            @turanmahmudov I just finished flash and can not boot. It's with a white screen with three color bar and mi logo. How can I boot or ssh to my phone? Please help me.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              almas @turanmahmudov
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                almas @turanmahmudov
                                last edited by

                                @turanmahmudov

                                Finally, it's worked. I'm on the Ubuntu language selection menu.
                                Fixed with below:
                                Entered to bootloader with volume down button and booted to recovery with a fastboot (fastboot boot twrp_recovery.img).
                                But recovery asking password for decrypt data. Clicked cancel and wiped factory reset slide and formatted with "yes". Then restarted and phone is booted up. Thank you very much.

                                1 Reply Last reply Reply Quote 1
                                • S Offline
                                  silentnoiz
                                  last edited by

                                  Is it stable enough for daily use?
                                  I have a spare mi a1 that I would like use specifically for ubports. I don't mind helping with flashing and testing.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    silentnoiz @silentnoiz
                                    last edited by

                                    @silentnoiz

                                    What works so far

                                    • Rotation

                                    • Wifi

                                    • Video playback

                                    • Charging indicator

                                    • Audio from external speaker / jack

                                    • Bluetooth scanning

                                    • Flashlight (amber led only)

                                    • Sound recorder (microphone)

                                    • Brightness (manual control)

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      silentnoiz @silentnoiz
                                      last edited by

                                      @silentnoiz

                                      What doesn't work

                                      • Camera

                                      • Fingerprint

                                      • Power saving (drains very quickly)

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        maahymot @turanmahmudov
                                        last edited by

                                        @turanmahmudov Thank you for your hard work and dedication, I have Mi A1 and now I am downloading it to try Ubuntu Touch!

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          johndoe @maahymot
                                          last edited by

                                          @maahymot Please be aware that this posts are some years old and as far as I can see it, the latest version of Ubuntu Touch is not officialy running on the Mi A1. But if you get some version of UT running on the Mi A1, it will probably be good enough to just try out the OS.

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            maahymot @johndoe
                                            last edited by

                                            Yes, Mi A1 is not my primary phone, I just use it for testing. Is there any other newer port which I can test? something like GSI flashing?

                                            J 1 Reply Last reply Reply Quote 0
                                            • J Offline
                                              johndoe @maahymot
                                              last edited by

                                              @maahymot Not that I know of, but I also do not own the Mi A1.

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post