Skip to content

About

Enable ADB root shell for TCL and Alcatel hotspot devices.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCL-debug-switch

Enable ADB root shell for TCL devices.

WARNING

This procedure has been tested with a TCL Linkzone 5G UW (Model MW513UW) mobile hotspot (System Update 6, MW513U_00_02.00_72, release date 07/09/2026), but is likely to work on a wide variety of devices including Alcatel or other TCL associated brands.

This code is currently designed to send a two-byte sequence (0x16f9) to the first USB device found with a TCL or Qualcomm vendor id using a mass storage interface. The MW513UW may present as different vendor or product ids during use.

This procedure was previously documented by Alex Studer, and appears to be confirmed working with multiple Alcatel mobile hotspots.

However, it may be possible to brick or otherwise damage a connected device with this code.

USE AT YOUR OWN RISK.

Usage

This code was tested with MacOS but hopefully is usable with Linux or Windows.

To setup python venv, activate, and install the requirements (pyusb):

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

To enable Android debug mode for the device the command should be run with sudo:

sudo ./debug_switch.py

We can then enable root and acquire a shell:

adb root
adb shell

Enabling debug mode and ADB is temporary. Debugging mode will need to be re-enabled after selecting a USB mode on the device or restarting.

Future Work

This repository exists to promote improving Rayhunter device support. The MW513UW is currently not officially supported by Rayhunter, hopefully this tool will help to enable that change for this device or similar devices.

Risks & Mitigation

Unfortunately this process can be combined with Juice Jacking to permanently alter a device with malware or viruses with no indication to the user. Given the 5+ year timeframe of discovery and provenance of use it is unlikely to ever be fixed.

This process may allow for consumer freedom of use on some devices where there is otherwise no option to enable debugging mode on the device.

The only mitigation currently for protecting these devices is to use a USB data blocker (or "charge-only" cable) when charging from an unfamiliar source.

See Also

LinkZoneRoot (Windows)

About

Enable ADB root shell for TCL and Alcatel hotspot devices.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages