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?
I used Linux for flashing but maybe u forgot to Enable “OEM unlocking” and “USB debugging” from “Settings on ur new XA2 when android is on it before flashing or unlocking BL.? THIS STEP MUST BE DONE! even if u are allowed to unlock according Vendor SONY with ur imei nr.
Maybe its different with MAC
aQUICK1 ( 2019-01-28 18:06:45 +0200 )editUpon another forum this has similarly been posted by another Mac user with no feedback as yet:link text. I have always bootloader unlocked Xperia devices upon Windows machine as get "OKAY" acknowledgment in "cmd" window before flashing Sailfish upon Mac. There remains a question mark in both these instances whether device is actually bootloader unlocked or not.
Just a thought upon Mac being a permissions thing don't you need to go to directory cd / in which firmware + blobs placed and carry out:
aspergerguy ( 2019-01-28 18:22:13 +0200 )editchmod +x flash.sh
?I have set OEM unlocking and USB debugging in Android Settings before attempting to flash the device. I will try from a Ubuntu Linux laptop later; see whether that is more successful.
ridmaur ( 2019-01-28 18:51:49 +0200 )editNo need to to
ridmaur ( 2019-01-28 18:53:24 +0200 )editchmod +x flash.sh
as the execution bit is already set on flash.sh when extracting the zip file.Was device updated to latest Android version prior to attempt to flash Sailfish OS?
aspergerguy ( 2019-01-28 21:41:20 +0200 )edit