-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start hotspot when the USB Tethering hotspot type is used. #351
Comments
The USB tethering mode is looking for an interface identified as RNDIS. Do you have access to an Android Studio environment? If you do, you can build a simple test app and copy the code from RNDISServer.kt in the function resolveRNDISNetwork This function goes through all of the various internet devices and attempts to pick the one labelled RNDIS, maybe yours is something different that I also need to look for? |
I'm going to rebuild the app and try to verify it again just to be sure, after building ktor which took ages for some reason: |
You can use the upstream ktor if you don't need to use the preferred network feature. If you change the ktor dep back to upstream, I think you just have to change the 2 lines where I call connectWithConfiguration to connect Thanks for getting deep in the code here! If you device is returning null for this, I'll need a different API to enumerated the devices |
After successfully building TetherFi from the source I can verify that the The |
I can verify that changing the "EXPECTED_RNDIS_NAME_PREFIX" string value to "ncm" I can successfully launch the hotspot. |
Awesome find, thank you I will patch the code to look for both interface name prefixes |
No longer reproduced on either emulator/phone, likely a false alarm. |
According to #351, its not just "RNDIS", but some devices also appear to use "ncm" as their USB tethering device prefix. I have no idea what the difference is, but whatever, if it works it works :)
I have added support for the Thank you for your contribution to the project! |
Version 51 is in production testing and includes the ncm change. |
The phone is connected to the PC, and the USB network sharing mode is enabled, but the hotspot failed to start with the following error:
Developer log:
Additional information
TetherFi
49 from Google Play
Android
14 (AP2A.240905.003)
Phone
Google Pixel 8 Pro
The text was updated successfully, but these errors were encountered: