The modified version of tool 'spreadtrum_flash'
sfd_tool is a maintenance release for spreadtrum_flash
Run this before making on linux:
sudo apt update
# Ubuntu/Debian
sudo apt install libusb-1.0-0-dev gcc g++
# Android(Termux)
pkg install termux-api libusb clang git g++Then make:
makeUse on Termux:
# Search OTG device
termux-usb -l
[
"/dev/bus/usb/xxx/xxx"
]
# Authorize OTG device
termux-usb -r /dev/bus/usb/xxx/xxx
# Run
termux-usb -e './sfd_tool --usb-fd' /dev/bus/usb/xxx/xxxWARN : You may must run tool as root to connect to device correctly!
Modified commands:
part_table [FILE PATH]
This command is equivalent to the partition_list command.
exec_addr [BINARY FILE] [ADDR]
Modified, you need to provide file path and address
exec <ADDR>
Modified, you need to provide FDL1 address when you execute FDL1
read_spec [PART NAME] [SIZE] [OFFSET]
Modified, equivalent to the read_part command, then read_part is equivalent to the r
--no-fdl
New option, execute it if you want to connect to device without FDL1/2(Only Sprd4 Mode).