Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 586 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 586 Bytes

sepcvpn

Only support tcp stream for now

Build

ndk-build -C ./jni

Expose API in java

    // onNetTrafficChange will be called in jni
    public void onNetTrafficChange(long up, long down) {
    
    }

    public native void startVPN(int fd, String localAddress, String srvAddress, int srvPort , String method, String srvPWD);
    public native void stopVPN();

    // you need to find app uid to want 'Allowed' or 'Disallowed'
    public static native void addAllowedApplication(int appUID);
    public static native void addDisallowedApplication(int appUID);