Bootloop after Marshmallow Update

Just a quick update:

I managed to flash both Fairphone OS 1.13.0 and Fairphone Open OS 17.4.0 - if anyone is looking for rudimentary instructions on how to flash something, you can find them here under ‘Manual installation’. I was thinking about supplementing the instructions to have a more detailed description in the forum for anyone who works with an Ubuntu computer at least…

However, recovery from the image I made after I had deactivated the Google App under Marshmallow did not work, no matter if I only recovered ‘data’ or everything except ‘system’. Or rather it might have worked but I ended up in boot with the flashing white Loading screen. It did that for minutes or even hours on end. I tried to just leave it doing its thing plugged to the charger over night but ended up with a drained battery and a black screen in the morning anyway. To be fair, the charger only delivers 0.7A.

So… one last try with a more powerful charger. Then, maybe, formatting the device and trying it again. @paulakreuzer, if you or anyone else has another idea - I still have the rovery file from TWRP and a plain copy of all the data that was on the device. Maybe just copying all the bits and pieces?

This morning (May 1, 2017), I installed the latest update on my FP2. Since then, in the course of half an hour it has restarted by itself for four times… Two times on trying to make a phone call, two times spontaneously.
What to do - this is more than annoying, in this way I cannot properly use the phone. (By the way, it just restarted for the fifth time!)

Help very much appreciated!

Arjen

