No description
- XrayServers now holds a structured server list with per-entry name and local port - XrayController builds built-in proxies from the list (createBuiltinProxies/byPort) - ProxyInfo gains builtinName; proxy list shows the configured name - Built-in proxies keep the same protection: read-only, not editable/shareable - Credentials stay in git-ignored XrayServers.java; template updated Verified: TMessagesProj compileReleaseJavaWithJavac succeeds. |
||
|---|---|---|
| .github | ||
| buildSrc | ||
| gradle/wrapper | ||
| libxray | ||
| TMessagesProj | ||
| TMessagesProj_App | ||
| TMessagesProj_AppTests | ||
| Tools | ||
| .gitignore | ||
| build.gradle | ||
| crowdin.yml | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle | ||
FoxiGram
An unofficial Telegram client based on Nekogram, with a built-in VLESS+Reality proxy client (Xray) for bundled, one-tap proxy access.
Built-in proxy servers
Server credentials are intentionally kept out of this repository.
- The real servers live in
TMessagesProj/src/main/java/org/telegram/messenger/XrayServers.java, which is git-ignored. - A template is provided at
XrayServers.java.template.
To configure your own bundled proxies:
cd TMessagesProj/src/main/java/org/telegram/messenger/
cp XrayServers.java.template XrayServers.java
# then edit XrayServers.java and fill in your VLESS+Reality server data
Leaving the addresses empty disables the bundled proxies — the app still builds and runs, you just won't see the pre-configured entries in the proxy list.
Native Xray library (libxray.so)
The proxy core is a small Go wrapper around xray-core, built as a JNI shared
library. The source is in libxray/. The compiled libxray.so is git-ignored
and must be built locally.
Build for Android arm64 (requires Go and the Android NDK):
cd libxray
go mod tidy
set CGO_ENABLED=1
set GOOS=android
set GOARCH=arm64
set CC=<NDK>/toolchains/llvm/prebuilt/<host>/bin/aarch64-linux-android21-clang
go build -buildmode=c-shared -o ../TMessagesProj/src/main/jniLibs/arm64-v8a/libxray.so .
Building the app
Standard Gradle build:
./gradlew :TMessagesProj_App:assembleRelease -Pandroid.injected.build.abi.filter=arm64-v8a
The output APK is named FoxiGram-<version>-<code>-<abi>.apk.
Notes
google-services.json, signing keystores, andlocal.propertiesare not committed. Provide your own for release builds.- This is a fork for personal use. Based on Nekogram, which is based on Telegram for Android.