4 ms·
I wrote this after a bad week at a previous job trying to get an Android device to work with a CDC Ethernet adapter. Since writing this, a couple people have l
by jordemort 1y ago
I wrote this after a bad week at a previous job trying to get an Android device to work with a CDC Ethernet adapter.
Since writing this, a couple people have let me know that there is a particular bit in the MAC address, that if flipped, will cause the kernel to assign an `ethX` name instead of `usbX` name. I haven't tried it myself or updated the post with that information because I moved on to a different job, and Android devices are no longer a large part of my life.
Of course, that only helps if you have a CDC device where you're in control of the MAC address (i.e. maybe another Linux device pretending to be a CDC adapter)
- rcxdude 1y agoThis might actually help me out! Did you find what bit it is? (Ah, I think I found it: https://lkml.iu.edu/hypermail/linux/kernel/1103.2/03250.html https://lkml.iu.edu/hypermail/linux/kernel/1103.2/03250.html )
- goodburb 1y agoThanks, setting the MAC address to global bit works on my Moto Android 15, Honor Android 9, and GSI 16 from a Raspberry Pi [1]. It now appears as eth0 and routes created only after turning off the Wi-Fi, DHCP is obtained regardless. ECM scores 270Mbit, RNDIS 150Mbit. Mobile hotspots/dongles with MAC address modification should work. (currently detected as usb0) [1]: https://gist.github.com/TalalMash/c20e6aa237e1f123ddf9686a07a1bfed https://gist.github.com/TalalMash/c20e6aa237e1f123ddf9686a07...
- deleted 1y ago[deleted]
- chews 1y agoyes to this post!