Hi,
on Saturday night (29.4.2017) I used the fairphone updater to install the newest update on my fp2. Never having had a problem with updating in the past, I didn’t read the forum beforehand or do a backup - much like any standard mobile phone user, I assume. Had I known what problems other users had experienced with the new update, I would not have been so carefree.
Reading the forum, I assume that my phone is now stuck in bootloop (When I press the power Button, the fairphone animation appears, and then a notfication that Android is optimizing app n of x apps. One all x apps have been optimized, the whole process start all over again, with a different number of apps each time.)
Since I can’t start the phone properly or in recovery mode, I understand that I will have to “flash the binary images manually (method 4)”.
[https://support.fairphone.com/hc/en-us/articles/207914363-Manually-install-Fairphone-OS-for-the-Fairphone-2]

I can get my phone to start in bootloader mode. BUT I need a more detailed explanation of how what to install and how:

  • how do I get ADB running "along the fastboot command on my computer?

  • how do I navigate to the archivecontent directory in the command prompt?
    (“On Windows, open the Command Prompt application, navigate to the archive content directory and execute the script with the command flash.bat”)

Not everybody with a fairphone is an accomplished IT specialist, so I assume that other users would also appreciate being walked through the process in a manner suitable for lay people.

Thanks
Marmoy

The Prerequisites you quote include a link to Android Studio (which includes the “Android Debug Bridge” - long for ADB), but on Windows you can alternatively install the lightweight Minimal ADB and Fastboot.

To open the command prompt (CMD), press Windows key + R (for “Run”), type cmd and click “OK”.
The CMD command to navigate directories is “cd” (change directory).
You downloaded the ZIP and extracted the contents into a directory, let’s say to “C:\temp” (just an example, I don’t know where you extracted the ZIP contents). So to get there in CMD, you would type cd “C:\temp” and hit ENTER, the prompt in CMD should reflect that change of the directory.

Now you can check whether you are in the right directory by giving the “dir” command which lists the contents of the directory. They should include the file “flash.bat”. Should look like this:

Then it is important that CMD knows where to find the fastboot command that is used in the flash.bat script. Installing Minimal ADB and Fastboot should take care of that for you, I don’t know about Android Studio.
You can check that by giving the “fastboot devices” command, which should output a cryptic device number, or a blank line if your phone is not hooked up to the PC in fastboot mode.

If CMD instead complains that it can’t find “fastboot” or it is maybe spelled wrong, then CMD wasn’t able to find fastboot.
In this case, you can point it to there following this guide … this guide is giving you the steps for Android Studio already, in case Minimal ADB and Fastboot didn’t do that part, you would have to add “C:\Program Files (x86)\Minimal ADB and Fastboot”.

If all is well, you can then type “flash.bat” in CMD and hit ENTER and hopefully everything runs just fine from there on.

1 Like

Hello AnotherElk,

thanks for your detailed reply. I will try what you suggest …

Maria

Hello AnotherElk,

Minimal ADB and Fastboot offers me a direct root into the command menu. However if I complete the line

C:\Program Files (x86)\Minimal ADB and Fastboot>flash.bat and press enter

the response is that “flash.bat” cannot be found or is spelled wrong.

I have checked that the flash.bat file is unzipped. If I enter flash.bat in the directory in which it is located, I get the response that Fastboot can’t be found.

Am I missing something?

Thanks

Marmoy

flash.bat is basically a list of instructions that get interpreted the same way that any command that you type will be interpreted. When you type a file name or a command, the system will look for that command or that file in a limited number of places. Fixing this can therefore be done by giving the system hints on where to look, or alternatively, copying the required files over (not recommended).

The neatest way of telling the system where to find fastboot, which is basically what the guide linked to by AnotherElk is explaining in brief. Follow the guide for instructions on how to set it permanently, or if you only need it for this session: run this before you run flash.bat:

set PATH="%PATH%;C:\Program Files (x86)\Minimal ADB and Fastboot"

This is assuming that fastboot is installed in the directory you mention.

1 Like

Hi Guys,

thanks to your tips, I managed to execute the flash.bat command.
However it doesn’t seem to have solved the problem, because when the phone restarts I am still stuck in the optimizing apps loop :frowning2:
This is what it looks like when the flash.bat is executed:


Any ideas what the problem might be?

Thanks
Marmoy

Looking good, but you should also perform a factory reset in recovery. The flash.bat does not do this! (In fact, it doesn’t touch the data partition at all.)

Ok, I will try that.

Now I know how to get into the recovery menu thanks to the tip from @schmulschubiak “When you see “no command” screen, press again Power and VolumeUp, then leave Volume Up, then Power. Now you can see the recovery menu.”

Thanks everyone who has helped me so far

Phone is working again yippee!!!

Thanks to everyone who helped.

Marmoy

2 Likes

Hi all,
I am having some serious trouble with the Fairphone 2. After installing the new update to Android 5.1 (I am not sure about the version and as I cannot access the phone I cannot verify this version) which has been released over the May 1st 2017 weekend the phone worked for a day and then rebooted after hanging during surfing with Firefox (I suspect Firefox as a root of this problem as I had that on another phone now too).

Now the phone reboots in a loop and starts to optimise the apps. First 8 apps, then 91 apps and then reboots again to do it again.

I’ve read the forums about the TWRP recovery and tried it, but unfortunately I get the “no command” error with the dead Android icon and the red warning sign.

I’ve tried to use Odin to reinstall the “fp2-sibon-17.03.0-blobs.tar” but not even this works. I am a Windows user and can do a lot with. But if I have to install a Ubuntu computer to be able to repair my phone I would not hesitate to. Though I can’t find a really useful instruction.

If you have an idea what I can do, please help.

Thanks a lot
Amir

It’s Android 6.

Did you by any chance disable the Google App? This will get you into the bootloop after any reboot unless you disabled the Assist App before.

Read how to do that and some tips on how to get out of the loop here.

Happened to me as well, all because of that Google App and not setting the Assist entry to None.

There was no way around factory resetting the phone in the recovery menu – however, flashing the TWRP recovery image from FP Open with fastboot enabled me to connect the phone to the computer and save some data at least (mainly the whatsapp and pictures folder). USB Debug and therefore ADB was not possible.

Afterwards I flashed the stock recovery.img back, factory resetted the phone, however, after thinking about it overnight I decided to finally switch to FP Open and wait for that Android 6 update.

2 Likes

Hi all,

I have good news. The ADB and flash.bat did not flash the phone but I could reset the user settings. Afterwards the phone startet again and now I am reconfiguring it from scratch again.

I used the flashall switch on the fastboot.exe. But before you do so too, remember to backup all data or at least be aware that THIS SWITCH WILL DELETE ALL OF YOUR USER DATA.

The detailed instructions are found in here (refer to point 4):

Unfortunately my recovery mode is still non-functional. But I hope I will find a solution for this too.

Thanks for all your support
Amir

There was a new Update today including the bootloop. The Updater App tells you to enable the Google App. I did so, Update seemed to work, Then I disabled the Google App again. After turning my FP2 off and on again it is now in a bootloop. It is probably necessary to do this:

again too.

!!! Please be carefull !!!

1 Like

I don’t know about the warning sign (I’m still on Android 5.1), but wasn’t Android robot + “no command” = the normal Android 6 Fairphone OS stock recovery mode (which works differently than before Android 6), in which case there are instructions for using it here?

Or is the warning sign the distinction between a working recovery mode and something bad?

Hey guys,

New update and new bootloop for me who desactivate Google App !

Here’s a thing I tried this time wich doesn’t work :

  • Installing Google App from Open Gapps with TWRP. Installation was fine so the issue may be related to the assist App setting being on “none”

So my questions are :

  • Is there any way to change this setting trough TWRP or anything loaded in bootload mode ?

  • Can I restore data saved before the hardreset ? I made a TWRP save, and a copy/paste of both internal and sd card when the phone was stuck.

Thanks for all your work on the topic !

I’m not sure why you installed the Google App from Open Gapps. Disabling an app does not uninstall it and installing it from recovery will not re-enable it.

If you disabled the Google App but didn’t set the Assist app to None, a factory reset is the only known way out.

Restoring a full backup will only work if you made it before disabling the Google App.

Restoring the files you copied from internal and external SD should not cause any problems.

1 Like

I was trying everything I could, and thought it will re-enabling the app.

I’m now looking for a way to back-up SMS messages from the android message app, I don’t wanna lose these again.