MyGit
🚩收到GitHub仓库的更新通知

Asterisk4Magisk/Xray4Magisk

Fork: 37 Star: 320 (更新于 2024-05-09 06:27:18)

license: 暂无

Language: Shell .

Xray core with service scripts for Android

最后发布版本: v3.3.2 ( 2024-04-15 01:07:15)

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

English | 简体中文

Xray4Magisk

A fork from V2ray for Android

This is a Magisk module for Xray/V2ray/Sing-box/Mihomo(Clash.Meta), and includes xrayhelper binaries for arm64, x64.

Disclaimer

I'm not responsible for bricked devices, dead SD cards, or burning your SoC.

Make sure your config file does not cause traffic to loop back, otherwise it may cause your phone to constantly reboot.

If you really don't know how to configure this module, you mignt need apps like v2rayNG, SagerNet(or AnXray), ClashMeta For Android etc.

Install

Download the module zip from Release and install it via Magisk

This module does not contain binaries such as Xray-core, When installing, the relevant files are downloaded automatically. If your network has poor access to Github, please consider using a network proxy or choose not install core online.

If your device don't have volume keys, you can create file /sdcard/xray4magisk.setup, first line of the file will determine the core type, xray for Xray, v2ray for V2ray, sing-box for Sing-box, mihomo for Mihomo(Clash.Meta) and skip for skip core installation, any other content will still use the volume keys to select core.

Config

  • The xrayhelper config file is stored in /data/adb/xray/xrayhelper.yml
  • The xray config file is stored in /data/adb/xray/confs/*.json
  • The v2ray config file is stored in /data/adb/xray/v2ray.v5.json
  • The sing-box config file is stored in /data/adb/xray/singconfs/*.json
  • The mihomo(clash.meta) template config file is stored in /data/adb/xray/mihomoconfs/template.yaml

Tip: The default config already sets the inbounds section to work with transparent proxy scripts. It is recommended that use xrayhelper to manage your proxy server, for advanced configurations please refer to the appropriate official documentation, such as Xray, V2ray, Sing-box, Mihomo

Usage

Quick Start

Manage service start / stop

The following core services are collectively referred to as Xray

  • Xray service is auto-run after system boot up by default.
  • You can use Magisk Manager App to manage it. Starting the service may take a few seconds, stopping it may take effect immediately.

Config xrayhelper in Termux

  • Install Termux :

    Termux on Github

  • Config alias (bash):

    echo "alias xrayhelper=\"su -c /data/adb/xray/bin/xrayhelper\"" >> ~/.bashrc && source ~/.bashrc

Example usage of xrayhelper

Manage service start / stop

  • Start service :

    xrayhelper service start

  • Stop service :

    xrayhelper service stop

Manage transparent proxy enable / disable

  • Enable Transparent proxy :

    xrayhelper proxy enable

  • Disable Transparent proxy :

    xrayhelper proxy disable

More things about module configuration

XrayHelper is used in version 3.0 and above, for more detailed configuration please refer to XrayHelper

Debug and Develop

Enter manual mode

If you want to control xray by running command totally, just add a file /data/adb/xray/manual. In this situation, xray service won't start on boot automatically and you cann't manage service start/stop via Magisk Manager App.

Print verbose log

Just add the option -v or --verbose when you using xrayhelper

Uninstall

  1. Uninstall the module via Magisk Manager App.
  2. You can clean xray data dir by running command rm -rf /data/adb/xray && rm -rf /data/adb/service.d/xray4magisk_service.sh .

FAQ

What is the difference between 3.0 and previous version?

Rewritten with Golang, implements some functions that are difficult to implement with shell scripts, does not depend on BusyBox, and can be installed on KernelSU.

This module cause battery drain really quick.

It might be a DNS issue, check /data/adb/xray/run/error.log.

GUI support?

No plan.

Why not store config files in Internal Storage?

For privacy. Some apps may read your data, check Storage Isolation

Contact

Project X

Project X is a set of network tools that help you to build your own computer network. It secures your network connections and thus protects your privacy. See Project X for more information.

XrayHelper

XrayHelper, A unified proxy helper for Android, some scripts in Xray4Magisk rewritten with golang, provide arm64 and amd64 binary.

License

Mozilla Public License Version 2.0 (MPL)

最近版本更新:(数据更新于 2024-05-13 13:57:34)

2024-04-15 01:07:15 v3.3.2

2024-04-06 19:25:48 v3.3.1

2023-12-13 01:56:09 v3.3.0

2023-07-31 04:30:07 v3.2.5

2023-07-19 18:56:20 v3.2.4

2023-07-02 17:04:17 v3.2.3

2023-06-28 18:24:42 v3.2.2

2023-06-25 22:20:55 v3.2.1

2023-06-17 11:21:50 v3.2.0

2023-06-13 16:20:35 v3.1.0

Asterisk4Magisk/Xray4Magisk同语言 Shell最近更新仓库

2024-05-17 11:33:07 SeleniumHQ/docker-selenium

2024-05-16 04:59:12 base-org/node

2024-05-14 14:38:06 RROrg/rr

2024-05-14 05:26:10 AuxXxilium/arc

2024-05-11 22:58:23 sakarie9/DoL-Lyra

2024-05-10 17:09:30 iranee/qnap-alist-webdav