-
Notifications
You must be signed in to change notification settings - Fork 11
[Improvement] Maybe change default gadget vendor & product ID is a good idea? #1
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
Comments
By the way I done some binary hacking, modified my current binary to have Maybe there are extra works need to be done. |
The RNDIS in HandsomeMod looks different from that in Android. Android's RNDIS can be recognized by RouterOS, but HandsomeMod's is not. |
Btw which version of RouterOS are you using? |
RouterOS 7.2.3 on RB5009 |
Linux系统下的USB信息应该有些帮助:
HandsomeMod:
|
#ifndef ID_VENDOR #ifndef ID_PRODUCT
This works well in RotuerOS 7.6 @ RBD52G-5HacD2HnD-TC. ID from https://wiki.mikrotik.com/wiki/Manual:Peripherals btw, RouterOS has a strange behavior, if you plug a normal android phone, enable usb tethering, wait lte interface shows up, then unplug it, plug the usb stick, it will work before reboot, with default rndis @ 18D1:D001. |
同样的问题,但是我认为更改vid和pid并不能使它在win11上正常工作,我直接patch了二进制中的vid和pid,并把它更改为和我小米手机相同(手机开启usb共享网络是能自动识别并正确安装驱动的),这次识别出的设备中功能里倒是多了RNDIS,但是却并不能安装驱动,我不是太懂这些,也许还需要其他一些字段满足才行。 另外,我在很多其他地方看到了这些
这可以用来生成一个RNDIS设备,但是作者的代码写的对我来说有点困惑,这个结构体为什么完全没有用到呢,但是从windows的反应似乎又发送过去了。。。 那个vendor code也和网上其他的一些写的不一样 ,不知道是不是因为这些原因导致驱动会找不到。 手动修改inf在高版本系统下还得关闭驱动强制签名 完全划不来 不知道作者有没有在windows平台下测试过,盼望能早日好用 |
Currently
gc
is usingVID=0x18D1
PID=0xD001
, which is corresponding to Android Fastboot device (often called "recovery" interface, some device info site mark this as "Nexus 4 (fastboot)").Maybe this is the reason Windows just can't pickup RNDIS immediately and required for manual driver selection.
A better USB device ID is
VID=0x18D1
PID=0x4EE4
, which on some site this matched as "Nexus/Pixel Device (tether+ debug)", which better suited for HandsomeMod use (RNDIS+ADB).References:
The text was updated successfully, but these errors were encountered: