Edited by wangxiaoli at 2017-12-22 20:20 |
This works only on Linux 64-bit
DISCLAIMER: It is always risky to flash your mobile device. I do not and will not take any responsibility for bootloops and bricks.
Please check carefully that the ROM or recovery.img you want to flash is suitable for your specific device and for the sp_flash_tool. The firmware directory should neither contain meta-inf nor system folder, but something_with_a_scatter.txt and a system.img
Backup your phone before flashing!
Your phone's battery should be at least half charged (50 percent) before you start this.
So here we go:
If you haven't done so before, install the Linux generic usb-drivers package:
- sudo apt-get update
- sudo apt install libusb-dev
Download SP Flash Tool Linux (latest version): http://mtk2000.ucoz.ru/load/soft/sof..._tool/5-1-0-14 (Password to extract currently is mtk2000v3)
or here https://androidmtk.com/smart-phone-flash-tool
In case you haven't done before, install unrar:
Extract the downloaded file -> graphic file manager (e.g. Nautilus): double-click and extract. Terminal:
(from now on: please adapt paths to your own settings)
Move the new folder „sp_flash_tool“ to a directory of your choice.
You might also need to install libqtwebkit4 (it just happened to me on Linux Ubuntu 16.04):
- mv /home/username/Downloads/sp_flash_tool /home/username/...
[Only For Ubuntu 16.10 and newer]
- sudo apt install libqtwebkit4
These libraries are still required for the flash tool but have been removed from new Ubuntu versions.
Change into the newly created directory:
We make one file executable by typing:
In order to avoid running the flash_tool as root user, you need to add a standard user to the usergroup "dialout"
For Arch Linux:
- sudo adduser username dialout
and activate the membership immediately
Now you can open the tool:
or double-click on the flash_tool icon.