Related
[Q] fastboot oem unlock with correct code fails with "command did not succeed"
Hi,
I recently got an xperia Z into my hands and wanted to unlock the bootloader.
I checked the IMEI in the system settings and requested and received an unlock code for the device.
I unlocked the bootloader with the code,
but now I am not able to flash or boot anything via fastboot (device still boots normally though).
When trying to flash e.g. twrp to the boot partition
(
Code:
fastboot flash boot boot.img
)
it fails with "remote: command not allowed"
Also trying
Code:
fastboot boot boot.img
does not work properly:
In this case it just reboots into Android.
I am using Linux to flash stuff.
I already tried using the flashtool, which also didnt bring me any success.
Does anyone have an idea or a solution to this problem?
Best regards
I was trying to install stock rom after installing RR rom. MiFlash said "flashing is not allowed for critical partitions" and when i did "fastboot flashing unlock_critical" from cmd i got "remote: Flashing Unlock is not allowed". I then used the allinone tool from xda and pressed "lock loader" to unlock it again and ended up bricking the device as it now shows "your device is corrupt. it can't e trusted and will not boot" I can't enter recovery either only fastoot and nothing works. PLEASE HELP FAST
have you tried flaashing via edl mode ?
medkim said:
have you tried flaashing via edl mode ?
Click to expand...
Click to collapse
how to do that
Hammad1029 said:
how to do that
Click to expand...
Click to collapse
reboot into edl mode and flash stock rom by mifilash tool
medkim said:
reboot into edl mode and flash stock rom by mifilash tool
Click to expand...
Click to collapse
how do I reboot into edl mode without dissembling the phone
Hammad1029 said:
how do I reboot into edl mode without dissembling the phone
Click to expand...
Click to collapse
reboot into bootloader then issue this command via adb
fastboot oem edl
medkim said:
reboot into bootloader then issue this command via adb
fastboot oem edl
Click to expand...
Click to collapse
it gives "FAILED (remote: 'Device is already locked!')"
@__harmeet reply here please
Hammad1029 said:
it gives "FAILED (remote: 'Device is already locked!')"
Click to expand...
Click to collapse
friend
first of all, you shoud unlock the bootloader
try with this guide
medkim said:
friend
first of all, you shoud unlock the bootloader
try with this guide
Click to expand...
Click to collapse
@Hammad1029 He Is Right, Firstly Unlock The Bootloader, Then Unlock Its Critical Partition And Boot Up Into EDL Mode By Typing "fastboot oem edl#
medkim said:
friend
first of all, you shoud unlock the bootloader
try with this guide
Click to expand...
Click to collapse
have tried already it says "FAILED (remote: Flashing Unlock is not allowed"
bump...
Dude, how many threads do you need to create, it won't make it any more likely that anyone will help you
Your problem is caused by that you only unlocked the bootloader and not critical partitions
Which stock rom were you on before flashing a custom one?
Nebrassy said:
Dude, how many threads do you need to create, it won't make it any more likely that anyone will help you
Your problem is caused by that you only unlocked the bootloader and not critical partitions
Which stock rom were you on before flashing a custom one?
Click to expand...
Click to collapse
I created the 2nd thread in desperation of restoring my only phone so sorry. How do I unlock the ootloader it shows the error I mentioned above
Hammad1029 said:
I created the 2nd thread in desperation of restoring my only phone so sorry. How do I unlock the ootloader it shows the error I mentioned above
Click to expand...
Click to collapse
I asked you what stock rom you were on
Nebrassy said:
I asked you what stock rom you were on
Click to expand...
Click to collapse
10.0.2
Hammad1029 said:
10.0.2
Click to expand...
Click to collapse
Are you sure?, if so, manually flash boot, system and vendor using fastboot to your current slot
Fastboot flash boot_a boot.img
Or boot_b if active slot is B etc...
Then go to developer options and enable oem unlocking, if you can't enable that option, lock the bootloader, enable the option then unlock bootloader and critical flashing
Nebrassy said:
Are you sure?, if so, manually flash boot, system and vendor using fastboot to your current slot
Fastboot flash boot_a boot.img
Or boot_b if active slot is B etc...
Then go to developer options and enable oem unlocking, if you can't enable that option, lock the bootloader, enable the option then unlock bootloader and critical flashing
Click to expand...
Click to collapse
can I claim warranty on this issue
Hammad1029 said:
can I claim warranty on this issue
Click to expand...
Click to collapse
Hi , sorry for my bad English , if you can open you phone and enter to EDL MODE and flash the stock rom of your device may be solve your problem ,
(I get the same problem trying to install a custom rom)
If you can't acces to EDL via ABD i think that you only can enter to EDL disasembly your phone .. Suertee xd
Yo también me desesperé
same problem
i got the same problem, won't start normally, hangs in boot screen so can't enter the phone to put it in usb debugging, only responce is through fastboot mode. Every attempt is failing due to locked state and unlocking is not allowed.
Hello guys no matter what i flash the twrp even its success i cant boot to twrp i followed many instructions but the same i cant boot to twrp some one help please
Arrenlaxmali said:
Hello guys no matter what i flash the twrp even its success i cant boot to twrp i followed many instructions but the same i cant boot to twrp some one help please
Click to expand...
Click to collapse
Can you share us a screenshot when we can see what are you doing to install TWRP recovery?
sakilxda said:
Can you share us a screenshot when we can see what are you doing to install TWRP recovery?
Click to expand...
Click to collapse
Yow hello bro as always you are active helper . I did thisfastboot oem nubia_unlock NUBIA_NX629J
Then fast boot flash recovery recovery.img " i rename the twrp with recovery.img and i cant boot to twrp why im confused i follow the instructions here in xda
Arrenlaxmali said:
Yow hello bro as always you are active helper . I did thisfastboot oem nubia_unlock NUBIA_NX629J
Then fast boot flash recovery recovery.img " i rename the twrp with recovery.img and i cant boot to twrp why im confused i follow the instructions here in xda
Click to expand...
Click to collapse
its for chines version only
if you have Chinese version you have to unlock the bootloader first and then you will be able to flash the twrp recovery
unlocking the bootloader should be on the setting
you cant unlock the bootloader using the oem command in fastboot , you have to unlock it from the setting in developer option
and then enter fastboot and enter the command
fastbooot flashing unlock
remember unlocking the bootloader will erase all your data
em90256 said:
its for chines version only
if you have Chinese version you have to unlock the bootloader first and then you will be able to flash the twrp recovery
unlocking the bootloader should be on the setting
you cant unlock the bootloader using the oem command in fastboot , you have to unlock it from the setting in developer option
and then enter fastboot and enter the command
fastbooot flashing unlock
remember unlocking the bootloader will erase all your data
Click to expand...
Click to collapse
It was unlock bro still i cant enter twrp my rm3 version is 2.27
Arrenlaxmali said:
It was unlock bro still i cant enter twrp my rm3 version is 2.27
Click to expand...
Click to collapse
am in version 2.27 and twrp working fine with me
you have to enter the command
fastboot flashing unlock
and when you boot there is a yellow warning message showing that you have unlocked the bootloader
after that just flash the right twrp file posted on the fourm
good luck
em90256 said:
am in version 2.27 and twrp working fine with me
you have to enter the command
fastboot flashing unlock
and when you boot there is a yellow warning message showing that you have unlocked the bootloader
after that just flash the right twrp file posted on the fourm
good luck
Click to expand...
Click to collapse
I did but look it was success but i cant boot to twrp
Arrenlaxmali said:
I did but look it was success but i cant boot to twrp
Click to expand...
Click to collapse
you doing it wrong, please copy my commands ,
first you have to unclock oem in developer option under settings this is important and then please copy this
fastboot devices
fastboot flashing unlock
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flash recovery recovery.img
in your photo you have only used this command
fastboot oem nubia_unlock NUBIA_NX629J
but this is wrong
you have to use
*
fastboot flashing unlock
*
this is important
and then you will be able to flash twrp recovery
em90256 said:
you doing it wrong, please copy my commands ,
first you have to unclock oem in developer option under settings this is important and then please copy this
fastboot devices
fastboot flashing unlock
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flash recovery recovery.img
in your photo you have only used this command
fastboot oem nubia_unlock NUBIA_NX629J
but this is wrong
you have to use
*
fastboot flashing unlock
*
this is important
and then you will be able to flash twrp recovery
Click to expand...
Click to collapse
I did all of this but still the same why i dont understand. When i reboot to recovery its show just a fastboot mode why
Arrenlaxmali said:
I did all of this but still the same why i dont understand. When i reboot to recovery its show just a fastboot mode why
Click to expand...
Click to collapse
You can find the solutions here.
https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page7
sakilxda said:
You can find the solutions here.
https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page7
Click to expand...
Click to collapse
I mean i can boot to system but i cant boot to recovery to twrp
Arrenlaxmali said:
I mean i can boot to system but i cant boot to recovery to twrp
Click to expand...
Click to collapse
Twrp recovery is only for Chinese firmware, did you know?
What's your problem exactly? What do you want to do?
sakilxda said:
Twrp recovery is only for Chinese firmware, did you know?
What's your problem exactly? What do you want to do?
Click to expand...
Click to collapse
Since i csnt update using OTA. I want to flash twrp so i can flash cn roms or global, yes i am cn firmware. i dont understand why i cant update in OTA and flash twrp. Look at the photo failt ota and successful twrp flash but i still i cant boot to twrp
Bro, step by step...
First, lock again the bootloader.
Second, unlock bootloader again.
Third, flash the archives from Europe or Chinese ROM, all the from the same firmware. (Boot, recovery, system, parameters, etc...)
You can see that in the other link.
If you get do all ok, try flash with OTG since Recovery.
sakilxda said:
Bro, step by step...
First, lock again the bootloader.
Second, unlock bootloader again.
Third, flash the archives from Europe or Chinese ROM, all the from the same firmware. (Boot, recovery, system, parameters, etc...)
You can see that in the other link.
If you get do all ok, try flash with OTG since Recovery.
Click to expand...
Click to collapse
Okay bro thanks i will do it
Arrenlaxmali said:
Okay bro thanks i will do it
Click to expand...
Click to collapse
Did you succes?
I have a problem with twrp to, after finish with all step twrp shown once after boot then when I try to reboot twice twrp gone.
Arrenlaxmali said:
Okay bro thanks i will do it
Click to expand...
Click to collapse
Did it work? I have the same problem with my global version.
My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
nil3m1 said:
My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
Click to expand...
Click to collapse
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
em902566 said:
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Click to expand...
Click to collapse
-I cannot boot into os to enable oem unlock ,I can't go into recovery
Hope you will help me,thank you
SuperDroidMe said:
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
Click to expand...
Click to collapse
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
nil3m1 said:
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
Click to expand...
Click to collapse
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine ?
em902566 said:
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine
Click to expand...
Click to collapse
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
update?
nil3m1 said:
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
Click to expand...
Click to collapse
did you fixed it? we have same situation.
godric12 said:
did you fixed it? we have same situation.
Click to expand...
Click to collapse
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
JerryYin said:
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
Click to expand...
Click to collapse
I have this error when installing the rom, what should I do to fix it?
mos98p said:
I have this error when installing the rom, what should I do to fix it?
Click to expand...
Click to collapse
Maybe you can check other post and find the solutions, there are someone already fix the phone with same issue
it says your device is corrupt. it cant be trusted
how to fix it please help me how to start phone , i tryed some solution to flash and all that but nothing worked
I think u also same mistake. Before install cn rom. U not enable oem unlock option in davoloper features
brawlhack said:
it says your device is corrupt. it cant be trusted
how to fix it please help me how to start phone , i tryed some solution to flash and all that but nothing worked
Click to expand...
Click to collapse
Few days before I was in the same situation.
Tried lot of solution but the simplest to solve was using the below 2 command when in fastboot.
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flashing unlock
This should unlock the bootloader and you should be able continue the setup.
All the Best...
it says flashing unlock is not allowed
rajnathr said:
Few days before I was in the same situation.
Tried lot of solution but the simplest to solve was using the below 2 command when in fastboot.
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flashing unlock
This should unlock the bootloader and you should be able continue the setup.
All the Best...
Click to expand...
Click to collapse
it says flashing unlock is not allowed
Same thing happened to me, tried all the recommendations given on this site, none works . Any help will be appreciated, now i have a paper weight
re-flashed the phone using the first version of the Chinese ROM v2.12 now can use the OTG update option. just need to get a usb adapter now
Which files i need to flash
Steffran said:
re-flashed the phone using the first version of the Chinese ROM v2.12 now can use the OTG update option. just need to get a usb adapter now
Click to expand...
Click to collapse
Can you tell full step and i guess i need system.img also where i can get it ...kindly please help sir ?
https://drive.google.com/drive/folders/16in6Jnyi4s5aIIuQwapQ1KK1LjysSfYm
Here is the link to download required file by an XDA member.
But before you flash system image first try with the boot img and recovery img.
I was to getting the message that i cant flash so used the command for oem unlock which reset the counter to 1
After which did flashing of boot .img and then recovery.img
If issue the use the falshboot flashing unlock.
This were the steps used by me to recovery, i didnot do any other flashing.
Hope this helps you
Edit: After the oem unlock command directly try to flash boot and then recovery and then if required flashing unlock command.
its still saying your device is corrupt ...anyone can help me
rajnathr said:
https://drive.google.com/drive/folders/16in6Jnyi4s5aIIuQwapQ1KK1LjysSfYm
Here is the link to download required file by an XDA member.
But before you flash system image first try with the boot img and recovery img.
I was to getting the message that i cant flash so used the command for oem unlock which reset the counter to 1
After which did flashing of boot .img and then recovery.img
If issue the use the falshboot flashing unlock.
This were the steps used by me to recovery, i didnot do any other flashing.
Hope this helps you
Edit: After the oem unlock command directly try to flash boot and then recovery and then if required flashing unlock command.
Click to expand...
Click to collapse
its not booting after doing that please help me if possible can we talk in discord
using cm
fastboot oem nubia_unlock NUBIA_NX629J
fastboot -w
reboot phone done
after this
nil3m1 said:
using cm
fastboot oem nubia_unlock NUBIA_NX629J
fastboot -w
reboot phone done
Click to expand...
Click to collapse
after this i need to flash boot and recovery img ?