We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

installing on sony phone: flashtool problems?

asked 2018-11-09 15:50:14 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-11-10 10:57:55 +0300

julian gravatar image

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:

  1. show a simple way how to install fastboot
  2. mention the incorrect commandline on the sony webpage and the correct one for the new fastboot version.
edit retag flag offensive close delete

Comments

which Sailfish OS version are you trying to flash to which phone?
If 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

rozgwi ( 2018-11-10 00:55:33 +0300 )edit

This was: Sailfish_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.

julian ( 2018-11-10 10:55:00 +0300 )edit

I had a problem with getting the android-platform-tools. In the end I searched for it in homebrew brew search android-platform-tools and got notified with

If you meant "android-platform-tools" specifically:
It was migrated from homebrew/core to homebrew/cask.
You can access it again by running:
  brew tap homebrew/cask
And then you can install it by running:
brew cask install android-platform-tools
droid001 ( 2018-12-25 22:20:59 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-11-10 01:12:12 +0300

Capriellllle gravatar image

Even I encountered some issues when I was trying to unlock bootloader on my XA2 following sony's open devices procedure, after some readings I found that sony drivers weren't properly installed due to a windows 10 driver signature control, so I deactivated the control follwing this guide: https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_devices/how-do-i-disable-driver-signature-enforcement-win/a53ec7ca-bdd3-4f39-a3af-3bd92336d248?auth=1, I properly installed the driver and windows finally recognized my xa2 then I unlocked it via sony flashtool beacuse my windows powershell didn't accept command "-i", however, it's the results that count.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2018-11-09 15:50:14 +0300

Seen: 931 times

Last updated: Nov 10 '18