[Help] Cannot unlock bootloader using fastboot - General Questions and Answers

I am trying to unlock the bootloader for my device (it's a cheap Chinese phone) and then root using Magisk. The first problem is that OEM Unlock option is not available in developer options, so I got no choice other than try unlocking using fastboot. Now the second problem is that fastboot doesn't show anything at all. Normally there is a Fastboot written at the top left corner of the device but in my case there is no output but the blank screen, and I do verify that my device is in fastboot mode because when I do fastboot devices, it show's the output:
Code:
C:\Users\Mujtaba>adb devices
List of devices attached
Y3123A0310Q0100020953 device
C:\Users\Mujtaba>adb reboot bootloader
C:\Users\Mujtaba>fastboot devices
Y3123A0310Q01000209 fastboot
Since fastboot was responding (partially), I tried to unlock the bootloader using different commands but each time I get read/write failed error.
Code:
C:\Users\Mujtaba>fastboot oem unlock
...
FAILED (command write failed (Unknown error))
finished. total time: 5.011s
C:\Users\Mujtaba>fastboot oem unlock
...
FAILED (status read failed (Too many links))
finished. total time: 80.886s
Alas, I got the same results with fastboot oem unlock-go and fastboot flashing unlock as fastboot is not accepting (at least I think) any command except fastboot devices.
I read the official guide and there I found that:
Devices should deny the fastboot flashing unlock command unless the get_unlock_ability is set to 1. If set to 0, the user needs to boot to the home screen, open the Settings > System > Developer options menu and enable the OEM unlocking option (which sets the unlock_ability to 1).
Click to expand...
Click to collapse
My device supports unlocking bootloader because I've checked the build.prop file using adb shell getprop and it includes the properties stated below:
The ro.oem_unlock_supported property should be set at build time based on whether the device supports flashing unlock.
If the device suppports flashing unlock, set ro.oem_unlock_supported to 1. If the device doesn't support flashing unlock, set ro.oem_unlock_supported to 0. If the device supports flashing unlock, then the bootloader should indicate the lock status by setting the kernel command line variable androidboot.flash.locked to 1 if locked or 0 if unlocked.
For devices that support dm-verity, use ro.boot.verifiedbootstate to set the value of ro.boot.flash.locked to 0; this unlocks the bootloader if the verified boot state is orange.
Click to expand...
Click to collapse
Code:
C:\Users\Mujtaba>adb shell getprop
[ro.oem_unlock_supported]: [1]
[ro.boot.verifiedbootstate]: [green]
[ro.boot.flash.locked]: [1]
[sys.oem_unlock_allowed]: [0]
.
.
Someone on reddit did this to find the OEM unlock state, mine of course returned 0 as you can see above.
Code:
adb shell getprop sys.oem_unlock_allowed
Device Specs:
CPU: ARM Cortex-A-7 @ 1.20 Ghz
GPU: Mali-400 MP
Board: sp7731cea (Unisoc aka Spreadtrum)
Build: Q Infinity C_MP_26_01
Treble: NA
Seamless update (A/B): NA

So, is there any way to change it to 1 ?

Related

Downgrade htc rhyme

Hi. sorry for bad english
this guide for downgrade htc rhyme on stock rom 1.29.401.3 (RST)
because when you unlocked bootloader, rom increases on 2.0.0.3.....
Recover the full Stock except Relock bootloader.
all the responsibility on you. All personal data will certainly be affected
This procedure will consist of several steps
1 Changing the version number, in order to downgrade firmware was possible.
2 Downgrade device
condition: device must be unlock and have root
Step 1: Changing the version number
condition: bootloader unlock, device is loaded and connected, debugging on.
1. Put the files downloaded from here (aks me) in the tools folder in the root of drive C:
2.Open a command prompt and enter the following code (after each line enter):
cd c:\tools
adb push misc_version /data/local/tmp/misc_version
adb shell chmod 777 /data/local/tmp/misc_version
adb shell
/data/local/tmp/misc_version -s 1.00.000.0
After the introduction of these commands, you should have the following:
--set_version set. VERSION will be changed to: 1.00.000.0
Patching and backing up partition 17...
Note: If you will have an error «Error opening backup file.», Make sure that your memory card is inserted into the phone, not in the computer (make sure the phone is not switched to USB Storage).
3. Enter the code:
# sync
Double-check back to write code and make sure that all the work you have done correctly with the code:
dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10
After entering the code should appear:
1.00.000.010+0 records in
10+0 records out
10 bytes transferred in 0.001 secs (10000 bytes/sec)
STEP 2:
1. At the command prompt, type the following command to restart the boot menu (bootloader):
adb reboot bootloader
1.1 Open another command window (not the previous close) and lock bootloader using the instructions from htcdev
1.2 After the locking bootloader device will be reboot ..... hold the lower volume button to enter the bootloader and select the power button fastboot
and back to the first command line window
2. Make sure that your device is recognized by entering the following command:
fastboot-windows devices
3. If your device is properly recognized, it is necessary to return the serial number. Use the code:
fastboot-windows oem rebootRUU
4. Your phone will now restart. The screen of your phone will be black with a gray-silver logo «HTC».
5. After that, we need to reinstall the original firmware. It may take a few minutes, as the transfer of distribution firmware from PC to phone is not fast. Enter the code:
fastboot-windows flash zip StockRom.zip
In rare cases, the installation stops and the user pops up a warning that it is necessary to immediately repeat the installation. Do not panic, just type «fastboot-windows flash zip StockRom.zip» again and it will work.
7. Once it's over, wait a few minutes, then restart your phone, using the code:
fastboot-windows reboot
it's all
You have to be installed in the phone firmware version 1.29.401.3
Is performed on the RST(Russia) rhyme. But there is a chance that this can return any stock rom on any cid. just before it in the folder TOOLS needed to replace an existing zip StockRom, your original zip
download tools from where?
ezab said:
download tools from where?
Click to expand...
Click to collapse
You can get misc_version from here: http://forum.xda-developers.com/showthread.php?t=1399331
hi
actually i have followed all of ur step
but this error always occured
about hboot version is older
C:\Android>fastboot flash zip rom.zip
sending 'zip' (407580 KB)...
OKAY [ 56.535s]
writing 'zip'...
(bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) checking model ID...
(bootloader) checking custom ID...
(bootloader) checking main version...
(bootloader) checking hboot version...
FAILED (remote: 44 hboot version check fail)
finished. total time: 127.671s

Semi-bricked sensation (corrupt IMEI?)

Just over half a year ago (January 2012) I have unlocked my sensation with rev. h-boot, installed 4 ext recovery and flashed Android Revolution. I've been using the phone in a number of countries since, with no problems. A couple of days (9/08) back, when I returned to the UK my sensation started behaving as if it had been IMEI blocked, and after fiddling around for a while I discovered that the IMEI android reports is different that the one printed under the battery/on the box. Given it doesn't seem I have any backup (bear in mind it worked like a charm for past half a year) is there any way of repairing that corrupt IMEI? Is it (so naive) stored in more than one place on the phone so I could access the factory IMEI or anything of that sort? I've tried using the fastboot oem writeimei command, as well as the root terminal emulator command that have been posted on these forums a number of times but neither of them worked.
Go to shop where you get it
Sent from my HTC Sensation using xda premium
From the dialler which one does *#06# report ?
Your fastboot might be neutered (can't issue write commands properly) if you upgraded the HBOOT using the universal firmware packages posted in the Dev section, even though it is still s-off.
When you boot into the bootloader, does it say *** LOCKED *** or Revolutionary in the very top left? If it's *** LOCKED ***, you need to reinstall the Revolutionary HBOOT.
If it says Revolutionary, issue the following commands from Windows to fix your IMEI:
Code:
fastboot getvar imei
[shows old imei]
fastboot oem writeimei 123456789012345
fastboot reboot-bootloader
fastboot getvar imei
[shows new imei]
krazykipa said:
Your fastboot might be neutered (can't issue write commands properly) if you upgraded the HBOOT using the universal firmware packages posted in the Dev section, even though it is still s-off.
When you boot into the bootloader, does it say *** LOCKED *** or Revolutionary in the very top left? If it's *** LOCKED ***, you need to reinstall the Revolutionary HBOOT.
If it says Revolutionary, issue the following commands from Windows to fix your IMEI:
Code:
fastboot getvar imei
[shows old imei]
fastboot oem writeimei 123456789012345
fastboot reboot-bootloader
fastboot getvar imei
[shows new imei]
Click to expand...
Click to collapse
Is this not a little illegal ?
Sent from my HTC Sensation XE with Beats Audio Z715e using xda app-developers app
*shrugs* just suggesting a solution, maybe using the phone as he has it right now is illegal... !
This works it is ilegal, kinda.
Sent from my HTC Sensation Z710e using xda premium
not really
I dont believe its illegal if he's repairing/restoring IMEI back to original, if he/she's "changing" a valid IMEI then yes.
My fastboot doesn't give the option of the command ' writeimei' .
Only:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
freelanc45 said:
My fastboot doesn't give the option of the command ' writeimei' .
Only:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
Click to expand...
Click to collapse
It needs a custom fastboot binary (Revolutionary) and you are (technically) legally limited to restoring a damaged IMEI on your own consent. As explained, creating a false IMEI is illegal. Just a heads-up.

Problem with unlocking XOOM

Hallo
I am trying flash my old XOOM with a custom rom. I was following the guide on
https://forum.xda-developers.com/wiki/Motorola_Xoom/Flashing_Guide
but I get to the point where I shall run the command (Yes I have remember to active USB debugger)
Code:
fastboot oem unlock
but then command returns
Code:
(bootloader) fastboot oem unlock disabled!
FAILED (remote: '')
fastboot: error: Command failed
Some general information about the device:
Model Number: XOOM 2
System version: 77.128.12.MZ615.NonEFIGSRetail.en.EU
Android version: 4.04
Kernel version: 3.0.8-ge2afd25
Build number: 7.7.1-128_MZ615-12
The bootloader information:
Code:
AP Fastboot Flash Mode (S)
0A.74 (sha-db24cb6, 2012-04-25 10:52:50)
eMMC Info: Size 16G
Device is LOCKED, Status Code: 0
Battery OK
OK to Program
Transfer Mode:
USB Connected

fastboot commands hangings with no output

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 ...

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.

Categories

Resources