Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. Require Password (or encryption key) to ADB into VOXL2

Require Password (or encryption key) to ADB into VOXL2

Scheduled Pinned Locked Moved VOXL 2
9 Posts 3 Posters 2.1k Views 1 Watching
  • 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.
  • John NomikosJ Offline
    John NomikosJ Offline
    John Nomikos
    Contributor
    wrote on last edited by
    #1

    Good afternoon,

    I was wondering if there was a built-in method to require the user to input a password or have a correct adb encryption key to ADB into the VOXL2.

    I could not find documentation relating to this on ModalAI website, and a lot of advice online seems to be only applicable to android devices.

    Is there an area on the VOXL2 where the adb server is hosted so I can tinker around with it? Or is the adb functionality baked into the firmware itself?

    The goal is to make the system more secure by only allowing authorized users to adb in.

    If there is no way to require a password for adb on the VOXL2, is there a way to disable adb?

    I have been able to change the ssh password which is nice.

    Thank you,

    John Nomikos.

    ModeratorM 1 Reply Last reply
    0
    • John NomikosJ John Nomikos

      Good afternoon,

      I was wondering if there was a built-in method to require the user to input a password or have a correct adb encryption key to ADB into the VOXL2.

      I could not find documentation relating to this on ModalAI website, and a lot of advice online seems to be only applicable to android devices.

      Is there an area on the VOXL2 where the adb server is hosted so I can tinker around with it? Or is the adb functionality baked into the firmware itself?

      The goal is to make the system more secure by only allowing authorized users to adb in.

      If there is no way to require a password for adb on the VOXL2, is there a way to disable adb?

      I have been able to change the ssh password which is nice.

      Thank you,

      John Nomikos.

      ModeratorM Offline
      ModeratorM Offline
      Moderator
      ModalAI Team
      wrote on last edited by
      #2

      @John-Nomikos This might be helpful: https://android.stackexchange.com/questions/171934/storage-location-of-adb-keys/219320#219320

      John NomikosJ 1 Reply Last reply
      0
      • ModeratorM Moderator

        @John-Nomikos This might be helpful: https://android.stackexchange.com/questions/171934/storage-location-of-adb-keys/219320#219320

        John NomikosJ Offline
        John NomikosJ Offline
        John Nomikos
        Contributor
        wrote on last edited by
        #3

        @Moderator

        Tried what that article suggested and did some research. I think adb encryption is not a feature on adb daemon for linux devices, and is only available on actual android devices. I could be wrong, but it appears that way. Could also be a feature on newer adb daemon.

        Regardless, I think it might be possible for me to open up a USB port on an extension board for ssh. That way I could have password protected serial access while having adb disabled. Am I wrong in thinking this?

        Alex KushleyevA 1 Reply Last reply
        0
        • John NomikosJ John Nomikos

          @Moderator

          Tried what that article suggested and did some research. I think adb encryption is not a feature on adb daemon for linux devices, and is only available on actual android devices. I could be wrong, but it appears that way. Could also be a feature on newer adb daemon.

          Regardless, I think it might be possible for me to open up a USB port on an extension board for ssh. That way I could have password protected serial access while having adb disabled. Am I wrong in thinking this?

          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #4

          @John-Nomikos , yes this should work.

          You can test temporarily disabling adb using the following command:

          systemctl stop adbd
          

          if you are running an adb session, you will get disconnected after running this command and no longer able to adb into the device. After reboot, the adb daemon will restart. In order to disable the adb daemon from autostarting at boot, you can run:

          #WARNING: if you run this, adb connection will be disabled after reboot
          #make sure you know how to re-enable it
          #(via ssh connection or forcing fastboot and re-flash the board)
          systemctl disable adbd
          

          This will not stop the currently running adb server, but will prevent auto start after reboot

          John NomikosJ 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @John-Nomikos , yes this should work.

            You can test temporarily disabling adb using the following command:

            systemctl stop adbd
            

            if you are running an adb session, you will get disconnected after running this command and no longer able to adb into the device. After reboot, the adb daemon will restart. In order to disable the adb daemon from autostarting at boot, you can run:

            #WARNING: if you run this, adb connection will be disabled after reboot
            #make sure you know how to re-enable it
            #(via ssh connection or forcing fastboot and re-flash the board)
            systemctl disable adbd
            

            This will not stop the currently running adb server, but will prevent auto start after reboot

            John NomikosJ Offline
            John NomikosJ Offline
            John Nomikos
            Contributor
            wrote on last edited by
            #5

            @Alex-Kushleyev Thank you for the advice.

            Since adbd is a static service (the usb service depends on it), it cannot be disabled through a systemctl disable.

            I am going to take a look at other methods to disable it.

            Alex KushleyevA John NomikosJ 2 Replies Last reply
            0
            • John NomikosJ John Nomikos

              @Alex-Kushleyev Thank you for the advice.

              Since adbd is a static service (the usb service depends on it), it cannot be disabled through a systemctl disable.

              I am going to take a look at other methods to disable it.

              Alex KushleyevA Offline
              Alex KushleyevA Offline
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #6

              @John-Nomikos , do you mean that if you disable adbd then USB stops working? i did not check that.

              John NomikosJ 1 Reply Last reply
              0
              • John NomikosJ John Nomikos

                @Alex-Kushleyev Thank you for the advice.

                Since adbd is a static service (the usb service depends on it), it cannot be disabled through a systemctl disable.

                I am going to take a look at other methods to disable it.

                John NomikosJ Offline
                John NomikosJ Offline
                John Nomikos
                Contributor
                wrote on last edited by
                #7

                I was able to "disable adb" by simply changing the name of the adbd executable to .adbd

                1 Reply Last reply
                0
                • Alex KushleyevA Alex Kushleyev

                  @John-Nomikos , do you mean that if you disable adbd then USB stops working? i did not check that.

                  John NomikosJ Offline
                  John NomikosJ Offline
                  John Nomikos
                  Contributor
                  wrote on last edited by
                  #8

                  @Alex-Kushleyev I mean, since it is a static service, disabling it does not actually disable it. It appears to do nothing. Upon rebooting, adb still works

                  Alex KushleyevA 1 Reply Last reply
                  0
                  • John NomikosJ John Nomikos

                    @Alex-Kushleyev I mean, since it is a static service, disabling it does not actually disable it. It appears to do nothing. Upon rebooting, adb still works

                    Alex KushleyevA Offline
                    Alex KushleyevA Offline
                    Alex Kushleyev
                    ModalAI Team
                    wrote on last edited by
                    #9

                    @John-Nomikos i see, yes, most likely due to:

                    /lib/systemd/system/multi-user.target.wants/adbd.service
                    

                    That re-enables it after reboot..

                    Anyway, it looks like you found a workaround. Alternatively you could potentially remove that dependency from multi-user.target.wants/ but i have not tested that

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    ModalAI
                    Categories Recent Tags ModalAI.com Docs
                    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups