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

    OEM unlock problem

    Scheduled Pinned Locked Moved Support
    26 Posts 7 Posters 5.8k 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.
      • J Offline
        joe @stanwood
        last edited by

        @stanwood said in OEM unlock problem:

        @joe Did you try the following command in your terminal? : "sudo fastboot oem unlock" 1rst of all be sure you've got fastboot package installed (sudo apt install fastboot) and adb (sudo apt install adb).

        @shivmahar83

        1 Reply Last reply Reply Quote 0
        • flohackF Offline
          flohack @shivmahar83
          last edited by

          @shivmahar83 There must be something wrong with your description, if you did not unlock your bootloader then it cannot show unlocked.

          Anyways, you can always go to fastboot mode, unlock the bootloader and re-install the Google factory image or continue from there with the UBports installer. It is virtually impossible to brick a Nexus 5...

          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

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

            Just for more info what was on the device before you started. Stock android or something else? Is there a chance the partition sizes have been altered. That will stop UT installation. As Flohack said something is off in some way. I know you have tried before but does - fasboot devices - show your device when run.

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

              @joe Dear sir I try many times "sudo fastboot oem unlock" command in my Ubuntu PC but one time its show unlocked but again it shows unlocked after rebooting bootloader.

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

                @shivmahar83 can you please try just fastboot devices and let us know the result. The more info we have the easier it is to help.

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

                  @stanwood Dear sir I try many times "sudo fastboot oem unlock" command in my Ubuntu PC but one time its show unlocked but again it shows unlocked after rebooting bootloader.

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

                    @Lakotaubp Yes "sudo fastboot devices" command show the fastboot device is connected to my ubuntu pc.

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

                      @shivmahar83 Right good. Then run sudo fastboot OEM unlock then sudo fastboot reboot bootloader and ses what happens

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

                        @Lakotaubp I did it. its unlock bootloader but when I reboot bootloader its again show state locked.

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

                          if I use sudo adb sideload command this errors showIMG_1142.jpg

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

                            @shivmahar83 Try sudo fastboot oem unlock then sudo fastboot reboot bootloader.

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

                              @Lakotaubp I also used it. One its show unlocked but after rebooting bootloader its again locked.IMG_1144.jpg IMG_1140.jpg

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                Rondarius
                                last edited by Rondarius

                                @shivmahar83 When it is unlocked, what happens when you run the Ubports installer?

                                4 Google Pixel 3A
                                1 Google Nexus 6P
                                2 Google Nexus 5
                                2 Pinephones
                                2 Sony Xperia X

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

                                  @Rondarius Good idea

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

                                    @Rondarius The installation process stopped and below error shown through picture came.
                                    IMG_1178.jpg

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      Rondarius @shivmahar83
                                      last edited by

                                      @shivmahar83 Sorry for the late response. Try to reflash your phone to stock rom Android using this guide:
                                      https://android.gadgethacks.com/how-to/complete-guide-flashing-factory-images-android-using-fastboot-0175277/
                                      When you have installed the phone DO NOT REBOOT ANDROID use the Ubports installer instead while in bootloader.

                                      4 Google Pixel 3A
                                      1 Google Nexus 6P
                                      2 Google Nexus 5
                                      2 Pinephones
                                      2 Sony Xperia X

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

                                        @Rondarius Respected sir the above said factory image installation needs bootloader unlocked & my phones bootloader is locked and my phone is corrupted also. So I can't enable USB debugging and without USB debugging it is not possible to unlock bootloader.

                                        R 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          Rondarius @shivmahar83
                                          last edited by

                                          Hi @shivmahar83 download the factory img: https://developers.google.com/android/images#hammerhead extract the archive, in the folder, there is a file called flash-all.sh, run it and see whats happens when you have unlocked the phone.

                                          4 Google Pixel 3A
                                          1 Google Nexus 6P
                                          2 Google Nexus 5
                                          2 Pinephones
                                          2 Sony Xperia X

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

                                            @Rondarius Dear Sir I tried it already. I downloaded the factory image from google developer website, unlock the bootloader, and run the command flash-all.sh but installation stopped because of bootloader unlock problem. Because in reality bootloader didn't unlocked it only show unlocked. If I restart the bootloader it again shows in locked state.

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

                                              @shivmahar83 said in OEM unlock problem:

                                              bootloader.

                                              Reboot your phone to the bootloader.
                                              Run the following command whilst in the bootloader

                                              fastboot oem unlock
                                              

                                              Then, on the phone, select the "unlock" option.
                                              Now, boot back into the bootloader, and run ubports installer.

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