installing on sony phone: flashtool problems?
asked 2018-11-09 15:50:14 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Following the install instructions (https://jolla.com/sailfishx-macos-instructions/), I have encountered a number of problems, which boil down to the flashtool commandline app version.
1. Installation of fastboot via homebrew worked not as described
brew tap caskroom/cask brew cask install android- platform-tools
… won't supply a linked and usable version of flashtool:
$>brew cask list
android-sdk
$> brew link android-sdk
Error: No such keg: /usr/local/Cellar/android-sdk
2. Commandline doesn't match default fastboot version
In any case, I just continued with the description Step 4. -> https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/ And downloaded the linked platform-tools
.
The sony description is inaccurate: the fastboot version linked is not the fastboot version required for the command
fastboot -i 0x0fce oem unlock 0x<insert your unlock code>
I added the flashtool command line tool to the system paths (not described in the steps),
PATH=$PATH:<replace by path to platform-tools>
which made the script flash.sh correctly initialize.
Running the flash.sh returned this:
Searching device to flash..
Found 1 devices: BH9036CU5K
Fastboot command: fastboot -s BH9036CU5K
Flashing boot partition..
Sending 'boot' (11492 KB) OKAY [ 0.365s]
Writing 'boot' FAILED (remote: 'Command not allowed')
Finished. Total time: 0.375s
Finally, by chance I figured from the above description the command that was required:
fastboot -s BH9036CU5K oem unlock 0x<insert your unlock code>
This worked, and all is fine (took about 4 hours searching around in forums).
So for improving the accessibility of Sailfish it would be good to:
- show a simple way how to install fastboot
- mention the incorrect commandline on the sony webpage and the correct one for the new fastboot version.
which Sailfish OS version are you trying to flash to which phone?
rozgwi ( 2018-11-10 00:55:33 +0200 )editIf you have the XA2 there is a known bug that seems to sporadically occur with flashing:https://together.jolla.com/question/192632/xa2-h4113-bootloops-after-flashing-trial-3008/?answer=192729#post-id-192729
This was:
julian ( 2018-11-10 10:55:00 +0200 )editSailfish_OS-Jolla-3.0.0.8-f5121-0.2.1.11
on a Sony Xperia X, macOS 10.13. I have read on various forums that people have had similar problems on other configurations.I had a problem with getting the
droid001 ( 2018-12-25 22:20:59 +0200 )editandroid-platform-tools
. In the end I searched for it in homebrewbrew search android-platform-tools
and got notified with