[How To] From Android to Ubuntu - Meizu 5 Pro

Pleytos

Member
May 25, 2016
41
19
8
It looks like it's not a very successful guide. Better not use it I guess.

How to get from the Android to Ubuntu on the Meizu 5 Pro.

Here is a little guide of how I installed/returned to Ubuntu after installing Android on my Meizu 5 Pro Ubuntu edition.

My desktop pc is running Ubuntu, so these commands are for the Ubuntu terminal. But should be very similar on Windows, probably.

First, install ADB and Fastboot on your pc :
Code:
sudo apt-get update
sudo apt-get install fastboot adb
Connect the Meizu phone to your pc with a usb cable. Then power up the Meizu 5 Pro with both the power button and volume down.

Type:
Code:
sudo fastboot devices
If all went well you’ll see a screen with an number/letter combination with the text fastboot behind it, and the Meizu logo.

Now download TWRP_3.0_m86.img from http://xep.8800.org/pro5/.

With the next command you are going to flash TWRP custom recovery to your phone.

Code:
sudo fastboot flash recovery TWRP_3.0_m86.img
This should be done pretty fast. Power off your phone, and restart it with volume up and power button both pressed.

If all went well you’ll see a screen like this:


Your recovery is set. . You’ll see the Team Win Recovery Project if correct.

Do a full wipe:
- go to settings and select "use rm -f instead to formatting"
- Got to wipe -> advanced wipe and select all except the last/bottom one, and swipe to wipe.

Now check to see if ADB devices works correctly
Code:
sudo adb devices
List of devices attached 
0123456789ABCDEF	device
If not restart adb by typing adb kill-server, and the restart adb with the sudo adb devices command.

Download the Canonical recovery-turbo, recovery.img, form:
https://wiki.ubuntu.com/Touch/Devices

And install ubuntu device flash program :
Code:
sudo apt-get update
sudo apt-get install ubuntu-device-flash
Now here comes the harder part. Open 2 terminals, you’ll see later why.

Now go back to the recovery on your phone. Go to Mount, and mount the system partion. And be sure it looks like this:
With three checkmarks.


Now type, BUT DO NOT PRESS ENTER, in the first terminal window:
Code:
sudo fastboot flash recovery recovery.img
And leave it there for later.

Then in the second terminal window, you are gonna use the ubuntu device flash program with this command:
Code:
sudo ubuntu-device-flash touch --channel=ubuntu-touch/stable/meizu.en --device turbo
If everything is alright, this command will first download files, than start pushing them to your phone, and will end with this message:
Code:
Rebooting into recovery to flash
You will have to be quite quick because you’ll need to intercept this. When you see this message you will need to press volume down + power button at once, so you can go to the fastboot screen.
Now you will have to use the second terminal to use this command:
Code:
sudo fastboot flash recovery recovery.img
When done you need to manually turn the phone into recovery mode by pressing volume up + power button. It is really important that you reach the recovery mode. If you reach the normal boot mode you will have to run the ubuntu device command from the beginning. You will not see the recovery screen if you reach the recovery mode. The screen turns black and will be like this for a little bit of time.
The screen wil go black, that’s normal. Wait a 5-10 minutes, and if everything is alright you’ll see a FlymeOS recovery. That is normal and good. Now power the phone off and on again, and if everything happened like it did on my phone, Ubuntu starts.

Now you can enjoy Ubuntu on your phone. You should have a white Meizu Powered by Ubuntu screen and an orange Ubuntu recovery logo, but sometimes it doesn't come in the first install. From my experience you will need to run the command one more time from a different channel, and this will be fixed aswell.

You can also use the Release candidate proposed channel, the software is newer.
Code:
sudo ubuntu-device-flash touch --channel=ubuntu-touch/rc-proposed/meizu.en
I will also try to make a TWRP backup image, maybe that will be easier for people with Windows PC's. But I haven't tested that yet.

Thanks to all the people on XDA and the people who made the TWRP recovery. I hope I can give something back to the community with this guide.

If you have any questions. Please ask.
 
