• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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.1k 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.
    • M Offline
      metty
      last edited by metty 13 Dec 2021, 19:42

      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?

      M A 2 Replies Last reply 13 Dec 2021, 19:45 Reply Quote 0
      • M Offline
        Moem @metty
        last edited by 13 Dec 2021, 19:45

        @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 13 Dec 2021, 19:45 Reply Quote 0
        • M Offline
          metty @Moem
          last edited by 13 Dec 2021, 19:45

          @moem Its a volla phone x

          A 1 Reply Last reply 14 Dec 2021, 10:22 Reply Quote 0
          • M Offline
            Moem
            last edited by 13 Dec 2021, 19:55

            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
            • A Offline
              AppLee @metty
              last edited by 14 Dec 2021, 10:22

              @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 14 Dec 2021, 10:37 Reply Quote 1
              • M Offline
                metty @AppLee
                last edited by 14 Dec 2021, 10:37

                @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.

                A 1 Reply Last reply 14 Dec 2021, 10:50 Reply Quote 0
                • A Offline
                  AppLee @metty
                  last edited by 14 Dec 2021, 10:50

                  @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 14 Dec 2021, 16:41 Reply Quote 0
                  • M Offline
                    metty @AppLee
                    last edited by 14 Dec 2021, 16:41

                    @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?

                    A N 2 Replies Last reply 14 Dec 2021, 17:21 Reply Quote 1
                    • A Offline
                      AppLee @metty
                      last edited by 14 Dec 2021, 17:21

                      @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
                      • A Offline
                        arubislander @metty
                        last edited by 14 Dec 2021, 19:20

                        @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 15 Dec 2021, 18:24

                          @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 17 Dec 2021, 17:55 Reply Quote 0
                          • M Offline
                            metty @nero355
                            last edited by metty 17 Dec 2021, 17:55

                            @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 17 Dec 2021, 18:03 Reply Quote 0
                            • N Offline
                              nero355 @metty
                              last edited by 17 Dec 2021, 18:03

                              @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 8 Dec 2022, 21:52

                                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.

                                A 1 Reply Last reply 9 Dec 2022, 13:08 Reply Quote 0
                                • ? Offline
                                  A Former User
                                  last edited by 8 Dec 2022, 22:52

                                  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
                                  • A Offline
                                    AppLee @ezze
                                    last edited by 9 Dec 2022, 13:08

                                    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 9 Dec 2022, 19:16

                                      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