this post was submitted on 02 Jan 2025
229 points (99.6% liked)

Linux

8382 readers
220 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] LiveLM@lemmy.zip 29 points 3 days ago* (last edited 3 days ago) (2 children)

Wait, isn't RNDIS what's used when you tether your Android's connection via USB? Or am I mistaking it for something else?

[–] Kazumara@discuss.tchncs.de 2 points 2 days ago (1 children)

Yes, with the exception of some that switched to USB CDC NCM already. I seem to be lucky, the Pixel 6 is one of the first to have made the switch.

[–] argarath@lemmy.world 1 points 2 days ago (2 children)

So if my mint install updates I won't be able to use USB tethering? Is there a way to update my phone to use USB CDC NCM? Or would I have better luck recompiling my mint install to add the standard they just removed? I'm pretty new to Linux (literally made the switch last November) and I sadly have to use USB tethering when my ISP shits the bed with routing to the US

[–] Kazumara@discuss.tchncs.de 1 points 1 day ago* (last edited 1 day ago)

First you will have to find out about your specific phone model. It seems that different chipset vendors implement different things for tethering.

Someone in the raspberry pi forums checked what his Pi Zero was doing with lsusb -t and someone in an old reddit thread checked his dmesg while connecting the phone and turning on tethering, maybe you can try those things while tethering to see whether currently the RNDIS or the USB CDC driver gets loaded for your phone.

Then we will have to see in which kernel version Greg's change finally lands. At the earliest it will land in Kernel 6.14 because 6.13 is already on the fifth release candidate so new changes shouldn't be added anymore. Then you have to find out when your Mint install will move to that kernel. If you are currently on Mint 22 Wilma (supported until 2029), then that's based on Ubuntu 24.04 LTS, which is based on the Ubuntu LTS Kernel 6.8.

I'm guessing now, based on past regularities, that Mint 23 will be based on Ubuntu 26.04 LTS, and that Ubuntu will choose a fresh kernel for their LTS in the beginning of 2026, so probably one that will contain this change by Greg. So it seems to me, that if 1) your phone still needs RNDIS for tethering and 2) you still have that phone in the middle of 2026 and 3) you still have that Mint install you should probably not upgrade to Mint 23, but stay on Mint 22 until its support ends in 2029.

But projecting that far into the future is kind of difficult, maybe distro maintainers will reenable RNDIS if they see it's still needed, or maybe a future Android Update will force OEMs to use USB CDC.

[–] notfromhere@lemmy.ml 1 points 2 days ago (1 children)

Why couldn’t the NDIS driver run in userspace?

[–] argarath@lemmy.world 1 points 1 day ago* (last edited 1 day ago) (1 children)

What's NDIS and what do you mean to run it in userspace? I am very new to Linux and am barely considered tech savvy so this is all going over my head

I just googled what a NDIS is and with my limited knowledge I think I understood what you're saying. Are you saying that I could keep an older/custom version of NDIS running on my own user account instead of changing the entire kernel for me to be able to use USB CDC NCM to keep using USB tethering?

[–] notfromhere@lemmy.ml 1 points 1 day ago

Yes you nailed it. No reason for kernel mode unless there are controlling lines needed that the user account is not able to change the signaling on (more rare), if it’s only data mode your user account should suffice.

[–] einlander@lemmy.world 16 points 3 days ago (1 children)

Yes, and it's still in new phones. They're being disingenuous saying that it's android phones don't use it.

[–] GolfNovemberUniform@infosec.pub 2 points 3 days ago (1 children)

So I may not be able to use ADB and Fastboot anymore after I get the kernel update?

[–] Laser@feddit.org 12 points 3 days ago (1 children)

That's different protocols. This is only about the one being used when you share your phone's connection via USB (tethering). Neither adb nor fastboot make use of this.

Also, starting with Android 14, there should be an alternative available with NCM.

