Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

sunbird-tools/sunbird

Security & Privacy

Patch Discord's Android Phoenix client to bypass its access gate and load TypeScript plugins via a QuickJS runtime.

113
14
Rust
3 days old

What it does

Phoenix Unlock patches Phoenix, the native Rust client shipped in Discord's Android alpha builds (356.7, versionCode 356207), so it launches without the access gate. Two checks are patched to return true: the launcher method that decides whether Phoenix may start, and the access check inside Phoenix's native library liblibdiscord_wasm_host.so. Both are located by strings and code shape rather than fixed offsets, according to the README.

The project also injects a TypeScript plugin runtime. Plugins can hook gateway events, add header and composer buttons, message accessories, profile sections and slash commands, and get their own pages under Settings → Phoenix Unlocker. It works without root or Xposed: the APK is patched and re-signed, then installed over the original or side-by-side under com.discord.phoenix.

Quick start

On an Android 9+ phone, open sunbird.tools in the browser. The page downloads Discord's split APKs, patches them, merges them into one APK and signs it in-browser. Choose install mode (replace Discord or side-by-side), toggle the plugin runtime, select bundled plugins or upload your own .js files, and optionally enable the Frida gadget for startup scripts. After installing, open Discord → Settings → Phoenix to enable plugins, change settings, install more from a URL or file, edit code and use the JS console.

To build from source on Linux with nix:

nix develop
nu scripts/phoenix.nu base.apk config.arm64_v8a.apk config.xxhdpi.apk config.en.apk

Swap config.armeabi_v7a.apk in for the arm64 split on 32-bit phones. This builds the loader and patcher, bundles plugins, patches the splits and installs with adb. Windows and web-patcher build details are in AGENTS.md.

Plugins are TypeScript bundles that receive a global phoenix object. The API reference is phoenix.d.ts and the example plugin exercises most of it:

// @description Logs incoming messages
// @version 1.0.0
// @author you

phoenix.on(phoenix.gateway.messageCreate, (message) => {
  phoenix.log.info(`<${message.author.username}> ${message.content}`);
});

phoenix.commands.register({
  name: "shrug",
  description: "Sends your text with ¯\\_(ツ)_/¯",
  execute: (args) => `${args} ¯\\_(ツ)_/¯`.trim(),
});

Constraints

Android 9 or newer is required. Builds are signed with a public key in crates/patcher/keys/, so they can update each other but cannot be verified as official Discord releases. Plugin hooks rely on ShadowHook through the sunhook fork linked into the native library on arm64 and armv7. There is no license declaration in the repository, and the project states it is not affiliated with Discord. Because the output is a modified, re-signed third-party APK, users are trusting the patching service and the hosted plugin bundles rather than an official Discord binary.

HotRepo's take

The repository entered HotRepo's new-project tracking for Rust on 2026-11-25, reporting 5 new stars over roughly 1.5 hours of observation, with 105 total stars and 11 forks. It has no recorded all-language daily rank. The star activity is small and recent, so it does not establish adoption or trust in the patched APK distribution path; the notable technical detail is the QuickJS-based plugin runtime that is shared across mobile and desktop platforms and uses a wasm build of the patcher on the website.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. Flowseal/zapret-discord-youtubeA Windows toolkit of DPI-bypass strategies for restoring access to YouTube, Discord and Telegram.Batchfile35,752