[TOOL] Deuces Bootloop-Recovery & Flashing Script v4.4/v4.5 [06-13-2018]

ipandroid

Senior Member
Oct 11, 2012
94
26
0
Montreal
Thanks for the file. Couldn't get it to work on Mac OS X, however, I took the file and did the flashing line by line. that worked like a charm.
My question is..... Can I do this to downgrade the OS?
 

dviree

Senior Member
Sep 5, 2008
67
12
28
how can i remove the dialogue with the "format userdata" and unlock bootloader"? and just make the deuces script flash everything without prompting with "format userdata or unlock bootloader"?
 

Hadookie

Senior Member
Dec 23, 2014
146
43
0
Little Falls
So this script saved my phone today. I tried to install the june factory image on my phone which had magisk+elemental installed and ran into a weird error where my phone wouldn't boot out of the bootloader. I may stop rooting my device as every month I run into an issue with the OTA's. Not only that, it always ends up wiping my userdata even though I remove the -w flag from the stock flash all bat.
 

Rukbat

Senior Member
Feb 15, 2012
536
120
63
Fayetteville NC
how can i remove the dialogue with the "format userdata" and unlock bootloader"? and just make the deuces script flash everything without prompting with "format userdata or unlock bootloader"?
Do you want to format userdata or not? As for the unlock bootloader question, I assume you have so you just don't want the prompt. At line 12, if you want to be sloppy (the text will just flash by on the screen without pausing), put a : (colon) in front of the pause -

:pause

That turns it into a label instead of a command.

For the "format userdata", what you do depends on whether you want it to format without asking or skip formatting without asking.

