A Samsung Galaxy S9+ (SM-G965F/DS) with a broken screen and damaged buttons was repurposed into a Debian-based LTE router. The project was completed in one day, utilizing the device's original modem and hardware components.
The device runs Debian 13 (trixie) on a Linux 4.9 kernel. To enable this, the bootloader was unlocked, and several Android-specific security mechanisms, such as DEFEX and RKP_NS_PROT, were disabled or modified to allow the system to boot and access network resources.
The modem relies on original Samsung firmware and services running in a separate directory to maintain connectivity. The system uses SysVinit instead of systemd for stability with the older kernel, and a custom watchdog script monitors the connection and system state.
The router provides internet access via cellular data while simultaneously maintaining a Wi-Fi connection. The device is capable of 4x4 MIMO and carrier aggregation, outperforming many budget-friendly dedicated LTE routers in hardware specifications.
Recovery measures include the use of TWRP as a fallback and a custom reboot-download utility to return the device to flash mode. The root filesystem was built using mmdebstrap, and the kernel was compiled using GCC 4.9 with specific configurations to support standard Linux environment requirements.





