The BQ Aquaris M5 was released in 2015 and was shipped along with Android Lollipop 5.1. Under the hood, it packs the Snapdragon 615 along with 3GB of RAM. The Official CM14.1 nightlies are out for the Aquaris M5 (piccolo).
- A Windows PC
- Minimal ADB & Fastboot
- USB Cable (double-check for cable faults)
- At least 60% battery remaining on your device
Unlocking the Bootloader
Note: This will wipe all data on your device. Make sure you backup important files as necessary before proceeding.
On your Aquaris M5, go to Settings->Developer Options and make sure you’ve enabled USB Debugging.
Note: If you do not see the Developer Options menu, it can unlocked by going to About Phone->tapping build number a few times.
Now connect the phone to your PC and open Minimal ADB & Fastboot. We now need to confirm our device is connected. To do that, type:
This should show the Android devices currently connected to your PC. Make sure you accept the confirmation on the phone too. It is advised to disconnect any other Android devices. Once you’ve successfully connected the device, we need to boot to the bootloader to proceed. To do this, shut down the phone completely. Hold Volume Down & Power simultaneously. When the phone vibrates, release Power, wait a second, then release Volume Down.
Alternative method: On the Minimal ADB, simply type:
adb reboot bootloader
This should immediately switch the phone off and reboot to bootloader.
Once you’ve successfully connected your device, we can move on to unlocking the bootloader. Unlocking the bootloader allows us to write into different storage partitions of our phones which would otherwise be blocked.
Let’s make sure our phone is successfully connected to the PC. To check this, enter:
Once confirmed, we can unlock the bootloader. To unlock the bootloader, simply enter the following:
fastboot oem unlock-go
If the device doesn’t automatically reboot, reboot it from the menu. It should now be unlocked.
Warning: This will FACTORY RESET the device. All data will be lost. Make sure you take a backup before entering this.
We now need to download the TWRP file for proceeding. You can download the file here.
Once downloaded, rename the file to “twrp.img” (no quotes) and place on the folder where the Minimal ADB is installed. For most people, it is usually C:\Program Files (x86)\Minimal ADB and Fastboot.
Once the file is in the folder, we can now go back to Minimal ADB and type in the command:
fastboot flash recovery twrp.img
This will replace the stock recovery to TWRP.
Download the latest CM14.1 zip package from here and copy the zip file to the internal storage of your device. If not already in recovery mode, boot to recovery mode by powering down the device and hold Volume Up & Power simultaneously. When the phone vibrates, release Power, wait a second, then release Volume Up. In the TWRP menu, select Wipe, then Factory Reset. Then, select Install and choose the CM14.1 zip package. This will prompt you to “Swipe to Flash”. Once the installation has finished you can Reboot to System. Note that the first boot might take a while.
To use Google Services, we need to install the GApps (Google Apps) package. These services are pre-built out-of-box, but we need to flash the GApps zip in order to Install. It is recommended you flash GApps right after flashing CM14.1. You can follow the tutorial to flash GApps here.