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

ROUGE13

Senior Member
Feb 21, 2015
62
0
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,481
1,010
0
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
62
0
0
U missing English :D
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,481
1,010
0
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
62
0
0
Last edited:

ROUGE13

Senior Member
Feb 21, 2015
62
0
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,481
1,010
0
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,783
378
113
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

Last edited:

Ricky_Karmator

Senior Member
Jul 25, 2012
161
22
18
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,481
1,010
0
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
0
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
0
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,481
1,010
0
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