Thanks to visit codestin.com
Credit goes to github.com

Skip to content

C-Hidery/sfd_tool

Repository files navigation

sfd_tool

中文文档

Logo

License

The modified version of tool 'spreadtrum_flash'

sfd_tool is a maintenance release for spreadtrum_flash

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:

make

Use 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/xxx

WARN : 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).