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

    Meizu MX4 magic-device-tool - I think I've done something wrong ... I'm stuck in a loop

    Scheduled Pinned Locked Moved Support
    23 Posts 5 Posters 6.5k Views 1 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.
      • M Offline
        Marathon2422 @happyzenith
        last edited by

        @happyzenith try putting sudo ubports-installer,in terminal, I tried this ,the only time it has worked for me

        1 Reply Last reply Reply Quote 0
        • H Offline
          happyzenith
          last edited by happyzenith

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S Offline
            Stefano @happyzenith
            last edited by

            @happyzenith ok,
            try to flash the MX4 recovery first and then try again same as previously.
            To flash the recovery, do this;
            Download the recovery from here: (https://drive.google.com/open?id=1gW9KEdm6C_yjiBdgbEf9feOGX3jwpuYn)
            save it to your Home directory on your pc.
            Reboot your phone to bootloader/fastboot mode
            Type in terminal: sudo fastboot flash recovery recovery.img

            Then reboot to recovery and try again with command:
            sudo ubuntu-device-flash --server=http://system-image.ubports.com touch --device=arale --channel=15.04/stable --wipe

            1 Reply Last reply Reply Quote 0
            • H Offline
              happyzenith
              last edited by

              Thanks @Stefano !

              The recovery seems to have worked. I now have a background with a UBports logo on 🙂

              I've left the phone flashing for a couple of hours so far and I haven't had any feedback from the terminal or change on the phone. Is that normal? I've just left it to run overnight ...

              1 Reply Last reply Reply Quote 0
              • H Offline
                happyzenith
                last edited by

                @Marathon2422 Thanks for that. I tried it and the last few lines from the terminal were:

                info: Downloading file, 8% left
                info: Download checking file
                info: checked: ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz
                error: Devices: Download error Checksum did not match on file ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz

                I did this a couple of times, both times leaving it for a few hours each time, but it didn't finish,

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

                  @happyzenith
                  Reboot to recovery and type in terminal:
                  adb shell
                  rm -rf /cache/recovery/.xz /cache/recovery/.xz.asc

                  It will probably ask you for your password of the phone, just type it in(you won't see the text on terminal, just like when typing password in terminal on your PC)
                  It should delete the old files in Recovery.

                  Then try to flash again.

                  LakotaubpL H 2 Replies Last reply Reply Quote 0
                  • LakotaubpL Offline
                    Lakotaubp @Stefano
                    last edited by Lakotaubp

                    @stefano Please carry on with the advice you are getting and I hope you get there in the end. Just in case, you said at the start you used the magic device tool to start with. If you haven't already and all else fails try the magic device tool --dev version. I used the snap if this to install on my mx 4.

                    1 Reply Last reply Reply Quote 1
                    • H Offline
                      happyzenith @Stefano
                      last edited by

                      @stefano thanks!

                      I've tired adb shell and got error: device offline

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

                        @happyzenith Try to reflash the Recovery again and then try to clear the cache

                        H 1 Reply Last reply Reply Quote 0
                        • H Offline
                          happyzenith @Stefano
                          last edited by

                          @stefano Thanks!

                          I accidentally did it in fastboot mode, which gave me:

                          sending 'recovery' (10760 KB)...
                          OKAY [ 0.566s]
                          writing 'recovery'...
                          OKAY [ 0.543s]
                          finished. total time: 1.109s

                          When I try to reflash the recovery section, using the downloaded code, in recovery mode, I get < waiting for device >

                          I've waited for about 15 minutes, then tried again with a different USB port and cable, but it gives me the same message 😞

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

                            @happyzenith Sorry posted this to the wrong person yesterday

                            Please carry on with the advice you are getting and I hope you get there in the end. Just in case, you said at the start you used the magic device tool to start with. If you haven't already and all else fails try the magic device tool --dev version. I used the snap if this to install on my mx 4.

                            Good luck with your quest😉

                            H 1 Reply Last reply Reply Quote 0
                            • H Offline
                              happyzenith @Lakotaubp
                              last edited by

                              @lakota Is that different from the magic-device-tool? How can I download that to try? I've had a look and couldn't find it. I'm probably using the wrong search terms ...

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

                                @happyzenith Yes its a slightly different version. I used Linux mint and had to install snapd first which allows you to install snap packaged apps. Then search for Magic-device-tool --devmode and you should get the right version.
                                The normal MDT didn't work for me but this did and was very straight forward.
                                I've only done this once so I would look up how to install snapd and snaps from the net or theres info in the Ubports Doc app in the open app store. Wouldn't want to miss out anything by trying to remember what I did, but it was quite straight forward and I'm not at all techy.
                                There is also a MDT telegram group who will help you out. All the best

                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  happyzenith
                                  last edited by

                                  Fab - all done! With lots of help from the lovely people on the UBports supergroup on Telegram 😄

                                  Firstly I downloaded to my computer the recovery image file for Meizu MX4 from: https://wiki.ubuntu.com/Touch/Devices#Working_with_ubuntu-device-flash

                                  I needed to do this because it is a retail phone that shipped with Ubuntu installed already (and is currently running Ubuntu).

                                  I rebooted into FASTBOOT (the bootloader) by pressing down on the volume button and power button at the same time and holding it until I could see =>FASTBOOT on the phone screen.

                                  In the terminal on my computer I typed in: ubuntu-device-flash --server https://system-image.ubports.com touch --recovery-image recovery.img --channel ubports-touch/15.04/stable --bootstrap. If you have a different file name for the recovery image file you would need to put in a different file name where I've put recovery.img

                                  On my phone I could then see a purple background and ubuntu logo. In the terminal window I could see a terminal output showing that it is pushing files.

                                  Eventually the terminal output read "Rebooting into recovery to flash". The phone then reflashed and installed ... with me watching 😄

                                  LakotaubpL S 2 Replies Last reply Reply Quote 0
                                  • LakotaubpL Offline
                                    Lakotaubp @happyzenith
                                    last edited by

                                    @happyzenith Well done! Its a good community here isn't it. Have fun.

                                    1 Reply Last reply Reply Quote 1
                                    • S Offline
                                      Stefano @happyzenith
                                      last edited by

                                      @happyzenith you see, I knew you manage to do it. Enjoy it!

                                      1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        happyzenith
                                        last edited by

                                        Yep - and l've now got Telegram installed on my desktop too ... certainly might come in handy! 😄

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