fastboot commands hangings with no output - General Questions and Answers

Hello,
I'm trying to flash a custom a ROM for the first time but I'm facing some issues.
I'm using an Ubuntu 20.04 and my phone is an Asus Max Pro M1.
I can see my device with "adb devices" and I can boot in the bootloader with "adb reboot bootloader".
Then I can see my device with "fastboot devices". But when I'm trying another fastboot command (for example "flash recovery"/"flashing unlock"/"oem unlock") my terminal prompt is just hanging, I don't get any output. And it won't do anything until I restart my phone by pushing the power button, at that time it will just print three lines of logs telling me that the command failed.
Here is an example of what I get :
Bash:
[email protected]:~/Documents/Code/tel$ adb devices
List of devices attached
K3AXB762C86977F device
[email protected]:~/Documents/Code/tel$ adb reboot bootloader
[email protected]:~/Documents/Code/tel$ sudo fastboot oem unlock
...
FAILED (command write failed (Success))
finished. total time: 0.000s
Does anyone have an idea of what is happening ?

IMHO the typical command sequence is
Code:
adb devices
adb reboot fastboot
fastboot devices
fastboot <subcommand>
but I may err, as always ...

Related

[Q] 2.20 root on mac?

sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
jasonr803 said:
sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
Click to expand...
Click to collapse
1. Make sure you have installed ADB and FASTBOOT command line tools first. You can install them from here: http://code.google.com/p/adb-fastboot-install/
2. Download djrbliss's exploit files. You can find it here: http://forum.xda-developers.com/showthread.php?t=1952038
3. Extract the entire zip file.
4. Connect your device via USB, ensure USB debugging mode is enabled.
5. Open Terminal and enter into the folder that you extract that zip file.
6. Just type the following command lines step by step:
1. adb wait-for-device
May be you will see this information in your terminal
=======================================
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
=======================================
2. adb restore backup1.ab
3. adb shell "rm /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
4. adb shell "ln -s /dev/diag /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
5. adb restore backup2.ab
6. adb push pwn /data/local/tmp
After this you can see some information in your terminal like this:
========================================
1180 KB/s (64526 bytes in 0.053s)
========================================
7. adb shell "chmod 755 /data/local/tmp/pwn"
8. adb shell "/data/local/tmp/pwn"
After this if you see this in your terminal that means you are close to success:
========================================
[+] Set CID!
========================================
9. adb reboot bootloader
In this step, just keep waiting until your phone enter into fastboot mode, then excute step 10.
10. adb kill-server
11. fastboot oem readcid
If you see the cid like this you are success!!!
========================================
...
(bootloader) cid: 11111111
OKAY [ 0.010s]
finished. total time: 0.010s
========================================
12. fastboot oem get_identifier_token
Finally you can get your own identifier token.
For some reason the adb commands dont work for me. Is there something I'm missing?
Edit: Figured it out but now I get a "Failed." error when I type adb shell "/data/local/tmp/pwn"
jasonr803 said:
sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
Click to expand...
Click to collapse
instructions have been updated and there is now a script for mac you can execute in terminal
http://forum.xda-developers.com/showpost.php?p=33178597&postcount=1
h1m said:
For some reason the adb commands dont work for me. Is there something I'm missing?
Edit: Figured it out but now I get a "Failed." error when I type adb shell "/data/local/tmp/pwn"
Click to expand...
Click to collapse
I also encounter this problem. Try to factory reset your phone first. I do this then it works fine.

ADB works but fastboot: usage: no command

I got the latest ADB and Fastboot fresh from Google, used to have them in C:\Windows and they worked fine without even setting an environment variable, but today for unknown reason fastboot stopped working all together.
So I tried to download again, put the tools in C:\platform-tools, this time I set the environment variable properly in Windows but still no luck.
ADB returns a list of example commands, as expected.
fastboot returns
fastboot: usage: no command
Any ideas?
Windows 10
PS
shift click to open command prompt window here in the platform-tools folder gives the same result, fastboot: usage: no command

Unlock Bootloader on Doogee s96 pro and root

