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

    Unable to use ADB on Oneplus 3t

    Scheduled Pinned Locked Moved Support
    17 Posts 4 Posters 1.3k Views 2 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.
      • S Offline
        Shearflux @Keneda
        last edited by

        @keneda Awesome, so in recovery mode it shows up as:

        List of devices attached
        57489492	unauthorized
        

        Which is nice to see. How do I get it authorized?

        KenedaK 1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @Shearflux
          last edited by Keneda

          @shearflux
          Does your device is locked by pin code when you shut screen off, then on back?

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

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

            @keneda Yes it has a pin, I attempt to use adb after unlocking my phone

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

              ADB only works in recovery. MTP should work iirc or use ssh https://docs.ubports.com/en/latest/search.html?q=ssh&check_keywords=yes&area=default

              1 Reply Last reply Reply Quote 0
              • KenedaK Offline
                Keneda
                last edited by

                BTW i forgot to ask, why/what for do you need adb access?

                2015-2023 : Meizu MX4 ☠️⚰️✝️
                2023-2024 : Nexus 5 ☠️⚰️✝️
                2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                🇲🇫🇬🇧

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

                  @keneda It provides quicker shell access than SSH since it doesn't rely on the local network's strength. SSH appears to have a little lag

                  KenedaK 1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda @Shearflux
                    last edited by Keneda

                    @shearflux
                    OK, i understand. I don't know why your device is unauthorized, your phone has a pin, dev enabled and in recovery (and for sure i assume bootloader is unlocked), PC adb drivers and terminal installed, that should work (use USB2 not 3, and good data usb cable).

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                    🇲🇫🇬🇧

                    1 Reply Last reply Reply Quote 0
                    • KenedaK Offline
                      Keneda
                      last edited by Keneda

                      You can check with UT Tweak Tools from open store, in "system" setting tab, "usb settings" "ADB parameter" to see if it is in MTP.

                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                      2023-2024 : Nexus 5 ☠️⚰️✝️
                      2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                      🇲🇫🇬🇧

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

                        @keneda I checked it is in MTP mode. I found someone from 2019 who was in a similar situation:
                        https://forums.ubports.com/topic/2866/cannot-use-adb-because-of-unauthorized-device-worked-around/16
                        I suppose I'll use SSH for now, but I really appreciate the help!

                        KenedaK 1 Reply Last reply Reply Quote 0
                        • KenedaK Offline
                          Keneda @Shearflux
                          last edited by

                          @shearflux
                          Maybe someone will know where the unothorized issue come from.
                          Sad i can't help you further.

                          2015-2023 : Meizu MX4 ☠️⚰️✝️
                          2023-2024 : Nexus 5 ☠️⚰️✝️
                          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                          🇲🇫🇬🇧

                          1 Reply Last reply Reply Quote 1
                          • KenedaK Offline
                            Keneda
                            last edited by Keneda

                            @shearflux said in Unable to use ADB on Oneplus 3t:

                            List of devices attached
                            57489492 unauthorized

                            For the sake of help, i tried a last thing, i qwanted your problem, and got a ping, see :
                            https://honeywellaidc.force.com/supportppr/s/article/How-to-fix-adb-devices-shows-unauthorized-device

                            Possible solutions if "adb devices" shows a device as "unauthorized":
                            _
                            C:\Users\JohnDoo>adb devices
                            List of devices attached
                            17310D821D unauthorized
                            _

                            1. Disconnect USB between PC and device
                            2. Stop adb server by entering "adb kill-server" in command window
                            3. On device use "Revoke USB debugging authorizations" in "Developer Options"
                            4. On PC delete "adbkey" file in user directory, for example "C:\Users\JohnDoo.android"
                            5. Reconnect the device to the PC
                            6. Open a command window and enter "adb devices". Watch the device's screen for any Authorization message and allow the connection.

                            The device should now show as "device":
                            _
                            _
                            C:\Users\JohnDoo>adb devices
                            List of devices attached
                            17310D821D device
                            _
                            If the above does not help, re-installing adb and or USB drivers may help.

                            You can revoke USB debugging authorization with UTTT like you probably saw.

                            Now i must go to work, hoping you succeed ^^

                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                            2023-2024 : Nexus 5 ☠️⚰️✝️
                            2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                            🇲🇫🇬🇧

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

                              I am not sure if the 3t has this same issue but the 6t does not have working ADB and you have to use ssh to manipulate the device folders. I can not help other than suggesting to look into it.

                              OnePlus One with UT OTA-15 daily driver. I would be testing the Halium 7.1 port if I could roll back to OTA-15
                              OnePlus 6T PostmarketOS Custom Gnome on Mainline Kernel

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

                                ADB only works during the installing process that is the only time I have seen it work (this is the same on a few devices now). Other than that I can/have transferred files back and forth between phone and laptop via usb. I have tried ssh but get a syntax error and need to look into it further from my side.
                                You do have to keep switching Dev mode on after reboots and restarting but I mention that just in passing.

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

                                  @keneda Sorry for the delay, but I tried the instructions above to no avail 😞 . My feeling is that it's related to the authorization pop-up just for some reason not popping up.

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

                                    @lakotaubp ADB seems to be the method of choice during any tutorials on various things. I also had it working on my 3t in the past, i'm just not sure why its not working anymore

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