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

Unable to unlock Xperia XA2: Command not allowed [answered]

asked 2019-11-28 10:46:12 +0200

sluimers gravatar image

updated 2019-11-28 20:24:38 +0200

  • device: Sony XPeria XA2 Dual SIM h4413
  • Phone OS: Android 8.0.0
  • Computer OS: Manjaro (XFCE)

My device is unlockable according to Service info > Configuration > Rooting Status.

But I can't unlock it somehow. I've used USB3, USB2 and even a USB2 port from a computer from 2009.

[me@Mycomputer Sailfish_OS-Jolla-]$ fastboot oem unlock 0x817DAA(redacted)
                                                   FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

[edit] I've tried it on Windows 10 laptop as well. Same error. [/edit]

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by peterleinchen
close date 2019-11-29 00:14:44.643571

4 Answers

Sort by » oldest newest most voted

answered 2019-11-29 00:11:04 +0200

sluimers gravatar image

updated 2019-11-29 00:18:01 +0200

I got mixed up with the two instructions.


The latter are general instructions for bootloading while the former is for sailfish, so I should stayed at the sailfish instructions, which at some point says:

Enable “OEM unlocking” and “USB debugging” from “Settings > System > Developer options” menu.

Still, it's quite odd that the former is missing out on the "OEM unlocking" part.

edit flag offensive delete publish link more

answered 2019-11-28 14:53:20 +0200

mrtrm gravatar image

Try as root?

edit flag offensive delete publish link more


Same result

sluimers ( 2019-11-28 19:25:48 +0200 )edit

answered 2019-11-28 20:40:40 +0200

dirksche gravatar image

updated 2019-11-28 20:43:56 +0200

Just a shot in the dark: Did you follow all steps described in chapter 4? https://jolla.com/sailfishx-linux-instructions-xa2/ Especially 4.1 and 4.2?

edit flag offensive delete publish link more

answered 2019-11-28 23:25:09 +0200

updated 2019-11-28 23:28:53 +0200

Try from a mac OS notebook (not with Catalina which broke the Fastboot).

Remember this before

brew tap caskroom/cask brew cask install android-platform-tools
check with this to see the answer (a device code)
fastboot devices
Finally use this
sudo fastboot oem unlock 0x...
edit flag offensive delete publish link more

Question tools



Asked: 2019-11-28 10:46:12 +0200

Seen: 2,539 times

Last updated: Nov 29 '19