Is there anyway to unlock the bootloader on this device.... each time i try to send the command :
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot oem unlock
FAILED (remote: 'Command not supported in default implementation')
fastboot: error: Command failed
is there any solution... i want to root my device but none of the tutorial i found on the web is working
thx
totallyfreak said:
Is there anyway to unlock the bootloader on this device.... each time i try to send the command :
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot oem unlock
FAILED (remote: 'Command not supported in default implementation')
fastboot: error: Command failed
is there any solution... i want to root my device but none of the tutorial i found on the web is working
thx
Click to expand...
Click to collapse
0. We answer the question, do we need it at all? If necessary, then why?
1. If the answer to the first item is positive, then go to the settings, to the "About phone" item, twist to the very bottom and poke at the "Build number" item many times, so we will unlock the "For Developers" menu.
2. We go back to the settings and go to the "System" section, there is the subsection "For Developers" we are looking for, go to it
3. Immediately we stumble upon the item "Factory unlocking", it is for the sake of it that we are doing all this now. We press, we agree with what they scare us.
3.1. Below is the item "Debugging via USB", we also click it, one day we will need it.
4. When flashing through adb, you will need to register the command below, and only after that do:
Code:
fastboot devices
If okay so the number Serial appears
Unlock
Code:
fastboot flashing unlock
See device screen and follow instructions.
TWRP 3.4.0: Doogee S96 Pro
yes all the things is done... oem unlock is turned on
usb debugging is turned on
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock
FAILED (remote: 'Unrecognized command flashing unlock')
fastboot: error: Command failed
totallyfreak said:
FAILED (remote: 'Unrecognized command flashing unlock')
Click to expand...
Click to collapse
If you followed 0~2 steps so need Update tool: Platform-Tools for Windows
i install the latest version and i still got this error message
is there anyone on the forum that already unlock bootloader on doogee s96 pro?
If fastboot is located in Android's user-space, what IDK because don't have your device, then IMO the correct command sequence is
Code:
adb devices
adb reboot fastboot
fastboot reboot fastboot
fastboot devices
fastboot flashing unlock
You need to turn on oem unlocking from developer option.
After that you can unlock bootloader. You need to flash mobile.
the oem is set to unlock eom... the usb debug is set on also... i still got this error message
PS D:\_DOOGEE S90 Pro_\ROOT> adb reboot fastboot
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot reboot fastboot
Rebooting into fastboot OKAY [ 0.000s]
< waiting for any device >
Finished. Total time: 12.349s
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock
FAILED (remote: 'Unrecognized command flashing unlock')
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT>
totallyfreak said:
o oem está configurado para desbloquear o eom ... o usb debug também está ativado ... ainda recebo esta mensagem de erro
PS D: \ _ DOOGEE S90 Pro_ \ ROOT> adb reboot fastboot
PS D: \ _ DOOGEE S90 Pro_ \ ROOT> fastboot reinicializar fastboot
Reinicializando no fastboot OKAY [0.000s]
<esperando por qualquer dispositivo>
Finalizado. Tempo total: 12.349s
PS D: \ _ DOOGEE S90 Pro_ \ ROOT> dispositivos fastboot
S96PROEEA0000013829 fastboot
PS D: \ _ DOOGEE S90 Pro_ \ ROOT> desbloqueio de flashing de inicialização rápida
FALHA (remoto: 'Comando não reconhecido desbloqueio intermitente')
fastboot: erro: falha no comando
PS D: \ _ DOOGEE S90 Pro_ \ ROOT>
Click to expand...
Click to collapse
.
no its doogee s96 pro... my folder is wrong named... i run on android 10
totallyfreak said:
no its doogee s96 pro... my folder is wrong named... i run on android 10
Click to expand...
Click to collapse
My device has A10 too. I made simple steps to Unlock these:
In the device SO:
- OEM Unlock - select​- USB Debugging - select​​cmd command for know if adb work:​
Code:
adb devices
​If okay:​
Code:
adb reboot bootloader
(or use the menu option).​
The screen should show "FASTBOOT mode" at the bottom of the screen in small font:
cmd command for know if fastboot work:​
Code:
fastboot devices
If okay:​
Code:
fastboot flashing unlock
or​
Code:
fastboot flashing unlock_critical
​Read phone screen for instructions.​You will have to press volume up key to continue to unlock.​​cmd command for reboot device:​
Code:
fastboot reboot
​Your device unlocked when you read the message in the device screen: Orange State​
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock_critical
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock_critical
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT>
i realy dont know what to do... adb is installed correctly and the oem unlock and usb debug is checked
totallyfreak said:
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock_critical
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock_critical
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot flashing unlock
FAILED (Write to device failed (no link))
fastboot: error: Command failed
PS D:\_DOOGEE S90 Pro_\ROOT> fastboot devices
S96PROEEA0000013829 fastboot
PS D:\_DOOGEE S90 Pro_\ROOT>
i realy dont know what to do... adb is installed correctly and the oem unlock and usb debug is checked
Click to expand...
Click to collapse
Put the screenshot from your device:
- OEM Unlock and USB Debugging - - selected
Install Drivers: https://mega.nz/file/pGATVSrY#uOgE2wXIvQoNqcDoPEbiK5VWO9cqC0RhjL4WJE-WOkY
Try.
Maybe need more? Unzip adb&amp;driver+installer.rar and install driver.
Use the adb from folder adb&driver installer\adb\ and try.
PS: Do not use fastboot reboot fastboot because it goes to fastbootD.
bootloader => fastboot <= this is a normal fastboot
fastbootD => advanced fastboot only for Super partitions
Ey,
I was triying to install TWRP, but I had many problems with Orange? or whatever and the fact that I wasn't able
to found any .img file to install TWRP. If someone can give me a link or a little help it would be amazing.
Thanks.
lopestom said:
0. We answer the question, do we need it at all? If necessary, then why?
1. If the answer to the first item is positive, then go to the settings, to the "About phone" item, twist to the very bottom and poke at the "Build number" item many times, so we will unlock the "For Developers" menu.
2. We go back to the settings and go to the "System" section, there is the subsection "For Developers" we are looking for, go to it
3. Immediately we stumble upon the item "Factory unlocking", it is for the sake of it that we are doing all this now. We press, we agree with what they scare us.
3.1. Below is the item "Debugging via USB", we also click it, one day we will need it.
4. When flashing through adb, you will need to register the command below, and only after that do:
Code:
fastboot devices
If okay so the number Serial appears
Unlock
Code:
fastboot flashing unlock
See device screen and follow instructions.
TWRP 3.4.0: Doogee S96 Pro
Click to expand...
Click to collapse
Ey,
Do you have a mirror link to the TWRP?
Because that one is 404... And i'm stuck in the process, I wasn't able to found it anywhere else on thi internet.
I will be very helpfull.
Thanks.
SrEstegosaurio said:
Ey,
I was triying to install TWRP, but I had many problems with Orange? or whatever and the fact that I wasn't able
to found any .img file to install TWRP. If someone can give me a link or a little help it would be amazing.
Thanks.
Click to expand...
Click to collapse
In bootloader unlocked that's message is normal. So only information Orange State show your device has bootloader unlocked. Now you can help totallyfreak unlocking bootloader with more instructions.
SrEstegosaurio said:
Ey,
Do you have a mirror link to the TWRP?
Because that one is 404... And i'm stuck in the process, I wasn't able to found it anywhere else on thi internet.
I will be very helpfull.
Thanks.
Click to expand...
Click to collapse
As you read in the post #2 TWRP 3.4.0;
Translate: READ - DOWNLOAD Files - FOLLOW Instructions.
Hi folks! I'm new here and Ihave a question about install TWRP on my Doogee S96 pro. In the past I rooted nearly all my phones...first Sony then some Xiaomi's.
Now I'm at the step to install TWRP via fastboot. The bootloader is unlocked and I see every time the orange state warning. If I install the TRWP image I see no failure. All is fine. But if I reboot to recovery I come to the stock recovery. I'm using the TWRP from here and nothing else I changed.
Is it possible I made a mistake for example I must rename the TWRP recovery.img? Or I must delete some user data?
And by the way...Doogee and updates. Anybody knows wheter android 11 is sheduled for the S96? Or is there a custom rom of Android 11?
I hope my question is clear!? I apologize in advance for any misunderstandings. Please ask me if i forgot some helpful information.
Greetings!
Hello again! Now TWRP is running. I tried with PowerShell. The first times I tried with "cmd".
But the next problem is the encryption in TWRP. How can I deactivate it?
Good night!
Mega-Flo said:
Hello again! Now TWRP is running. I tried with PowerShell. The first times I tried with "cmd".
But the next problem is the encryption in TWRP. How can I deactivate it?
Good night!
Click to expand...
Click to collapse
To decrypt a android phone, you usually have to reset to the original "non-encrypted" state, and then decide to not lock it with a code. Then do the installation process
I cant find any TWRP.

What is name of lpm file in asus zenfone 2 lazer,i want to boot my device automatically when charger connected

When name is the lpm file for asus zenfone, i want to change the script to automatically poweron device when charger connected
IMO it's far easier to achieve this by means of ADB and Fastboot IF Fastboot supports command oem off-mode-charge what you can verify with fastboot oem device-info command
Code:
adb reboot fastboot
fastboot reboot fastboot
fastboot flashing unlock <= ONLY IF BOOTLOADER NOT AREADY GOT UNLOCKED
fastboot oem off-mode-charge 0
fastboot reboot

[Manual]How to get a SuperMID

This requires an ENG HBOOT, get it here
1. Run the command line and type the command: cd (your platform tools folder) (Press Enter after each command)
2. Enter the command adb devices . It should come back with a list of connected devices and your serial number.
3. Enter the command adb reboot bootloader . (Your device will reboot and boot into a FastBoot USB)
(If your phone will not boot in normal mode. Manually reboot to boot and select fastboot).
4. Enter the command fastboot getvar mid .The window will show your current mid.
5. Enter the command fastboot oem writemid PG58*****
6. Enter the command fastboot reboot-bootloader
7. Enter the command fastboot reboot

Categories

Resources