Skip to content

XPRAMT/RedMagicX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedMagicX

Language: English | 繁體中文

RedMagicX is an unofficial RedMagic / Nubia tweak app for LSPosed, root, and Shizuku workflows. It mainly improves or solves China ROM UI behavior: VoWiFi UI, media volume-key step size, bottom gesture-bar assistant redirection, third-party launcher control, ADB control, and quick access to engineering mode and phone information.

Current version: 0.3.1

Tested device: RedMagic / Nubia NX809J China ROM. Other RedMagic / Nubia models have not been tested, but may work if their ROM uses the same ZTE classes and properties.

RedMagicX main screen

Table of Contents

Installation

Download the APK from GitHub Releases and install it directly on the phone.

For VoWiFi carrier capability, install Pixel IMS first and use it to enable VoWiFi. RedMagicX mainly fixes China ROM UI behavior: the missing Wi-Fi Calling / VoWiFi Settings toggle and status-bar VoWiFi icon behavior.

Root is used only for actions that execute shell commands, such as restarting Settings/SystemUI and applying the default launcher when Shizuku is not used.

Grant root permission

Select RedMagicX scopes in LSPosed:

Select LSPosed scopes

LSPosed Scopes

Enable RedMagicX in LSPosed, then select scopes based on the features you use:

Feature Required scope
VoWiFi UI Fix com.android.settings, com.android.systemui
Volume Step Control android / System Framework
Assistant Gesture Redirect com.android.systemui
Third-Party Launcher recent-task hiding com.zte.mifavor.launcher

Settings are saved with LSPosed XSharedPreferences. If a target process already loaded before a setting change, restart the related process from the app when available; if the target is android, reboot the phone.

Features

VoWiFi UI Fix

Uses LSPosed hooks only. It does not globally modify system properties with resetprop.

VoWiFi UI Fix settings

Switch Scope What it changes
Enable VoWiFi settings com.android.settings Makes Settings read ro.vendor.feature.zte_feature_need_wfc_for_domestic=true, so the Wi-Fi Calling / VoWiFi toggle appears. Pixel IMS or carrier config is still required to enable WFC capability.
Enable status-bar VoWiFi icon com.android.systemui Makes IMS/status-icon code read ro.vendor.mifavor.custom=abroad / ro.mifavor.custom=abroad, while navigation and assistant code stays on home to avoid breaking the gesture bar.
VoWiFi icon style = GEN_BD com.android.systemui Makes SystemUI read persist.custom.variant.id=GEN_BD, selecting BD-style VoWiFi resources. Restart SystemUI after changing.
VoWiFi icon style = Hook array com.android.systemui Replaces the IMS icon array result with the BD array. Tested working with dual SIM on the current NX809J ROM; it depends on the current ROM method name.

The Open WiFi Calling settings button directly opens RedMagic Settings WifiCallingSettingsActivity and does not require root or Shizuku.

VoWiFi icon style comparison:

Default style uses statusbar_vowifi.svg:

Default statusbar_vowifi icon

BD style uses bd_stat_vowifi.svg:

BD bd_stat_vowifi icon

Volume Step Control

Customizes how many media-volume levels one hardware volume-key press changes.

Volume Step Control settings

  • Range: 1 to 10
  • Scope: android / System Framework
  • Hook target: com.android.server.audio.AudioService
  • Hooked behavior: media-volume key up/down step size
  • Activation: enable the switch, set the step value, then reboot so system_server loads the LSPosed module

Assistant Gesture Redirect

Redirects the RedMagic bottom gesture-bar long-press assistant event.

Assistant Gesture Redirect settings

Targets:

  • System actions: Assistant, voice assistant, recents, screenshot, flashlight
  • User apps
  • System apps

This feature does not change Android's default assistant setting. It intercepts the SystemUI broadcast path before the original RedMagic assistant target opens, then launches the selected target.

Third-Party Launcher

Sets a selected launcher as the default HOME activity and can hide that launcher from RedMagic's recent apps list in gesture mode.

Third-Party Launcher settings

  • Change launcher: uses Android's own cmd package set-home-activity --user 0 <component>.
  • Permission path: root is tried first; if root is unavailable, Shizuku shell permission is used.
  • Hide from recents: requires LSPosed scope com.zte.mifavor.launcher. It hooks RedMagic Launcher RecentsView#onGestureAnimationStart; only when gesture mode current task is the selected third-party HOME, it prevents that task from being inserted as a recent-task card.

ADB Control Center

All ADB Control Center actions require root.

  • Enable ADB: controls the Developer options USB debugging setting through adb_enabled=1.
  • Spoof ADB status: writes adb_enabled=2. Android treats values above zero as enabled, while some apps that check only for adb_enabled == 1 may treat it as disabled. It does not bypass apps that check other debugging state.
  • Enable wireless ADB: sets the TCP port and restarts adbd. The switch is saved as user intent rather than mirroring the current daemon state. When ADB is enabled, RedMagicX checks the daemon every five seconds and restores wireless ADB with the saved port when needed.
  • Allow ADB install: controls RedMagic Developer options adb_install_enabled=1, which is required before adb install can install APKs.

Quick Entry

Provides automatic dialing for RedMagic engineering mode and a direct phone-information shortcut.

  • Unlock engineering mode: automatically enters *983*673636# in the stock RedMagic dialer. This is normally needed only once.
  • Enter engineering mode: automatically enters *983*0# so EMode performs its required initialization and loads the complete test menu.
  • Dialer validation: verifies that com.android.contacts/.activities.DialtactsActivity exists and is enabled before injecting input. Missing or failed dialer launches stop immediately instead of reporting success.
  • Permission path: root is tried first; when root is unavailable, Shizuku shell permission is used.
  • Phone information: directly opens com.android.phone/.settings.RadioInfo without root or Shizuku on the tested NX809J ROM.

Build

& 'C:\Users\XPRAMT\.gradle\wrapper\dists\gradle-8.13-bin\5xuhj0ry160q40clulazy9h7d\gradle-8.13\bin\gradle.bat' -p 'D:\Android\ZTE\VoWiFI\lsposed-redmagic-vowifi' assembleDebug

APK output:

app\build\outputs\apk\debug\app-debug.apk

Notes

  • The module declares xposedminversion=93 and xposedsharedprefs=true.
  • Shizuku is used for applying the default launcher and operating engineering-mode quick entry without root.
  • This is an unofficial project and is not affiliated with RedMagic, Nubia, or ZTE.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages