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

Is it possible to tether internet via usb? (Solved, works very good.)

Scheduled Pinned Locked Moved Support
22 Posts 11 Posters 7.7k Views 5 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.
    • E Offline
      Edward Wilhelm
      last edited by Edward Wilhelm 22 Apr 2020, 01:02

      I have connected to the ubuntu touch hotspot via wifi without any problems. Can I also make an internet connection to the phone with a usb cable? I have a computer with no wifi card that I need to connect to the internet with the phone. Is this possible?

      Oneplus One
      Ubuntu touch - 20200415-24539

      1 Reply Last reply Reply Quote 0
      • K Offline
        Keneda
        last edited by 22 Apr 2020, 01:30

        I dont think so, never heard about.

        2015-2023 : Meizu MX4 ☠️⚰️✝️
        2023-2024 : Nexus 5 ☠️⚰️✝️
        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
        🇲🇫🇬🇧

        1 Reply Last reply Reply Quote 0
        • D Offline
          dobey
          last edited by 22 Apr 2020, 02:34

          It is possible, but I think there is no way to do so from the GUI.

          If you open the Terminal app and run android-gadget-service rndis enable it should disable MTP and enable USB tethering. Though I'm not sure if it works on all devices.

          E F N 3 Replies Last reply 22 Apr 2020, 03:16 Reply Quote 0
          • E Offline
            Edward Wilhelm @dobey
            last edited by 22 Apr 2020, 03:16

            @dobey said in Is it possible to tether internet via usb?:

            It is possible, but I think there is no way to do so from the GUI.

            If you open the Terminal app and run android-gadget-service rndis enable it should disable MTP and enable USB tethering. Though I'm not sure if it works on all devices.

            Okay, and after I do this, do I have to do anything special to put the usb conection back to regular function?

            1 Reply Last reply Reply Quote 0
            • D Offline
              domubpkm
              last edited by 22 Apr 2020, 04:13

              For info, you can also :

              In the app UT TWEAK TOOLS, i noted the path :

              • System
              • ADB parameters : choose RNDIS instead of MTP

              So after use, we can switch back to MTP.

              E 1 Reply Last reply 25 May 2020, 18:42 Reply Quote 2
              • K Offline
                kugiigi
                last edited by 22 Apr 2020, 05:05

                UT Tweak Tool app does have an easy way to switch this. Not sure though if it's working again. If I remember correctly, it stopped working during the xenial transition.

                D 1 Reply Last reply 22 Apr 2020, 11:00 Reply Quote 0
                • P Offline
                  poVoq
                  last edited by poVoq 22 Apr 2020, 08:43

                  It works on the Nexus5 (dev channel), I use it regularly.

                  Fairphone 5 (waiting for port)

                  1 Reply Last reply Reply Quote 1
                  • T Offline
                    TheUlpio
                    last edited by 22 Apr 2020, 09:51

                    Tested un a BQ Aquaris E4.5 and works well (rc channel)

                    1 Reply Last reply Reply Quote 1
                    • D Offline
                      domubpkm @kugiigi
                      last edited by 22 Apr 2020, 11:00

                      @kugiigi It works very well for me with UTTT. Tried with OPO and BQ E5 HD dev. This make a more secure connexion with this mechanism without WIFI.
                      Always very useful UTTT.

                      K 1 Reply Last reply 22 Apr 2020, 11:42 Reply Quote 1
                      • K Offline
                        kugiigi @domubpkm
                        last edited by 22 Apr 2020, 11:42

                        @domubpkm I see. I used it extensively before when I was still developing my apps on my Nexus 5. Not for the internet though, for x-forwarding a full xfce desktop. Much responsive than via wifi 😄

                        1 Reply Last reply Reply Quote 1
                        • E Offline
                          Edward Wilhelm @domubpkm
                          last edited by 25 May 2020, 18:42

                          @domubpkm said in Is it possible to tether internet via usb?:

                          For info, you can also :

                          In the app UT TWEAK TOOLS, i noted the path :

                          • System
                          • ADB parameters : choose RNDIS instead of MTP

                          So after use, we can switch back to MTP.

                          I used this, and it works extremely well. Even better than iOS. Definitely a strong point of Ubuntu Touch. 🙂

                          D 1 Reply Last reply 25 May 2020, 19:59 Reply Quote 1
                          • D Offline
                            domubpkm @Edward Wilhelm
                            last edited by 25 May 2020, 19:59

                            @Edward-Wilhelm said in Is it possible to tether internet via usb? (Solved, works very good.):

                            Definitely a strong point of Ubuntu Touch.

                            IT IS. Moreover, we can think it's more safe than wifi (no data transit over the airwaves as in wifi.). But doesn't work yet in pinephone !!

                            Hi @dobey . Is RNDIS really secure in UT? Is RNDIS really more secure than wifi in UT ?

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              FlavioMala @dobey
                              last edited by FlavioMala 25 May 2020, 21:43

                              With my E5, if I well remember:
                              a) in system setting/devel mode set the pin (4 numbers)
                              b) I don't remember now if it is also necessary to set devel mode “on“

                              then in the terminal:

                              1. android-gadget-service enable rndis
                              2. sudo tethering enable (the phone ask the pin...)

                              of course 'hotspot' and 'mobile radio data' must be set “on“.

                              At "the end“:

                              1. sudo... disable

                              2. android...disable rndis

                              3. 'hotspot' off

                              4. 'wireless network' off (set on by hotspot)

                              5. 'mobile radio data' off

                              reset also pin (if you want) and devel mode.

                              K 1 Reply Last reply 25 May 2020, 23:28 Reply Quote 1
                              • K Offline
                                Keneda @FlavioMala
                                last edited by 25 May 2020, 23:28

                                @FlavioMala

                                More simple (and user friendly) solution was given :

                                @domubpkm said in Is it possible to tether internet via usb? (Solved, works very good.):

                                For info, you can also :

                                In the app UT TWEAK TOOLS, i noted the path :

                                • System
                                • ADB parameters : choose RNDIS instead of MTP

                                So after use, we can switch back to MTP.

                                2015-2023 : Meizu MX4 ☠️⚰️✝️
                                2023-2024 : Nexus 5 ☠️⚰️✝️
                                2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                🇲🇫🇬🇧

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  FlavioMala
                                  last edited by FlavioMala 26 May 2020, 20:38

                                  Yes !
                                  Now it is even more evident, comparing the two methods listed !

                                  I prefer wifi/wlan, but recently in a ... winz@w ... notebook (not mine) and a “vpn“ / network that kept crashing, usb has fixed it.

                                  1 Reply Last reply Reply Quote 1
                                  • N Offline
                                    nmz787 @dobey
                                    last edited by 4 Dec 2021, 18:49

                                    @dobey

                                    running the command in the terminal, I get this error android-gadget-service failed: rndis is unknown

                                    however UT Tweak Tool shows it was able to adjust the USB setting to RNDIS. I wonder if it failed silently in the background (I haven't plugged the phone into my freshTomato router yet).

                                    Anyone know if this lets the carrier know you're tethering, and how to hide this behavior? On a rooted Android device, some guides say you can run this in adb shell to hide settings put global tether_dun_required 0.

                                    Is there a similar command on ubuntu touch?

                                    F 1 Reply Last reply 23 Jan 2022, 09:32 Reply Quote 1
                                    • F Offline
                                      Fteacher @nmz787
                                      last edited by 23 Jan 2022, 09:32

                                      @nmz787 I have the same on a fresh Volla X with UT. I can change it in Ut tweaks but without any result and the command line gives failed: rndis is unknown.
                                      Aynone with a solution to this ?

                                      F 1 Reply Last reply 24 Jan 2022, 22:28 Reply Quote 0
                                      • F Offline
                                        Fteacher @Fteacher
                                        last edited by 24 Jan 2022, 22:28

                                        @fteacher I forgot to mention I'm using UT OTA-21 stable.
                                        Regarding the number of views of this thread, and the last posts, it is not "solved" yet.

                                        1 Reply Last reply Reply Quote 0
                                        • MrT10001M MrT10001 referenced this topic on 6 May 2022, 07:13
                                        • L Offline
                                          laschrocket
                                          last edited by 6 Feb 2024, 21:23

                                          Tried to replicate this at FP4 focal devel 598, but seems like non of those commands works any longer, not sure if it's since focal or something else. Does anyone have an idea how to get usb tethering working on this setup, if possible?

                                          D 1 Reply Last reply 7 Feb 2024, 01:08 Reply Quote 0
                                          • D Offline
                                            domubpkm @laschrocket
                                            last edited by 7 Feb 2024, 01:08

                                            @laschrocket Now usb tethering works for me on Focal Volla using UTTT (thanks for the great work of Jami !!) . So you can test the last built https://gitlab.com/myii/ut-tweak-tool/-/jobs/6091439040/artifacts/download?file_type=archive on FP4 to see if it works for you.

                                            L 1 Reply Last reply 11 Feb 2024, 20:53 Reply Quote 1
                                            • First post
                                              Last post