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
能否提供libv2ray模块供学习 #49
Comments
你好,使用https://github.com/2dust/AndroidLibV2rayLite 上的源代码编译出来的libv2ray.arr放入本项目后,编译成功,但是安装之后出现了一个疑问。具体是这样的,在设置里面的路由模式选择全局可以成功连接,但是选择其他的模式,就会报错,日志里显示是no correct JVM。请问这是什么原因呢? |
请问一下怎么编译出aar呢,还没解决,能具体说下吗 |
@2dust 按照这个编译成功之后,放入本项目相应位置编译成功,但是选择不是全局的路由模式就会无法连接。显示no correct JVM |
我是应该把Seq.setContext(getApplicationContext())加入到.java么?能不能说一下具体操作 |
Seq.setContext(Context context). 增加在调用lib之前 |
@gam2046 搞定了吗?想参考一下 |
在V2RayVpnService 的onCreate 增加 |
@2dust 在在V2RayVpnService 的onCreate 增加 Seq.setContext(applicationContext)后
|
For anyone wondering here about how to build that Libv2ray.aar Library, you can visit this answer on stack overflow for a shortcut. |
因自己最近想学习VpnService收到的三层报文转发方法,参考了此项目,但是发现此项目com/v2ray/ang/service/V2RayVpnService.kt#24 中通过local socket将tun的文件描述符传入了libv2ray模块。
因此,是否方便提供libv2ray以供学习呢?如果不方便的话,能否给一些参考资料,对于VpnService收到的三层报文,如何以最简单的方式,将数据原样发送出去?
因为Java上提供的所有网络方法均构建在协议四层,NDK中也无法创建raw socket
如果不便提供任何信息,请直接关闭此issue即可。
The text was updated successfully, but these errors were encountered: