Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

基于flutter的Android vpn代理工具 Android VPN Proxy Tool Based on Flutter

License

Notifications You must be signed in to change notification settings

ys1231/appproxy

Repository files navigation

项目背景

  • 在分析app的时候,偶尔需要抓包,尝试了目前比较常见的代理工具
  • Drony Postern ProxyDroid 发现都有一个相同的问题,对于较新的Android系统不太友好,要么app列表显示不正常,或者界面过于复杂,往往设置之后经常会失效,偶然在play上发现一个比较新的代理工具,界面很不错清晰不过对国内用户不友好有些功能需要会员,即使花钱由于不维护或者网络原因,完整的功能无法使用于是在业余时间开发了这个.

项目简介

  1. 基于flutter和tun2socks开发.
  2. appproxy 是一个轻量级的VPN代理工具,支持HTTP, SOCKS5协议.
  3. 功能单只做代理,可分app代理, 双击修改配置 逻辑比较简单, 主打一个能用就行.
  4. 出于学习熟悉flutter的目的去做的,分享给大家,顺便帮我测试一下.
  5. 加上MoveCertificate 上下游都有了哈哈.

重要的事情说三遍

  • 双击修改配置
  • 双击修改配置
  • 双击修改配置

Star History

Star History Chart

附上截图

Screenshot_20240604-205220

Screenshot_20240604-205910

Screenshot_20240604-205229

Screenshot_20240604-205148

Screenshot_20240604-205158 img.png

依赖项目

开发

build tun2socks

  • touch tun2socks/build.sh
#!/bin/zsh
set -x
TUN2SOCKS_DIR="${0:a:h}"
cd $TUN2SOCKS_DIR
go get
go install golang.org/x/mobile/cmd/gomobile@latest
go get golang.org/x/mobile/bind
go get
make
gomobile init
gomobile bind -o ../android/app/libs/tun2socks.aar -target android -androidapi 30 ./engine
ls ../android/app/libs/tun2socks.aar
# 如果发现Android Studio 调试flutter 自动跳到一个只读的文件,调试的时候无法修改代码,可以恢复上一个版本,是的坑.
# 推荐 "Android Studio Iguana | 2023.2.1 Patch 2" -> "Android Studio Meerkat | 2024.3.1 Patch 1"
# line 设置为 100
tun2socks/build.sh
flutter build apk --release --split-per-abi --build-name=$VERSION --obfuscate --split-debug-info ./build/

flutter shorebird 热更新

  • appproxy 已经绑定可强制更新 app_id
# linux && mac
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
# windows
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -UseBasicParsing 'https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1'|iex

# 官网注册
https://console.shorebird.dev/login
# shell 登录
shorebird login
# 初始化项目 在 flutter 项目下执行即可
shorebird init
# 编译
shorebird release -p android --artifact apk 
# 打补丁
shorebird patch --platforms=android

免责声明

  • 本程序仅用于学习交流, 请勿用于非法用途.

About

基于flutter的Android vpn代理工具 Android VPN Proxy Tool Based on Flutter

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •