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

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-01-28 17:46:03 +0200

FAILED(remote: 'Flashing is not allowed in Lock State')

I am getting this error when trying to flash a new out of the box Sony XA2 device. The service info tells me I am allowed to unlock boot loader and the first step of unlocking using the command

sudo ./flash.sh -i 0x0fce oem unlock 0x<IMEI_ID>

seems to work. It doesn't give me an error; only returns

The Sony  Vendor partition image was not found in the current directory. Please
download it from
https://developer.sony.com/file/download/software-binaries-for-aosp-oreo-android-8-1-kernel-4-4-nile/
and unzip it into this directory.

But then I want to flash the phone using

bash ./flash.sh

This is the output I get

Detected Mac OS X - Version: 10 14 2-
Searching device to flash..
Found 1 devices: CQ3001FB8G 
Fastboot command: fastboot -s CQ3001FB8G  
Flashing boot_a partition..
Sending 'boot_a' (17764 KB)                        OKAY [  0.417s]
Writing 'boot_a'                                   FAILED (remote: 'Flashing is not allowed in Lock State')
Finished. Total time: 0.418s

What am I doing wrong?

FAILED(remote: 'Flashing is not allowed in Lock State')

I am getting this error when trying to flash a new out of the box Sony XA2 device. The service info tells me I am allowed to unlock boot loader and the first step of unlocking using the command

sudo ./flash.sh -i 0x0fce oem unlock 0x<IMEI_ID>

seems to work. It doesn't give me an error; only returns

The Sony  Vendor partition image was not found in the current directory. Please
download it from
https://developer.sony.com/file/download/software-binaries-for-aosp-oreo-android-8-1-kernel-4-4-nile/
and unzip it into this directory.

But then I want to flash the phone using

bash ./flash.sh

This is the output I get

Detected Mac OS X - Version: 10 14 2-
Searching device to flash..
Found 1 devices: CQ3001FB8G 
Fastboot command: fastboot -s CQ3001FB8G  
Flashing boot_a partition..
Sending 'boot_a' (17764 KB)                        OKAY [  0.417s]
Writing 'boot_a'                                   FAILED (remote: 'Flashing is not allowed in Lock State')
Finished. Total time: 0.418s

What am I doing wrong?

FAILED(remote: 'Flashing is not allowed in Lock State')

I am getting this error when trying to flash a new out of the box Sony XA2 device. The service info tells me I am allowed to unlock boot loader and the first step of unlocking using the command

sudo ./flash.sh -i 0x0fce oem unlock 0x<IMEI_ID>

seems to work. It doesn't give me an error; only returns

The Sony  Vendor partition image was not found in the current directory. Please
download it from
https://developer.sony.com/file/download/software-binaries-for-aosp-oreo-android-8-1-kernel-4-4-nile/
and unzip it into this directory.

But then I want to flash the phone using

bash ./flash.sh

This is the output I get

Detected Mac OS X - Version: 10 14 2-
Searching device to flash..
Found 1 devices: CQ3001FB8G 
Fastboot command: fastboot -s CQ3001FB8G  
Flashing boot_a partition..
Sending 'boot_a' (17764 KB)                        OKAY [  0.417s]
Writing 'boot_a'                                   FAILED (remote: 'Flashing is not allowed in Lock State')
Finished. Total time: 0.418s

What am I doing wrong?