[–] GolfNovemberUniform@infosec.pub 1 points 3 days ago (1 children)

Well a14 is not that common but I've never heard of tethering before (except for WiFi tethering that improves connection) so I guess it's not important.

[–] Laser@feddit.org 10 points 3 days ago (1 children)

It's not about improving a connection, but making your phone's network connection available to other devices. USB tethering creates a network device at /dev/usb... that behaves like an any ordinary network device, allowing you to create a connection using it. Wi-Fi tethering creates a hotspot similar to what your router at home does.

[–] GolfNovemberUniform@infosec.pub -2 points 3 days ago (1 children)

So now you can't use USB hotspots on Linux? Yea mainstream has gone pretty evil then tbh. They didn't even stop at the previous drama.

[–] Laser@feddit.org 6 points 3 days ago (1 children)

There's no such thing as USB hotspots, that's a term for WiFi. Also you can still use the NMC protocol if your Android version is recent enough. Just not RNDIS anymore. It's an insecure Microsoft protocol, though this probably wouldn't have mattered for a lot of people.

[–] GolfNovemberUniform@infosec.pub 1 points 3 days ago* (last edited 3 days ago) (1 children)

There's no such thing as USB hotspots

That was its name on my old Sony phone though.

Also you can still use the NMC protocol if your Android version is recent enough.

Yea but it's not a justification.

It's an insecure Microsoft protocol, though this probably wouldn't have mattered for a lot of people.

That's why a DE warning would be enough. Linux is just making terrible decisions recently. I guess it'll continue until major maintainer changes take place and that won't happen without life losses because nobody is going to leave the project so we might lose many of the Linux's benefits in a few years imo.

[–] UnityDevice@startrek.website 1 points 2 days ago (1 children)

A DE has little to do with this, it's a driver, it gets loaded when you plug in a compatible device, there's no interaction. This should have been disabled 2 years ago when the gaping security holes were found, and actually Greg had attempted to have it disabled in 2022 but it kept getting pushed back.

[–] GolfNovemberUniform@infosec.pub -1 points 2 days ago (1 children)

Uhm 2 years ago a14 was just released. There were pretty much no devices with it. Even though the protocol is unsafe, it's a good feature and killing desktop features just pushes Linux back.

Also a DE has stuff to do with it. It should be able to detect the connection and send a notification about it being potentially unsafe. Killing it is just a stupid move done by rich folks with latest flagships for rich folks with latest flagships.

[–] zalgotext@sh.itjust.works 3 points 2 days ago (1 children)

You're couching it as Linux "killing desktop features", when really it's just Linux removing one ancient, insecure driver for which there is a modern, secure alternative. And it's not like Linux is wiping the driver off the face of the planet. If you want to reintroduce the ancient, insecure driver back into your system, there are extensive instructions on compiling your own kernel with whatever you want in it.

[–] GolfNovemberUniform@infosec.pub -3 points 2 days ago* (last edited 2 days ago) (1 children)

I would love to see a new Linux user who just installed Linux on a pretty old machine because of no official Windows 11 support or performance issues compiling their own kernel. And they're not guaranteed to have a new phone either.

It's like saying that we should remove SDR monitor support because HDR somewhat works on Linux and it's better so everyone should move to it.

Same goes to X11. It's still available on sane and serious distros because it's needed for some people.

[–] zalgotext@sh.itjust.works 1 points 2 days ago (1 children)

Those are terrible comparisons. The amount of people using SDR and X11 still is gigantic, the amount of people using USB tethering is... not.

[–] GolfNovemberUniform@infosec.pub 0 points 1 day ago (1 children)

I think you missed the word "regularly" in your sentence. USB tethering is not required very often.

[–] zalgotext@sh.itjust.works 1 points 1 day ago (1 children)

Nope, you just misread my comment

Well then I can only say I disagree. Tethering isn't as common as SDR but it's still a pretty sizeable thing imo.