Skip to content

itz-termux-dev/SPDClient-NoRoot-Termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPDClient-NoRoot-Termux

Caution

WARNING: This tool deals with low-level device partitions. Incorrect usage can permanently HARD BRICK your device. This tool is currently in BETA TESTING. I am not responsible for any damages, data loss, or bricked phones resulting from its use. Proceed at your own risk and with extreme caution. Always backup your boot and vbmeta partitions before making changes.

A powerful, standalone Unisoc (Spreadtrum) flashing protocol interface engineered specifically for Termux environments without requiring root privileges or a desktop computer.

Description

SPDClient-NoRoot-Termux bridges the gap for mobile hardware restoration on devices utilizing Unisoc architectures (such as the T606, T612, T616, and T618 chipsets). By utilizing a purely low-level communication framework, this tool handles low-level diagnostic instructions, initialization, and device management protocols natively from a secondary Android phone via a standard OTG connection.

The No-Root Advantage

Standard hardware flashing utilities rely on raw read/write permissions over system serial and USB nodes (/dev/bus/usb/), which are strictly protected by Android security policies and typically demand full administrative (root) access.

This tool achieves its completely No-Root framework by:

  • User-Space Interception: Leveraging Android's native Host API via the termux-usb system bridge.
  • File Descriptor Passing: Programmatically catching the open connection's raw File Descriptor (TERMUX_USB_FD) immediately after user authorization.
  • Direct I/O Injection: Mapping communication frames straight into standard user-space file handles inside Python, completely bypassing the need to modify kernel permissions or system paths.

Key Features

  • High-Speed Connection Snipe: Built-in loop architecture designed to capture the narrow BootROM execution windows before a device times out or reboots.
  • Automated HDLC Packaging: Native implementation of high-level data link control framing protocols, handling automatic command structures and packet boundary escaping.
  • Hardware-Level Initialization Handling: Fully structured routing engine prepared to coordinate multi-stage FDL1 (SRAM RAM/EMMC initialization) and FDL2 (High-speed flashing engine execution) download handlers.
  • Exploit Vector Routing: Integrated with modular support to inject vulnerability structures (such as CVE-2022-38694) to bypass verification constraints directly within the BootROM environment.

Installation Guid

Give Termux storage permission

termux-setup-storage

update and upgrade packages

pkg update && pkg upgrade

Install the tool

pkg install python python3 python-pip termux-api usbutills git curl
git clone https://github.com/itz-termux-dev/SPDClient-NoRoot-Termux/tree/main
cd SPDClient-NoRoot-Termux
pip install colorama
pip install .

Command Examples

1. Run a basic handshake test to verify BootROM connectivity

python3 spd.py bypass --address 0x5500

2. Check connections on a standard entry-level SC9863A chipset configuration

python3 spd.py bypass --address 0x4000

3. Test the universal bridge interface on an alternative baseband hex offset

python3 spd.py bypass --address 0x65000800

4. Flash a patched boot image to fix a soft-brick loop

python3 spd.py write --partition boot patched_boot.img

5. Clear FRP

python3 spd.py erase --partition frp

6. Flash a custom recovery image (like TWRP)

python3 spd.py write --partition recovery twrp_recovery.img

7. Dump the device's stock boot partition

python3 spd.py read --partition boot stock_boot_backup.img

8. Clear the metadata block structure

python3 spd.py erase --partition metadata

For any suggestions or bug report please contact on sameenataj427@gmail.com. thank you

About

Lightweight, standalone Unisoc (Spreadtrum) protocol flashing interface engineered natively for Termux. Bypasses strict Android system node permissions without root or a PC using a user-space file descriptor bridge. Features high-speed connection loops and automated HDLC packaging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages