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

    Creating Apps, ADB: No devices attached

    Scheduled Pinned Locked Moved App Development
    17 Posts 7 Posters 1.2k 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.
      • MoemM Offline
        Moem @metty
        last edited by

        @metty said in Creating Apps, ADB: No devices attached:

        is there adb available?

        That depends, what is your device?

        Is currently using an Op5t
        Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          metty @Moem
          last edited by

          @moem Its a volla phone x

          AppLeeA 1 Reply Last reply Reply Quote 0
          • MoemM Offline
            Moem
            last edited by

            Thanks, I'm asking because not all ports have ADB access.

            Is currently using an Op5t
            Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

            1 Reply Last reply Reply Quote 0
            • AppLeeA Offline
              AppLee @metty
              last edited by

              @metty
              Maybe stupid question but: have you connected your phone to the computer with a full USB cable?
              Some cheap ones are only for charging.

              You can try clickable --ssh <ip_address> if you allowed wifi connection to your device.
              That's very convenient.
              Also you can take the first steps without the phone by running:
              clickable build

              M 1 Reply Last reply Reply Quote 1
              • M Offline
                metty @AppLee
                last edited by

                @applee The cable should be correct.. I could also mount the files on ubuntu. Ok, I will try with ssh, which is configured. But I thought the cable should be faster. If there is a way with cable, I would prefer it.

                AppLeeA 1 Reply Last reply Reply Quote 0
                • AppLeeA Offline
                  AppLee @metty
                  last edited by

                  @metty
                  ADB should work on the Volla X, but I don't know how this android stuff is working so no idea how to debug this.

                  The wifi is not slow, it's just using the connection tu push a .click file and it's often only hundreds of KB...
                  But somehow the cable should work.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    metty @AppLee
                    last edited by

                    @applee Works fine with ssh, except that I have to put my passphrase maybe 20 times.. πŸ‘½
                    So if someone has an idea how to do it with cable, would simpler. I know I could skip the passphrase forever, but this is not what I want 😲
                    What I am asking myself: adb is android debug bridge, so on a phone without android, can there be a adb?

                    AppLeeA N 2 Replies Last reply Reply Quote 1
                    • AppLeeA Offline
                      AppLee @metty
                      last edited by

                      @metty said in Creating Apps, ADB: No devices attached:

                      I know I could skip the passphrase forever, but this is not what I want

                      Do you mean ignore it or did you consider creating a RSA key pair so you can log from your programming computer to your phone more conveniently?

                      About ABD, let's wait and see if someone has an idea.

                      1 Reply Last reply Reply Quote 0
                      • arubislanderA Offline
                        arubislander @metty
                        last edited by

                        @metty have you enabled developer mode on the phone?

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        Happily running Ubuntu Touch
                        Google Pixel 3a (20.04 DEV)
                        JingPad (24.04 preview)
                        Meizu Pro 5 (16.04 DEV)

                        1 Reply Last reply Reply Quote 1
                        • N Offline
                          nero355 @metty
                          last edited by

                          @metty said in Creating Apps, ADB: No devices attached:

                          What I am asking myself: adb is android debug bridge, so on a phone without android, can there be a adb?

                          Ofcourse it can : It's all Linux based after all! πŸ˜‰

                          My BQ phone connects just fine from my Kubuntu laptop to the Ubuntu Touch OS via ADB πŸ™‚

                          But indeed : You need to Enable Developer Mode first! πŸ˜„

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

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            metty @nero355
                            last edited by metty

                            @nero355 @arubislander
                            Thank you! Developer mode was on. (Might be a bit hidden in my original post). So in "normal case" the phone should become visible for adb as soon as developermode is active.

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

                              @metty said in Creating Apps, ADB: No devices attached:

                              Developer mode was on. (Might be a bit hidden in my original post).
                              So in "normal case" the phone should become visible for adb as soon as developermode is active.

                              Correct! πŸ™‚

                              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
                              • ezzeE Offline
                                ezze
                                last edited by

                                Hi, guys!
                                Sorry for activating an old topic but it seems to me that it's the right place to ask the question. I have the same problem with Redmi Note 9 Pro. Developer mode has been enabled on the phone and I see it with adb on my Kubuntu 20.04 after device reboot:

                                $ adb devices
                                List of devices attached
                                ec96a4b	unauthorized
                                

                                I also see the contents of my home directory in Dolphin but have no permissions to access directories from there:

                                64dc210d-62b4-4460-85a4-e101d42add5a-image.png

                                43ddd288-8372-4fc1-a3fd-b8a00d0da670-image.png

                                I tried:

                                $ adb shell
                                error: device unauthorized.
                                This adb server's $ADB_VENDOR_KEYS is not set
                                Try 'adb kill-server' if that seems wrong.
                                Otherwise check for a confirmation dialog on your device.
                                

                                But I don't see any confirmation dialog on my device.

                                AppLeeA 1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User
                                  last edited by

                                  Why used ADB, while with a USB cable I see perfectly all my files in each directory with nautilus from gnome, of course by giving permission to my pixel 3a, I can transfer files in both without.

                                  Not yet tested ave dolphin from Kde

                                  1 Reply Last reply Reply Quote 0
                                  • AppLeeA Offline
                                    AppLee @ezze
                                    last edited by

                                    Hi @ezze

                                    I have no issue using Dolphin.
                                    You need to install mtp-tools but if you see the directories, I bet it's already installed.
                                    Then you need to close and re-open Dolphin so it can use MTP.

                                    You should now be able to read files and write them if the writes are set properly on your device.
                                    You might also want to try to keep the screen on...

                                    1 Reply Last reply Reply Quote 0
                                    • ? Offline
                                      A Former User
                                      last edited by

                                      I checked with kde no problem.

                                      mtp-tools is not installed with Gnome and Kde.

                                      I just installed and configured with UT Tweak Tool
                                      Password/System/ADB Settings/USB Mode/MTP-Media Transfer Protocol.

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