Sunday, November 27, 2016

Installing and Configuring FlashTool for Xperia Devices in Ubuuntu

Installing and Configuring FlashTool for Xperia Devices in Ubuuntu


Ive been constantly switching between my two OSs, Win7 and Linux Mint for just flashing a ROM to my Xperia device. And ofcourse, I hate being in Windows. So, I found this nice little method to do the same in my Linux.
Credits go to these two pages:
http://duopetalflower.blogspot.com/2012/08/flashtool-in-ubuntu-linux.html
http://ubuntuforums.org/showthread.php?t=2084266
1. First of all go to
http://www.flashtool.net/downloads.php
and download the Linux version
2. Extract the 7z then the TAR somewhere and you find the directory FlashTool
3. Now some configuring, first of all you need a package called libusb. By the time you might come to this post the lib may get upgraded so just use your head to handle the scenarios a bit. First off, go to the site
http://libusbx.org
and download the latest tar.bz2 version.
4. Place it somewhere and cd into that directory
5. Type
sudo su
6. Youre given root rights, type
tar xvf $(ls | grep "libusb")
This will extract the tar.bz2 file youve downloaded, considering that directory has no other file whose name contains "libusb".
7. Now type
cd $(ls | grep "libusb")
and youll be inside the extracted directory.
8. Type
$ sudo su
$ ./configure && make && make install && sudo ldconfig
9. Now type this command the configure some USB settings for Flashing interface
sudo cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-usb.rules
10. Open that newly created file in nano using
sudo vi /etc/udev/rules.d/80-persistent-usb.rules
11. Add these lines to the end of the document
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777"
12. Most of the hard part is done, now just a final installation of the ia32-libs using
 sudo apt-get install ia32-libs 
13. Now youre good to go just go to the directory where your Flash Tool executable is and just type
./FlashTool


Go to link download