{"id":13438744,"url":"https://github.com/xxf098/go-tun2socks-build","last_synced_at":"2026-03-01T18:02:59.714Z","repository":{"id":46596860,"uuid":"231320245","full_name":"xxf098/go-tun2socks-build","owner":"xxf098","description":"tun2socks with v2ray \u0026 xray support for Android","archived":false,"fork":false,"pushed_at":"2023-09-03T13:12:40.000Z","size":401,"stargazers_count":191,"open_issues_count":5,"forks_count":85,"subscribers_count":12,"default_branch":"lite","last_synced_at":"2025-04-10T02:54:03.338Z","etag":null,"topics":["android","golang","tun2socks","v2ray","xray"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxf098.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-02T06:21:40.000Z","updated_at":"2025-02-14T20:11:19.000Z","dependencies_parsed_at":"2024-06-18T21:17:52.516Z","dependency_job_id":"062a8944-5957-420a-a89f-2ded236c0d57","html_url":"https://github.com/xxf098/go-tun2socks-build","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/xxf098/go-tun2socks-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxf098%2Fgo-tun2socks-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxf098%2Fgo-tun2socks-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxf098%2Fgo-tun2socks-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxf098%2Fgo-tun2socks-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxf098","download_url":"https://codeload.github.com/xxf098/go-tun2socks-build/tar.gz/refs/heads/lite","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxf098%2Fgo-tun2socks-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29977967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","golang","tun2socks","v2ray","xray"],"created_at":"2024-07-31T03:01:08.063Z","updated_at":"2026-03-01T18:02:59.696Z","avatar_url":"https://github.com/xxf098.png","language":"Go","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# go-tun2socks-build\n\nBuilding and using `go-tun2socks` for V2Ray on Android. This library is used in [shadowsocksr-v2ray-trojan-android](https://github.com/xxf098/shadowsocksr-v2ray-trojan-android) for support V2Ray.\n\n![build](https://github.com/xxf098/go-tun2socks-build/workflows/build/badge.svg?branch=master\u0026event=push) \n\n## Setup\n\n* install [go](https://golang.org/doc/install#download) (test with version 1.21.0)\n* install [gomobile](https://godoc.org/golang.org/x/mobile/cmd/gomobile) with`go install golang.org/x/mobile/cmd/gomobile@latest`, then init with `gomobile init -v`\n* install [JDK 8](https://openjdk.java.net/install/) (not jre)\n* Download Android SDK and [NDK](https://developer.android.com/ndk/downloads) (test with SDK 30 and NDK r21e)\n\n\n## Build\n```bash\n# china only\nexport GOPROXY=https://goproxy.cn\n# setup go env\nexport GOPATH=\"/home/xxx/go\"\nexport PATH=$PATH:/usr/local/go/bin:~/go/bin\n# setup android env\nexport ANDROID_HOME=/path/to/Android/Sdk\nexport ANDROID_NDK_HOME=/path/to/Android/android-ndk-r21d\n\ngo get -d ./...\n\n# Build an AAR\nmake android\n\n```\n\n## Useage\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxf098%2Fgo-tun2socks-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxf098%2Fgo-tun2socks-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxf098%2Fgo-tun2socks-build/lists"}