I was able to do this using the tun2socks package. you can add the source code as a library to your code in .aar file format. then impelement it in app/buildgradle. you can now use the library in a vpn service. with key and engine values http / https / socks5 will be available. besides that it passes through proxy checkers without any problem. proxy info is not very good at this.