Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED (remote: 'Fastboot command (set_active:) is not allowed when locked') #1556

Closed
StephenLesage opened this issue Nov 19, 2020 · 5 comments
Assignees
Labels
bug a bug in the software itself

Comments

@StephenLesage
Copy link

UBports Installer 0.7.2-beta (dmg)
Environment: Mac OS X 10.15.4 macOS Catalina darwin 19.4.0 x64 19E287 NodeJS v12.16.3
Device: sargo
Target OS: Ubuntu Touch
Settings: undefined
OPEN-CUTS run: https://ubports.open-cuts.org/run/5fb5c9399702a600079dd388
Log: https://paste.ubuntu.com/p/8cVjhTgCCX/

i am not sure, i followed the instructions perfectly multiple times

@NeoTheThird
Copy link
Member

You need to unlock the bootloader, like the installer asked you to: https://source.android.com/devices/bootloader/locking_unlocking#unlocking-bootloader

This error needs handling on our side:

stack trace: Error: failed to set active slot: Error: {"error":{"code":1,"cmd":"fastboot --set-active=b"},"stderr":"< waiting for any device >\nSetting current slot to 'b'                        FAILED (remote: 'Fastboot command (set_active:) is not allowed when locked')\nfastboot: error: Command failed"}

@NeoTheThird NeoTheThird changed the title immediate fail while in bootloader FAILED (remote: 'Fastboot command (set_active:) is not allowed when locked') Nov 19, 2020
@NeoTheThird NeoTheThird self-assigned this Nov 19, 2020
@NeoTheThird NeoTheThird added the bug a bug in the software itself label Nov 19, 2020
@StephenLesage
Copy link
Author

OEM unlocking (Allow the bootloader to be unlocked) was, and is, set to on.

When UBports sees the phone a message pops up on the phone saying "Allow USB debugging? ..." then i am able to proceed all the way until i hit "install" on UBports. under channel I chose the stable version and hit okay. but then when UBports takes over and the phone goes into the bootloader it reads
"Device state: locked"
which doesn't make sense.

I have played with fastboot before when trying to install Plasma Mobile a few months ago on a different device, so perhaps there is a PATH problem and it is unable to find the correct version? I am just spitballing ideas here...

Any suggestions?

@NeoTheThird
Copy link
Member

You overlooked one part in the instructions in the link. It is not enough to just enable oem unlocking in the settings, you also need to do the actual unlocking by running fastboot flashing unlock in a terminal with the phone in bootloader mode and connected to your PC. While the installer can unlock the bootloader for most devices on its own, your device uses a different method of unlocking that the installer does not support yet (#1479). We're planning to fix that soon, but for the time being, you have to run that one command yourself.

@StephenLesage
Copy link
Author

you're right, i didn't read very carefully. I will follow the proper precursor steps later today and post again with a success or failure update. thank you!

@StephenLesage
Copy link
Author

no luck. i think the first time i used an older USB cable. it went through the whole process, but didn't seem to work. So i tried again with a newer cable and it got all the way to the "recovery screen" but "lost connection try again" kept popping up. i would click it 5 or 6 times before the "Google" screen took over on the phone. I tried ~8 times, both wiping "UserData" and not, and it keeps getting hung up in the same spot.

I also think it successfully altered something because the Google screen can't get past the "G" with the loading bar beneath it. I think I have successfully bricked this phone. After the holidays I will try again flashing it on my own without UBports and see if I can get somewhere with it that way. For now, you can close this Bug report, work on it on your own time, and i will submit another when I try again.

Happy Holidays,
Stephen Lesage

NeoTheThird added a commit to ubports/promise-android-tools that referenced this issue Dec 1, 2020
NeoTheThird added a commit to ubports/promise-android-tools that referenced this issue Dec 3, 2020
* Make sure not to access non-existent properties on push progress as seen in ubports/ubports-installer#1580

* Handle locked error on set_active, ubports/ubports-installer#1556

* Bump version

* only generate coverage on linux

* Do not spawn a shell to avoid having to deal with fileguards, see ubports/ubports-installer#1575

* Increase timeout on platform test

* work around shebang

* Catch lock error on vollaphone

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in the software itself
Projects
None yet
Development

No branches or pull requests

2 participants