robinpaulson / SimpleRT

Simple Reverse Tethering utility for Android
GNU General Public License v3.0
899 stars 101 forks source link

read_usb_packet failed: Input/Output Error #23

Closed fervi closed 7 years ago

fervi commented 7 years ago

Phone: Samsung Galaxy Note 2 OS: Replicant 6.0

Log: http://meshnet-users.tk/paste/p/ajwo/z.txt

It looks normally, but internet doesn't work

vvviperrr commented 7 years ago

looks like some devices have such issue. i dont have any ideas how to fix this. can u run simplert, connect device and copy output of lsusb -vvv? thanks.

fervi commented 7 years ago

http://meshnet-users.tk/paste/p/ajwq/f.txt

vvviperrr commented 7 years ago

seems like i got it

https://github.com/vvviperrr/SimpleRT/blob/master/simple-rt-cli/src/adk.c#L55

change this constants to:

define AOA_ACCESSORY_EP_IN 0x82

define AOA_ACCESSORY_EP_OUT 0x04

recompile and try again.

btw. try first with google dns (-n param) for clearance

fervi commented 7 years ago

Yep it works. Thanks.

If u can, fix something to works automatically without modify.

Thanks again

vvviperrr commented 7 years ago

AWESOME :) Thanks for u support.

I will update the code to get this numbers from device.

fervi commented 7 years ago

Ofc. it works for me. Maybe for someone else it doesn't work or something like that :P

vvviperrr commented 7 years ago

i understand. the problem was in this params, they are hardcoded. i need to read this numbers from user device (as lsusb does) :)

vvviperrr commented 7 years ago

i hope, this issue was fixed in 0a3ff8a46

please, check on your device, as soon as you can.

fervi commented 7 years ago

Sorry, now works without mods :+1: