[GUIDE][TOOL] Reboot to EDL mode from FASTBOOT! No More "Test Point Method"! [kenzo]

Search This thread

ROUGE13

Senior Member
Feb 21, 2015
68
0
For Linux (and more precisely, debian flavors), here's how to add a "reboot-edl" command in "fastboot" command:

Code:
mkdir /tmp/fastboot &&
cd /tmp/fastboot &&
apt-get source android-tools-fastboot </dev/null &&
cd android-tools-*
cat <<EOF | patch -p1
--- a/core/fastboot/fastboot.c
+++ b/core/fastboot/fastboot.c
@@ -284,6 +284,7 @@ void usage(void)
             "  continue                                 continue with autoboot\n"
             "  reboot                                   reboot device normally\n"
             "  reboot-bootloader                        reboot device into bootloader\n"
+            "  reboot-edl                               reboot device into EDL (RedMi Note 3 Pro)\n"
             "  help                                     show this help message\n"
             "\n"
             "options:\n"
@@ -803,6 +804,7 @@ int main(int argc, char **argv)
     int wants_wipe = 0;
     int wants_reboot = 0;
     int wants_reboot_bootloader = 0;
+    int wants_reboot_edl = 0;
     int erase_first = 1;
     void *data;
     unsigned sz;
@@ -929,6 +931,9 @@ int main(int argc, char **argv)
         } else if(!strcmp(*argv, "reboot-bootloader")) {
             wants_reboot_bootloader = 1;
             skip(1);
+        } else if(!strcmp(*argv, "reboot-edl")) {
+            wants_reboot_edl = 1;
+            skip(1);
         } else if (!strcmp(*argv, "continue")) {
             fb_queue_command("continue", "resuming boot");
             skip(1);
@@ -1009,6 +1014,8 @@ int main(int argc, char **argv)
         fb_queue_reboot();
     } else if (wants_reboot_bootloader) {
         fb_queue_command("reboot-bootloader", "rebooting into bootloader");
+    } else if (wants_reboot_edl) {
+        fb_queue_command("reboot-edl", "rebooting into EDL mode");
     }

     if (fb_queue_is_empty())
EOF

apt-get build-dep android-tools-fastboot -y </dev/null
dpkg-buildpackage -rfakeroot -b
cd ..
dpkg -i android-tools-fastboot*.deb

I have a blog post about this providing a few more information Here. Any comment is warmly encouraged and welcome.

Hi, thank you for your work :),
I'm on linux Mint 17 and 18 and I got a problem with your script:
When I try
Code:
apt-get source android-tools-fastboot
I get
Code:
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

or:
Code:
Reading package lists... Done
E: Unable to find a source package for android-fastboot

This is weird to me cause normal installation is working:
Code:
sudo apt-get install android-tools-fastboot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  android-libadb android-libbacktrace android-libbase android-libcutils
  android-libext4-utils android-libf2fs-utils android-liblog
  android-libselinux android-libsparse android-libunwind android-libutils
  android-libziparchive fastboot libf2fs0 p7zip-full
Suggested packages:
  p7zip-rar
The following NEW packages will be installed:
  android-libadb android-libbacktrace android-libbase android-libcutils
  android-libext4-utils android-libf2fs-utils android-liblog
  android-libselinux android-libsparse android-libunwind android-libutils
  android-libziparchive android-tools-fastboot fastboot libf2fs0 p7zip-full
0 upgraded, 16 newly installed, 0 to remove and 67 not upgraded.
Need to get 1 591 kB of archives.
After this operation, 6 102 kB of additional disk space will be used.
Do you want to continue? [Y/n]

What am I missing? :confused:

Edit: I update the terminal output to English language
 
Last edited:

Black_Stark

Senior Member
Sep 24, 2012
3,497
1,019
GOA
For Linux (and more precisely, debian flavors), here's how to add a "reboot-edl" command in "fastboot" command:



Hi, thank you for your work :),
I'm on linux Mint 17 and 18 and I got a problem with your script:
When I try
I get


This is weird to me cause normal installation is working:


What am I missing? :confused:

U missing English :D
 

ROUGE13

Senior Member
Feb 21, 2015
68
0

Yes my English is quite terrible :/ but I just figure out debian =/= ubuntu
I thought ubuntu was based on debian...
(I have a raspberry and the command are the same as on my mint)

I will try to find the compatible commands. If you have an idea it could be great too.

---------- Post added at 05:29 PM ---------- Previous post was at 05:23 PM ----------

Yes my English is quite terrible :/ but I just figure out debian =/= ubuntu
I thought ubuntu was based on debian...
(I have a raspberry and the command are the same as on my mint)

I will try to find the compatible commands. If you have an idea it could be great too.

Hey the commands are the same !
https://community.linuxmint.com/tutorial/view/1822
So I don't get it when you said "u missing English"
 

Black_Stark

Senior Member
Sep 24, 2012
3,497
1,019
GOA
Yes my English is quite terrible :/ but I just figure out debian =/= ubuntu
I thought ubuntu was based on debian...
(I have a raspberry and the command are the same as on my mint)

I will try to find the compatible commands. If you have an idea it could be great too.

I was not talking about ur english.
Ur linux terminal output is not in english.

On Xda forum. Stay in english. Rules.
 

ROUGE13

Senior Member
Feb 21, 2015
68
0
I was not talking about ur english.
Ur linux terminal output is not in english.

On Xda forum. Stay in english. Rules.

U know how to get english output in terminal?
I tried Parameters->language parameters->change Language and region and apply
... still french

I tried
Code:
sudo apt-get install language-pack-gnome-uk
... still french


Edit: Ok this is a simple way:
https://askubuntu.com/questions/673741/how-to-change-language-only-for-terminal
 
Last edited:

ROUGE13

Senior Member
Feb 21, 2015
68
0
Whats the issue.?

Did u installed android fastboot tools

Now u cant put phone to edl mode?

I tried to modify fastboot tool to send the reboot-edl command (see here vaab69 work)

But I don't know why I can't get the source of fastboot. But no problem for installing it.
On my home computer the error is a little different but the result the same.
 

Black_Stark

Senior Member
Sep 24, 2012
3,497
1,019
GOA
I tried to modify fastboot tool to send the reboot-edl command (see here vaab69 work)

But I don't know why I can't get the source of fastboot. But no problem for installing it.
On my home computer the error is a little different but the result the same.

Use windows pc. And follow page1 instruction. Dont put too much stress on brain.:laugh:
 
  • Like
Reactions: Zozomon

paolocorpo

Senior Member
Jan 9, 2013
1,787
380
Sassoferrato
Dear @BRoy_98,
A friend of mine has a Mi A1 bricked and is asking my support
He is not able to boot into EDL mode
He is able to boot into fastboot mode
May he use your guide in OP ?
Attached the emmc_appsboot.mbn extracted by 9.6.8.0 fastboot image (but he has 9.6.7.0)

Thanks
Paolo

Inviato dal mio Mi A1 utilizzando Tapatalk
 

Attachments

  • emmc_appsboot.zip
    238.4 KB · Views: 146
Last edited:

Ricky_Karmator

Senior Member
Jul 25, 2012
164
22
Brescia
Hi guys! A friend of mine just showed to me that he bought a RedMi Note 4 (snap) but never updated. So I check and on his devices there is an old fake rom with the Classic 0.0 in the final MIUI version.
I checked in the developer option and said that the bootloader is unlocked, but I don't know if is a real statement or just another fake. I remember that the vendor rom has edl mode active, so I can follow this guide to flash directly the latest MIUI 10?
 

Black_Stark

Senior Member
Sep 24, 2012
3,497
1,019
GOA
Hi guys! A friend of mine just showed to me that he bought a RedMi Note 4 (snap) but never updated. So I check and on his devices there is an old fake rom with the Classic 0.0 in the final MIUI version.
I checked in the developer option and said that the bootloader is unlocked, but I don't know if is a real statement or just another fake. I remember that the vendor rom has edl mode active, so I can follow this guide to flash directly the latest MIUI 10?

Yes. U can use edl zip to put ur phone in edl mode.
And download latest mido fastboot image and flash using pc.
 
  • Like
Reactions: Ricky_Karmator

realtebo

Senior Member
Dec 13, 2012
54
5
Code:
PS C:\Users\mirko\Downloads\Fastboot_edl-v2> fastboot.exe reboot-edl
fastboot: usage: unknown command reboot-edl
? What am I doing wrong? I downloaded your linked zip
 

realtebo

Senior Member
Dec 13, 2012
54
5
First, let me say thank for this tool and for your reply.

I first rebooted into fastboot, then double-clicked on reboot.bat

It simply requested me to press Enter, I did.

It told me 'your device is rebooted to EDL succesfully' but in reality nothing happened. Still on standard fastboot mode.

So I opened the bat file, I seen

"%~dp0fastboot.exe" reboot-edl

and when tried to execute it manually, it told me

Code:
PS C:\Users\mirko\Downloads\Fastboot_edl-v2> .\fastboot.exe reboot-edl
rebooting into edl...
FAILED (remote: Device is already locked!)
finished. total time: 0.005s
 

Black_Stark

Senior Member
Sep 24, 2012
3,497
1,019
GOA
First, let me say thank for this tool and for your reply.

I first rebooted into fastboot, then double-clicked on reboot.bat

It simply requested me to press Enter, I did.

It told me 'your device is rebooted to EDL succesfully' but in reality nothing happened. Still on standard fastboot mode.

So I opened the bat file, I seen

"%~dp0fastboot.exe" reboot-edl

and when tried to execute it manually, it told me

Enable usb debugging on phone

Also check if ur phone detects below command

fastboot devices
 

Top Liked Posts

  • There are no posts matching your filters.
  • 119
    [GUIDE][TOOL] Reboot to EDL mode from FASTBOOT! No More "Test Point Method"! [kenzo]

    Reboot to EDL mode from FASTBOOT!
    No more Test Point Method needed ;)


    Technical Details:
    Redmi Note 3 support rebooting to EDL in Android Bootloader aboot module (the "reboot-edl" command) but fastboot utility doesn't recognize "reboot-edl" in the command line and refuses to sent the command to the device. Since FastBoot command protocol is simple and text-based, it is enough to send a packet containing "reboot-edl" text over USB. The simplest way to do that is to patch Windows fastboot.exe file, replacing "reboot-bootloader" text with "reboot-edl". As "reboot-bootloader" string is found in the command line, fastboot.exe sends the same constant string to the device. So if "reboot-bootloader" is replaced with "reboot-edl", you can specify "reboot-edl" in the command line and the same text will be sent to the device.


    New Update: Fastboot updated to latest version.

    Tutorial:
    1. Download the Fastboot_edl-v2.zip from Here.
    2. Extract the zip in your desktop
    3. Open the folder and double Click on Reboot.bat
    Gzmp1cs.png


    4. Reboot your device to Fastboot Mode by pressing
    Vol Down + Power button and connect your device with PC and Press Enter.
    SPVka8q.png


    5. Your Device will be rebooted to EDL!
    6. Now flash your Fastboot Rom with Mi Flash Tool to Unbrick your Mi Note 3. :)

    Proof:
    koAiuFv.png




    Thanks to @emuzychenko for the Idea!
    3
    It would've been better if the source of this guide is also mentioned
    Especially since most of text had been copied "as is". :)
    3
    For Linux (and more precisely, debian flavors), here's how to add a "reboot-edl" command in "fastboot" command:

    Code:
    mkdir /tmp/fastboot &&
    cd /tmp/fastboot &&
    apt-get source android-tools-fastboot </dev/null &&
    cd android-tools-*
    cat <<EOF | patch -p1
    --- a/core/fastboot/fastboot.c
    +++ b/core/fastboot/fastboot.c
    @@ -284,6 +284,7 @@ void usage(void)
                 "  continue                                 continue with autoboot\n"
                 "  reboot                                   reboot device normally\n"
                 "  reboot-bootloader                        reboot device into bootloader\n"
    +            "  reboot-edl                               reboot device into EDL (RedMi Note 3 Pro)\n"
                 "  help                                     show this help message\n"
                 "\n"
                 "options:\n"
    @@ -803,6 +804,7 @@ int main(int argc, char **argv)
         int wants_wipe = 0;
         int wants_reboot = 0;
         int wants_reboot_bootloader = 0;
    +    int wants_reboot_edl = 0;
         int erase_first = 1;
         void *data;
         unsigned sz;
    @@ -929,6 +931,9 @@ int main(int argc, char **argv)
             } else if(!strcmp(*argv, "reboot-bootloader")) {
                 wants_reboot_bootloader = 1;
                 skip(1);
    +        } else if(!strcmp(*argv, "reboot-edl")) {
    +            wants_reboot_edl = 1;
    +            skip(1);
             } else if (!strcmp(*argv, "continue")) {
                 fb_queue_command("continue", "resuming boot");
                 skip(1);
    @@ -1009,6 +1014,8 @@ int main(int argc, char **argv)
             fb_queue_reboot();
         } else if (wants_reboot_bootloader) {
             fb_queue_command("reboot-bootloader", "rebooting into bootloader");
    +    } else if (wants_reboot_edl) {
    +        fb_queue_command("reboot-edl", "rebooting into EDL mode");
         }
    
         if (fb_queue_is_empty())
    EOF
    
    apt-get build-dep android-tools-fastboot -y </dev/null
    dpkg-buildpackage -rfakeroot -b
    cd ..
    dpkg -i android-tools-fastboot*.deb

    I have a blog post about this providing a few more information Here. Any comment is warmly encouraged and welcome.
    2

    I have updated the fastboot.exe and the method also. Update your video with this and I will add it to OP.
    1
    This must be driver problem. Install MI PC suite and it will install all necessary drivers. Then try it again.
    I have a bricked xiaomi pad 5 that has a locked bootloader when i trired using this tool to go to EDL mode via fastboot it just restarts and boot loops... need help.