Giter VIP home page Giter VIP logo

libsagernetcore's People

Contributors

akinokaede avatar arm64v8a avatar dependabot[bot] avatar dyhkwong avatar enfein avatar fhokud avatar ignoramous avatar nekohasekai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libsagernetcore's Issues

Where did I go wrong?

I build a kernel but when I try to compile the app it gives an error

Failed to transform 'A:\Workspace\SagerNet\app\libs\libcore.aar' using Jetifier. Reason: ZipException, message: invalid code lengths set.

Tun2ray state callback

Calling Libcore.newTun2ray(config) will cause the tun to get killed after a delay and not getting initialized as expected.
A Thread.sleep(2000) after calling newTun2ray will make it initialized and everything getting work very well.
I have created a new project and implemented everything from scratch, so i'm pretty sure the newTun2ray will get killed without a sleep after it (you can try it yourself)
I have also read the sagernet android app's source code and there are loops (sleeps) after this method which make it work (not getting killed).
I think should be a callback from the newTun2ray to be able to wait from kotlin side for tun to get initialized

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.