Introduction:-
Hello Friends ..
Here is my guide helping you to how to install flashtool on ubuntu for 32bit or 64bit
There are many guides but still its incomplete and even i need to search out many things to install it and other requirements , so i decided to post a guide so that will help me and you too
I hope this guide will help you
Follow Me :-
On Facebook :- https://www.facebook.com/Noel.Macwan.SXD
On Twitter :- https://twitter.com/@noelmacwan1997
Building Environment:-
Maybe you will ask why to build environment , so here is the reply in next steps we will require libusbx and that we have to compile , so compiling requires development environment
So now copy this command and paste it to terminal :-
$ sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
Compiling libusbx :-
Congo , you have successfully built environment and here you need to compile libusbx to run USB
now you need to get libusbx click here to download
extract it to home directory , rename it to libusbx and enter this commands :-
changing directory to libusbx
$ cd libusbx
configuring libusbx for compiling
$ ./configure
now lets compile
$ make
and this will install it
$ make install
Setting up udev rules:-
Now connect your xperia device , its better you connect with USB Debugging On
and enter this command :-
$ lsusb
there you will find something like this :-
Bus 00x Device 00x: ID 0fce:xxx Sony Ericsson Mobile Communications AB
now open new window of terminal and enter this command :-
$ sudo gedit /etc/udev/rules.d/99-android.rules
and new gedit window will pop up and there you have to paste this lines
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="xxxx", MODE="0777"
replace that xxxx from previous command output
Installing 7zip for extracting FlashTool:-
Now you will require p7zip full to extract FlashTool achieve file
enter this command :-
$ sudo apt-get install p7zip-full
Time to run FlashTool :-
Here you will require to download flashtool you can get it from its official homepage :- flashtool.net
now extract it to your Home directory not desktop
Copy /usr/local/lib/libusb-1.0.so.0.1.0 to FlashTool/x10flasher_lib/linux/lib64 and FlashTool/x10flasher_lib/linux/lib32.
and copy/replace this to FlashTool
Now type this commands in terminal
changing directory to FlashTool
$ cd FlashTool
Login into superuser
$ sudo su
Run Flashtool
# ./FlashTool
Enjoy ! I hope this guide help you
Credit:-
Sony for great devices
Androxyde and Bin4ry for FlashTool ,run file patch (Androxyde)
All other packages for giving great environment to compile
BryanRG1996 for his guide
If you like share this guide then you can , but don't directly copy from here to any another site , you can directly give this post's link
Thanks and Regards
Noel Macwan
Author/ Admin/