Rooting MTK based 'China' phones using SP Flash Tool.
I've tested this on my Ubuntu 14.04 laptop by rooting a Lenovo P780.
@Paul Mahieu tested on Huawei Ascend Y221 using Ubuntu 16.04 and reports that it works.
First of all, install
apt-get install libusb-dev
Now you need to download SP Flash Tool v5 from here.
Assuming it is downloaded to your Downloads directory extract it's content:
Enter the extracted directory, and run it with root privileges:
Pretty simple, right?
Now you have flashtool setup on your Linux box. There are plenty of guides for rooting, flashing recovery and so on for doing whatever you intend to do. The tool will dump important debugging information to the terminal from which you ran it. This is very useful if you ever get stuck.
The only error I got is this:
The reason and its solution is mentioned in this XDA thread:
This is because the 'modemmanager` package integrated by default within Linux Ubuntu 14.04 and later is not compatible with the MTK Flash Tool.
We can solve this issue by creating a udev rule blacklisting modemmanager for MediaTek devices. Create a file
sudo gedit /etc/udev/rules.d/20-mm-blacklist-mtk.rules with the following contents:
Restart udev for the changes to take effect:
service udev restart
If you run into more errors, you could get a hint about what is wrong from here: Flashtools errors and their solutions! - MIUI
Here is a guide on installing adb and fastboot on Ubuntu.