Navigation

    UBports Robot Logo

    UBports Forum

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

    Creating Apps, ADB: No devices attached

    App Development
    7
    17
    548
    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
      metty last edited by metty

      I was following the instructions here.

      After creating my first app (called testytest) i run:

      cd testytest/
      clickable
      

      and got the message at the end:

      Cannot access device.
      ADB: No devices attached
      SSH: no IP address specified (--ssh)
      

      Developer mode was on.

      adb devices
      

      Gave me no result. I have just an Ubuntu-Touch an no Android system on my phone. So is there adb available? Do I have to install it somehow? Or activate?

      Moem arubislander 2 Replies Last reply Reply Quote 0
      • Moem
        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 and a BQ E4.5. And an Xperia X. Please, someone... make it stop.

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

          @moem Its a volla phone x

          AppLee 1 Reply Last reply Reply Quote 0
          • Moem
            Moem last edited by

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

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

            1 Reply Last reply Reply Quote 0
            • AppLee
              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
                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.

                AppLee 1 Reply Last reply Reply Quote 0
                • AppLee
                  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 1
                  • M
                    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?

                    AppLee N 2 Replies Last reply Reply Quote 2
                    • AppLee
                      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
                      • arubislander
                        arubislander @metty last edited by

                        @metty have you enabled developer mode on the phone?

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        Happily running Ubuntu Touch
                        BQ Aquaris M10 FHD (16.04 RC)
                        Google Pixel 3a (20.04 DEV)
                        JingPad (20.04 DEV)
                        Meizu Pro 5 (16.04 DEV)
                        PinePhone / PineTab UT CE (16.04 DEV)

                        1 Reply Last reply Reply Quote 1
                        • N
                          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 1
                          • M
                            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
                              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
                              • ezze
                                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.

                                AppLee 1 Reply Last reply Reply Quote 0
                                • C
                                  carl 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

                                  πŸ‡¨πŸ‡¦ french - PixelΒ 3a

                                  1 Reply Last reply Reply Quote 0
                                  • AppLee
                                    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
                                    • C
                                      carl 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.

                                      πŸ‡¨πŸ‡¦ french - PixelΒ 3a

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