Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Mi A2 back to stock?

    Xiaomi Mi A2
    5
    7
    733
    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.
    • K
      kernelpancake last edited by

      I'm looking for help on putting my mia2 back to stock (currently running calyxOS) so I can install UBPorts on the device. I'm completely lost and any help would be GREATLY appreciated

      R S 2 Replies Last reply Reply Quote 0
      • R
        rarellano @kernelpancake last edited by rarellano

        @kernelpancake Download and extract [https://bigota.d.miui.com/V10.0.13.0.PDIMIXM/jasmine_global_images_V10.0.13.0.PDIMIXM_20190807.0000.00_9.0_9083804c9e.tgz](android 9 rom stock)

        I assume that you use linux and you have fastboot installed.
        Put your phone in fastboot mode (power + vol down)
        Enter inside the extracted directory and execute this:

        sudo sh flash_all.sh
        
        N 1 Reply Last reply Reply Quote 0
        • N
          nero355 @rarellano last edited by

          @rarellano said in Mi A2 back to stock?:
          @kernelpancake>

          sudo sh flash_all.sh
          

          Watch out with that script : Under Windows and the Mi Flash Tool it locks the Bootloader and in general you should not lock the Bootloader after unlocking it! 😉

          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! ;)

          R L 2 Replies Last reply Reply Quote 1
          • R
            rarellano @nero355 last edited by

            @nero355 no idea, I've only used in linux

            1 Reply Last reply Reply Quote 0
            • L
              lot @nero355 last edited by

              @nero355 I believe there are scripts in there that lock and some that doesn't. Don't remember exactly the name of the scripts, but it should be obvious by looking at the content of the script as it would be the last couple of commands in the scripts that does the locking. Should be safe to lock though (it is the stock rom after all). I locked mine when I did the same some time ago, before trying UT, didn't have any issue with locking. If you're using android you probably want it locked anyways or some apps will refuse to run.

              N 1 Reply Last reply Reply Quote 0
              • N
                nero355 @lot last edited by

                @lot
                Fortunately I don't use those apps so I don't really care about the Widevine L1/L3 stuff or any banking crap that's not supposed to be on anyone's phone anyway! 😉

                But you should really be VERY carefull with relocking any phone!

                • Some don't like it all!
                • Some will be hardbricked if the software/firmware/etc. on the phone differs even slightly from what is was shipped with!

                A lot of people made that mistake already and regret it ever since! 😉

                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
                • S
                  soulrock @kernelpancake last edited by

                  @kernelpancake Download a version of recovery from the twrp website. Make sure you are downloading the device version.

                  Download the stock version from the link provided by the) installer program.

                  That's version 9 of Android.

                  Leave the phone in fastboot mode, go to the folder where you have the recovery download and enter "fastboot boot twrp.img" in a terminal.

                  Once the recovery starts, delete everything, go to the advanced options and you will see that there is a sideload option.

                  Then once started, with the Zip file of the stock version of Android you write in the terminal "adb sideload stock.zip" (stock.zip is the example of the name.)

                  Just in case, do the process on both slots.

                  Once finished, you can start the phone normally and update it as you normally would

                  I am sorry if I have not explained myself well and I feel my English. I use google translate

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