Last edited:

dbech

Member
Jun 17, 2016
10
0
0
When I after I flash the recovery and then reboot I just get

Code:
Update failed, contact support.
Repeated in several languages. What am I doing wrong? :confused::crying:
 

dbech

Member
Jun 17, 2016
10
0
0
I had no luck getting this method to work.

askubuntu [dot] com/questions/767323/how-to-install-ubuntu-on-meizu-pro-5-that-was-originally-with-android

The above link worked first time and can be done on any OS
 

Pleytos

Member
May 25, 2016
41
19
8
I hope it does work for other people, but at least we have an other method now as well.

I don't know if this works with Linux Mint. You might try the other method, it's os independent.
 
  • Like
Reactions: mickjmickj

mickjmickj

Senior Member
May 24, 2012
80
14
0
I hope it does work for other people, but at least we have an other method now as well.

I don't know if this works with Linux Mint. You might try the other method, it's os independent.
As far as I understood the guide on askubuntu didn't ensure ota update. In your experience you were able to download package update running the Ubuntu release?
 

Pleytos

Member
May 25, 2016
41
19
8
I don't know, it always downloads the latest release with the ubuntu-device-flash command, and OTA update's don't come that often. So I have no experience yet.
 

mickjmickj

Senior Member
May 24, 2012
80
14
0
I mean their guide; as far as I understood the "turbo" recovery should be flashed onto the device from the channel.
Anyway I will try and let you know.
 

Pleytos

Member
May 25, 2016
41
19
8
I didn't work for me. After doing what is in the guide and then updating to a newer release release candidate channel I got the Ubuntu logo recovery. But I could only get Ubuntu to install in the first place like the way I did it in the guide.
 

mickjmickj

Senior Member
May 24, 2012
80
14
0
When I after I flash the recovery and then reboot I just get

Code:
Update failed, contact support.
Repeated in several languages. What am I doing wrong? :confused::crying:
It's the same for me here :confused: Actually I think that the screen you mentioned is an error message from the Ubuntu recovery indeed the font used is the Ubuntu style one.
In my case I followed the instructions 5 times and eventually I learned to be fast enough to get the message and fastboot flash the turbo recovery but the further steps are not going as expected.
When I press the power+vol up combo, seems that the system reboot with a white meizu logo on a black screen and after that what happen is:
1. It's reboot with flyme
2. There is this error message on with screen
For both of above its possible to reboot the system and you will have a running flyme with the Ubuntu recovery.
I don't know if this is important but at the end of my couple of hours doing this :cyclops: all my music and pictures were still there while I was supposed to loose everything somehow during the process.
 

Pleytos

Member
May 25, 2016
41
19
8
After manually stopping the phone from entering recovery and the go to fastboot -> flash recovery -> reboot recovery, I get a black screen for a couple of minutes and end up with a flymeOS recovery screen. Power off and on again and then I see Meizu on a black screen for a while and then Ubuntu loading screen.
Does that clarify anything?
@mickjmickj
If you still see your own files after trying for a while, that's not right. Do a full wipe:
- Go to recovery.
- Go to settings and select "use rm -f instead to formatting"
- Got to wipe -> advanced wipe and select all except the last/bottom one, and swipe to wipe.
Then try again. It should work. I'll try to make a youtube movie of my process this weekend, maybe I haven't explained it good enough.
 
  • Like
Reactions: mickjmickj

mickjmickj

Senior Member
May 24, 2012
80
14
0
When you say "reboot recovery" how did you do exactly?
Starting from the device ended to receive the files I press and hold power+vol down still the device is in fastboot mode, then I flash the recovery; starting from this I press and hold power+ vol up waiting the time to see what happen.
Maybe tonight I will try again after a full wipe as you suggest.
 

Pleytos

Member
May 25, 2016
41
19
8
Reboot to recovery -> Holding power + vol up. Might not work the first time. But just keep holding the buttons till it does. Till you think you will enter recovery. You will need to boot directly to recovery, if you make one normal boot before you enter recovery, installation will fail in my experience.