[WIP] Add SOCKS5 proxy server implementation in Android app#1
Merged
Conversation
- settings.gradle.kts: project config with plugin management and dependency resolution - build.gradle.kts: top-level build file with AGP 8.5.2, Kotlin 2.0.21 - gradle/libs.versions.toml: version catalog with all dependencies - app/build.gradle.kts: module build config (compileSdk 35, minSdk 26) - AndroidManifest.xml: permissions, activity, foreground service declaration - Socks5Handler.kt: RFC 1928/1929 SOCKS5 protocol handler (connect + auth) - Socks5Server.kt: ServerSocket accept loop with coroutine-per-connection - ProxyForegroundService.kt: foreground service hosting the proxy server - ProxyViewModel.kt: AndroidViewModel with UI state and service control - ProxyScreen.kt: Compose UI with port, auth toggle, start/stop button - Theme/Color.kt: Material3 theming with status colors - MainActivity.kt: edge-to-edge Compose entry point - Resources: strings, themes, colors, vector drawables, adaptive icons Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: veynko <49876227+veynko@users.noreply.github.com>
- MainActivity: pass innerPadding to ProxyScreen to prevent content drawing under system bars - ProxyScreen: accept modifier parameter and apply it to root Column - Socks5Handler.forwardData: cancel both directions symmetrically — each direction now cancels the other as soon as it finishes, rather than only cancelling remoteToClient after clientToRemote Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: veynko <49876227+veynko@users.noreply.github.com>
Agent-Logs-Url: https://github.com/veynko/andorid-proxy-server/sessions/c1acc304-16d3-4e44-bca5-5bcd6fe6d6d2 Co-authored-by: veynko <49876227+veynko@users.noreply.github.com>
Copilot stopped work on behalf of
veynko due to an error
May 1, 2026 19:53
Copilot stopped work on behalf of
veynko due to an error
May 1, 2026 20:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original prompt