Jump to content

User:AgentSteel

From postmarketOS Wiki

@ag-steele:matrix.org


New to PmOS, available for testing of the following devices :


Device Notes
BQ Aquaris M5 (bq-piccolo) edge/phosh, originally Android 6.0.1, couldn't find stock rom update 7.x
BQ Aquaris X5 (bq-paella) See my wiki user page to Unlock Bootloader in EDL mode
BQ Aquaris X5 Plus (bq-gohan) Android 7.1.1
BQ Aquaris X / BQ Aquaris X Pro (bq-bardock / bq-bardockpro) originally Android 7.1.1, upgraded to 8.1.0
OnePlus 6 (oneplus-enchilada) edge/phosh





Personal Notes

BQ Aquaris X5 (bq-paella / piccolometal)


How to unlock bootloader in EDL (Qualcomm Emergency Download mode)


USE AT YOUR OWN RISK! I AM NOT RESPONSIBLE FOR ANY DAMAGE.

In my case, Android would not boot on this device (bootloop), so I could not unlock bootloader in the developer settings.

Wiping to factory in recovery did not resolve the problem.

When the bootloader is locked, you can't flash the fastboot-only firmware files from BQ.

(you can still find stock firmwares here : https://web.archive.org/web/20200804044054/https://www.bq.com/en/support/aquaris-x5/support-sheet )

So this is the way to go :

1/ Download and install EDL

https://github.com/bkerler/edl

(I used a windows machine with the powershell automatic installer)

should be installed in "C:\Program Files\edl"

so start a new powershell, cd in this directory to issue edl commands

2/ boot in EDL mode

- Unplug usb cable from your X5 and turn it off

- press both VolUp + VolDown (not the power button)

- plug usb cable


your phone should now be in EDL mode (screen remains off)


3/ EDL mode operations

We read and display the device partitions :

edl printgpt

In theory you could unlock the bootloader but it didn't work :

(fail) edl modules oemunlock enable

We have to use another hack, thanks to https://github.com/Giovix92/EDLUnlock#how-it-works

So we dump the devinfo partition into a file (create the c:\temp directory first) :

edl r devinfo c:\temp\devinfo.img

Now edit devinfo.img with an hex editor, change 00 value by 01 at offset 0x10 (do not change anything else!) re-read https://github.com/Giovix92/EDLUnlock#how-it-works

reflash modified devinfo file into the devinfo partition :

edl w devinfo c:\temp\devinfo.img

If write was ok,

shutdown/restart device and check unlock status in fastboot :

fastboot oem unlock

should tell "already unlocked!"

4/ You can now flash your Aquaris X5