(Or you could look online for batch files and learn how they work. This script isn't complex, it just has a brilliant idea that kind of forces the phone to accept the system files. The Special Theory of Relativity wasn't anything special either, it was just a brilliant idea. Batch [or script, depending on what you;re running] files aren't anything more than the commands you'd type in by hand, plus a few things you wouldn't normally use, like pause statements and labels.)

---------- Post added at 03:37 PM ---------- Previous post was at 03:31 PM ----------

I may stop rooting my device
Reading that gave me shudders.

as every month I run into an issue with the OTA's.
I just back up my data (just in case) and run Deuce's script on the full factory package every month. I plan on having to do it. (Even cleaning the phone as much as I thought I could caused the OTA update to fail.)

Not only that, it always ends up wiping my userdata even though I remove the -w flag from the stock flash all bat.
But Deuces, if you tell it not to, doesn't. Granted, it takes a little longer, but the actual work isn't much - and I have a full backup (/sdcard including today's TWRP data backup) on my PC.

The only problem I'm noticing about the June update is that it seems to have broken Magisk's ability to load modules. MCS fails every time.
 

atifaslam7

Member
Nov 25, 2017
27
2
3
atifaslam7, which phone are you running this on - what model number? Pixel 2 or 2 XL - or something else?
Pixel 2, I was on android DP 4

I think I messed it up by trying to flash the android 8.1 image instead of the DP 4 . Anyways I got it back working by manually flashing the DP 4. Thanks anyways.
Seems like google phone doesn't allow backwards flashing.
 

Sanddroid

Member
Dec 24, 2010
13
0
0
I have no errors when flashing, but when I switch slots I get Error: LoadImageAndAuth Failed: Load Error on the bootloader
 
Last edited:

Organics

Senior Member
Oct 20, 2018
58
6
18
Hey! thanks for this!
I've got a Moto X4 and I know this isn't my phone's forum, but I can't find anything like this anywhere else. D'you think you can help me? My phone also has slot A and slot B, but they seem to be corrupted and won't boot into system, it will get stuck in a bootlop even after I fastboot flash a stock rom. Any ideas?

-----
Edit: I borrowed the structure of your script and adapted it to motorola file names, downloaded another system image (in case the one I was using is corrupt) and is working perfectly now. Thanks!
 
Last edited:

DarkShadowMX

Member
Dec 19, 2010
48
5
0
Hi! I used your script but after it had success (no userdata format) the phone was still stuck at bootloader but the PC was no longer detecting it on fastboot... do you know why that would happen? :(

EDIT: For some reason it was only on my main PC, used another PC and fastboot was able to detect my phone. After multiple flash-all and deuce's script, I'm in now again :)
 
Last edited:

jrbmed08

Senior Member
Aug 14, 2012
312
65
0
Bay Area, CA
Hoping someone can help me out here. I was trying to upgrade my bootloader unlocked and rooted Pixel 2 from 8.1 to 9.0 using a factory image and screwed something up along the way. Now I have a "slot unbootable" error and can not boot into anything except the bootloader. When I press volume down and power, it boots into bootloader mode instead of fastboot mode. When I try to enter download mode via the bootloader, the bootloader restarts and says "Error: Operation Denied." I really would like to use this script but it seems there's no way for me to get into fastboot mode. Any ideas?

Edit: The script seems to be running despite being stuck in bootloader mode, but my phone still won't boot. This time it's "LoadImageAndAuth Failed: Load Error"

Edit again: And it worked after updating to the latest version of platform tools. I had no idea that even had an effect until I started frantically googling how to fix it and found this: https://www.reddit.com/r/androidroo...oncerning_error_loadimageandauth_failed_load/

Thank you for this tool!
 
Last edited:

nolimit78

Senior Member
May 13, 2009
1,268
189
0
Kansas City
Hoping someone can help me out here. I was trying to upgrade my bootloader unlocked and rooted Pixel 2 from 8.1 to 9.0 using a factory image and screwed something up along the way. Now I have a "slot unbootable" error and can not boot into anything except the bootloader. When I press volume down and power, it boots into bootloader mode instead of fastboot mode. When I try to enter download mode via the bootloader, the bootloader restarts and says "Error: Operation Denied." I really would like to use this script but it seems there's no way for me to get into fastboot mode. Any ideas?

Edit: The script seems to be running despite being stuck in bootloader mode, but my phone still won't boot. This time it's "LoadImageAndAuth Failed: Load Error"

Edit again: And it worked after updating to the latest version of platform tools. I had no idea that even had an effect until I started frantically googling how to fix it and found this: https://www.reddit.com/r/androidroo...oncerning_error_loadimageandauth_failed_load/

Thank you for this tool!
If you took a closer look as to what was failing, you'd see that it was having a hard time switching between the a and b partitions. I ran into this a few weeks back when I had to update my computer and did the 15second ADB installer. That uses an older version now and causes problems like you described.
 
  • Like
Reactions: jrbmed08

Rukbat

Senior Member
Feb 15, 2012
536
120
63
Fayetteville NC
bootloader mode instead of fastboot mode
Just FYI (nolimit78 gave you the answer), fastboot is a program you run on your PC. The bootloader is what you boot into when you want to run fastboot on the phone. (Some people call it bootloader mode, some people call it fastboot mode, but it's neither, it's just booting into the bootloader.)
 
  • Like
Reactions: jrbmed08

jrbmed08

Senior Member
Aug 14, 2012
312
65
0
Bay Area, CA
Just FYI (nolimit78 gave you the answer), fastboot is a program you run on your PC. The bootloader is what you boot into when you want to run fastboot on the phone. (Some people call it bootloader mode, some people call it fastboot mode, but it's neither, it's just booting into the bootloader.)
Thanks! I'm used to a Sony phone in which fastboot mode was actually a separate mode with a different button combination to start it. There was bootloader, fastboot, and recovery...and if I remember correctly, all were different. (Edit: unless maybe I'm remembering wrong and it wasn't called fastboot mode, but maybe flash mode?
It was the mode you had to put the phone in to use Flashtool and Newflasher.)

---------- Post added at 10:27 PM ---------- Previous post was at 10:26 PM ----------

If you took a closer look as to what was failing, you'd see that it was having a hard time switching between the a and b partitions. I ran into this a few weeks back when I had to update my computer and did the 15second ADB installer. That uses an older version now and causes problems like you described.
Ah yeah, good to know. It was a bit of a pain but I got things working with Deuce's script. And probably should have clean flashed either way.
 
Last edited:

RomBetaTester

Member
Jun 16, 2017
22
0
0
Device might be completely bricked Please help!

So here is what happened, I installed TWRP on my device and completely wiped my phone so I can install bootleggers OS and Gapps on my Pixel 2 Walleye. But I accidentally booted into Boot slot B on twrp and now the only thing the device can boot into is the bootloader mode, recovery and download mode is completely useless, It gives me either operation denied error or Error slot unbootable. The worst part is no computer will recognize my pixel in device manager at all. Mac computer will not detect it either. Ant tips on how to fix this? And again my I have all drivers installed and platform tools are up to date

Anything helps!