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

    adb newbie: how to I set up and use adb?

    Support
    3
    7
    1.1k
    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.
    • E
      Eric
      last edited by

      I am trying to use my pinephone, with build 318. In the past i would just set up ssh, and use that, but I guess things have changed, and now I have to use adb to set up various services or something. Actualy, i dont know that, or care, but I would like to learn how to set up, and use adb to communicate with my device.
      my PC is a Lenovo thinkpad with Ubuntu Mate 18.04 (linux) installed.

      I dont know anything about adb, I have never used it. I dont know about setting up virtual devices, or what that even means. I want to be able to communicate with my phone, via adb, and learn what I can, and cannot do with adb.

      I have installed adb with the command sudo apt-get install android-tools-adb android-tools-fastboot
      and have version
      $ adb version
      Android Debug Bridge version 1.0.39
      Version 1:8.1.0+r23-5
      Installed as /usr/lib/android-sdk/platform-tools/adb

      do i have to enable debugging on the pinephone / ubuntu touch? if so, how do I do that?

      $ adb devices
      List of devices attached
      (lists no devices)

      I dont know what Im doing, and I dont know what to do next. yes, I ran
      $ sudo adb start-server
      adb server version (41) doesn't match this client (39); killing...

      • daemon started successfully

      is there a good tutorial for a total newbie? what do i do next?

      AppLeeA 1 Reply Last reply Reply Quote 0
      • E
        Eric
        last edited by

        Under about section, on the phone, I expected to see an option to enable debugging. no such button exists. is there a command line way to enable debugging?

        1 Reply Last reply Reply Quote 0
        • M
          Marathon2422
          last edited by Marathon2422

          https://ci.ubports.com/job/rootfs/job/rootfs-pinephone-systemimage/

          its all changed ,this is the link to the newer OTA capable version ,it wiil expand(extract) to the correct size for your emmc (14.6G), then you flash it to your sdcard or emmc using "jumpdrive" tool

          https://wiki.pine64.org/index.php/PinePhone

          section 8.2 for jumpdrive.

          1 Reply Last reply Reply Quote 0
          • E
            Eric
            last edited by

            ok, how do I compile jumpdrive? the README says it depends on aarch64-linux-gnu- toolchain. is that the gcc-aarch64-linux-gnu package?

            1 Reply Last reply Reply Quote 0
            • E
              Eric
              last edited by Eric

              So I have jumpdrive going, do I flash the image to the root emmc device drive (/dev/sdb), or to the empty space? gparted image of pinephone eMMC
              or should I expand /dev/sdb2 (pmOS_root)

              M 1 Reply Last reply Reply Quote 0
              • M
                Marathon2422 @Eric
                last edited by

                @Eric put /flash jumpdrive to a small sdcard, then put it in your pinephone, connect to your pc, switch on , then youre connected. then use Balena Etcher or dd the OS you want from your pc to the emmc.(jumpdrive does all the work) but check where Etcher is going to install the OS

                if you want the OS on your sdcard dd or etcher from your pc to sdcard.

                ubports with the OTA , extracts to 14.6g , to make life easy, but you need available space ..

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

                  @Eric
                  You already created a thread for this issue.
                  No need to open several.

                  ADB is an Android tool, there is no such thing for the PinePhone.
                  Edit: I'll lock this thread, please see how to SSH into your Pinephone there.

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