Skip to content
프로젝트

소개

Xray-core 기반의 안정적이고 효율적인 Android 프록시 클라이언트입니다.

시스템 및 인프라

이 수치를 측정하는 방법

What you can do

  • Enhanced Stability: By running Xray-core as an independent child process, SimpleXray avoids JNI complexities, potential memory issues, and app crashes linked to core library failures. This isolation significantly improves reliability.
  • High Performance: Leverages Xray-core's native speed and integrates @heiher/hev-socks5-tunnel for efficient Tun2socks, ensuring low latency and high throughput.
  • User-Friendly: Offers a clean, intuitive UI and simplified setup, making it easy for users to configure and manage connections.

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

SimpleXray

icon

GitHub Release FDroid Release GitHub License GitHub Actions Workflow Status GitHub Downloads (all assets, all releases)

SimpleXray is a high-performance proxy client for Android, built upon the robust Xray-core (@XTLS/Xray-core).

It features an innovative approach: directly executing the official Xray-core binary, unlike traditional JNI methods. This method isolates core logic from the app layer, boosting stability and maximizing Xray-core's native performance. SimpleXray aims to provide a stable and efficient network experience.

Key Features

  • Enhanced Stability: By running Xray-core as an independent child process, SimpleXray avoids JNI complexities, potential memory issues, and app crashes linked to core library failures. This isolation significantly improves reliability.
  • High Performance: Leverages Xray-core's native speed and integrates @heiher/hev-socks5-tunnel for efficient Tun2socks, ensuring low latency and high throughput.
  • User-Friendly: Offers a clean, intuitive UI and simplified setup, making it easy for users to configure and manage connections.

Unique Technical Approach

Most Xray-core Android clients use JNI to call a compiled .so library. While easy to integrate, this can cause stability issues like performance overhead, cross-language complexity, and app crashes if the core library fails.

SimpleXray's core difference is how it starts and manages the proxy:

On installation/update, the embedded Xray-core binary (as libxray.so) is extracted. When connecting, the app uses standard Android APIs to run this binary as a separate child process, not via JNI calls. Communication happens via defined Inter-Process Communication (IPC).

This design preserves the original Xray-core binary's stability and performance while physically isolating the core process from the main app, enhancing reliability and security.

Data Files (geoip.dat / geosite.dat)

The project includes a simplified version with basic rules ("geoip:private", "geoip:cn", "geosite:gfw") from @lhear/v2ray-rules-dat.

Quick Start

  1. Requirement: Android 10 or higher.
  2. Get App: Download the APK from the Release Page or get it from F-Droid.
  3. Install: Install the APK on your device.
  4. Configure: Launch the app, import or manually add server details.
  5. Connect: Select a config and tap connect.

Build Guide (Developers)

  1. Environment: Install Android Studio and configure the Android SDK.
  2. Get Code: Clone the repo and submodules:
    git clone --recursive https://github.com/lhear/SimpleXray
    
  3. Import: Open the project in Android Studio.
  4. Integrate Core: Place the Xray-core binary (libxray.so) for your target architecture in app/src/main/jniLibs/[architecture directory]. E.g., app/src/main/jniLibs/arm64-v8a/libxray.so.
  5. Add Data Files: Place geoip.dat and geosite.dat files into the app/src/main/assets/ directory. These are required for routing.
  6. Build: Sync Gradle and run the build task.

Contributing

Contributions are welcome! You can help by:

  • Submitting Bug Reports (Issues)
  • Suggesting Features
  • Submitting Code (Pull Requests)
  • Improving Documentation

License

This project is licensed under the Mozilla Public License Version 2.0.

관련 프로젝트 살펴보기

불러오는 중…