Androxyde / Flashtool

Xperia device flashing
GNU General Public License v3.0
475 stars 245 forks source link

flashtool-0.9.19.0-linux #23

Open tele1 opened 9 years ago

tele1 commented 9 years ago

Something not working on PCLinuxOS 64 bit Mate http://pastie.org/10326503

I tried: Unlock Xperia Z2 Bootloader with Flashtool

1 Download the Flashtool and then install it on your computer. – get it from official Flashtool Download page. 2 Launch the Flashtool program on your computer after the installation is complete. 3 Click the ‘BLU’ icon in Flashtool. 4 You will now be asked to connect the Xperia Z2 in Flashmode. 5 Power off the phone. 6 Connect the USB cable to your PC first, then press and hold Volume Down on your smartphone and connect it to your PC. – Flashmode should be loaded and Flashtool will show the Device Selector screen.

Problem is in 6 , Connect the USB cable to your PC first, then press and hold Volume Down on your smartphone and connect it to your PC.

then I see Connect the USB cable to your PC first, then press and hold UP on your smartphone and connect it to your PC.

and flashtool not running. Tested on Xperia Z2

( I tried, because I want root, I want try lilipop, I want create recovery and because xperia firmawe have bug, after connect usb, I can not off wi-fi and Bluetooth, reboot only working )

I tried http://duopetalflower.blogspot.com/2012/12/unlock-xperia-s-bootloader-from-ubuntu.html

# ./fastboot.linux -i 0x0fce getvar version
./fastboot.linux: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
[root@localhost x10flasher_lib]# strace -e open ./fastboot.linux -i 0x0fce getvar version
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/tls/x86_64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/x86_64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/x86_64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/x86_64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
./fastboot.linux: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
+++ exited with 127 +++

PCLinuxOS probably not support selinux yet, and maybe not will, he using probably old init (sysvinit) https://wiki.archlinux.org/index.php/SysVinit https://en.wikipedia.org/wiki/Init

tele1 commented 9 years ago

I tried run also on Manjaro 64bit xfce, the same problem what in PCLinuxOS, flashtool not running when I unplug, press up and plug usb.

# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
ldd: uwaga: brak uprawnień do wykonywania `x10flasher_lib/linux/lib64/udev/libusbx-1.0.so.0.1.0'

(java:1379): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:264:30: not a number

(java:1379): Gtk-WARNING **: Theme parsing error: mate-applications.css:37:23: 'none' is not a valid color name

(Flashtool:1379): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
libusb_get_string_descriptor_ascii : I/O Errors
libusb_get_string_descriptor_ascii : I/O Errors

I can not copy whole/ all log, so I paste 3 parts http://justpaste.it/mu9t

I installed libsyslinux, now I see window to unlock, how run unlocked boot ? UP+ power not working.

Edit:

Edit

Only get bootloader, and do recovery :D

About above xperia bug, this was demo film installed app, this was annoying because always run wi-fi, blututh and reset settings, maybe maybe something were saying in shop about the code in internet, but I 'm forgot, and I'm not sure now. I off demo.

Please add / create option "Backup / Restore ROM" . :-)

Edit. About FlashTool: I tested now on PCLinuxOS Mate 64bit and looks working, maybe problem was in I did not have syslinux installed, I'm not sure, error about missing it I get on Manjaro, in PCLinuxOS I installed it hand for other package after errors in flashtool so I don't have full log, what I installed last time. I should or other people test on clean iso linux.

Edit: About phone Sony Xperia Z2 I used lockeddualrecovery from linux to install recovery, http://nut.xperia-files.com/?ql=c53ce9dfcf4fe0e1f09f1c56c3c19a48dab006e5 and now I can choose Philz Touch Recovery TeamWin Recovery Project ClockWorkMod and it installed me NDR Utils, and from this app I can choose "Reboot to Primary Recovery" and with this option, with this app recovery working with Sony ROM. Problem is when I have off phone and I want run recovery, I tried press buttons but recovery not starting, not working .

Edit: I found solution lockeddualrecovery on xda forum: http://forum.xda-developers.com/showthread.php?t=2261606&nocache=1

How to use:
At boot, once you feel the phone vibrate and while you see the green led burn:
- press VOL-UP for PhilZ Touch;
- press VOL-DOWN for TWRP.

About donate please add option "transwer" Edit or does not matter, I try use paypal in free time.