Question help unlocking bootloader - OnePlus Nord N20 5G

ok so i for the life of me cannot figure out what im doing wrong when attempting to unlock bootloader. I have my unlock_code.bin from oneplus, i have my usb debugging and OEM unlock enabled. I adb reboot bootloader, fastboot flash cust-unlock unlock_code.bin and everything seems to work fine. when i fastboot oem unlock though i get FAILED (remote:unknown command) what am i doing wrong? please help me.

I forgot to add my phones info

Nevermind yalll I figured it out. I switched to a linux box and used up to date adb and fastboot after fastboot flash cust-unlock unlock_code.bin the next command was fastboot flashing unlock NOT fastoott oem unlock.
I had a hell of a time figuring out how to unlock bootloader on this phone. Hope this helps someone else out there.

Related

Cannot unlock bootloader again

I have a little isssue with the bootloader...
Sometime ago, i have unlock the bootloader easily, no problems.
But now, i have checked if it is unlocked, and it is no longer
So i have tried to re-unlock it, and fastboot display that's okay and my phone reboot into recovery.
I have rebooted it into bootloader mode, typed "fastboot oem device-info" and nobody is true !
What do you think about this ?
Ps: Sorry for bad english
Okay, calm down.
Go to developer options and see if "OEM Unlocking" is enabled. If not, enable it.
Cool. Now enable USB Debugging, connect the phone to PC, open CMD and type
Code:
adb reboot bootloader
then
Code:
fastboot oem unlock
Download TWRP from the official website, rename it to recovery.img and then
Code:
fastboot flash recovery recovery.img
Now you have a recovery and an unlocked bootloader. Profit?
I hope this helps.
Thanks for your reply, but it doesn't work
I have only my old recovery (who is twrp in is latest version, no problems with that )
But suddenly i wondere if unlocked bootlooder is useful if i have already an recovery
Finally, i have followed the mega unbrick guide.

Bootloader unlock error????

Hey guys, I Need some help, I'm trying to unlock bootloader, but my device doesn't recognize fastboot commands like "fastboot oem get_unlock_data" Or "fastboot oem flashing_unlock", why?
Ps: Motorola drivers ok, usb cable ok, oem unlock and usb debugging ok
Error: FAILED (remote: 'unknown command' )
raffinnga said:
Hey guys, I Need some help, I'm trying to unlock bootloader, but my device doesn't recognize fastboot commands like "fastboot oem get_unlock_data" Or "fastboot oem flashing_unlock", why?
Ps: Motorola drivers ok, usb cable ok, oem unlock and usb debugging ok
Error: FAILED (remote: 'unknown command' )
Click to expand...
Click to collapse
There is a way, but you have to wait for Motorola to make this year's USB drivers available: this is how you enter the adb folder and rename the incone mfastboot to fastboot done this in the control panel Or on powershel you put it
.\fastboot oem get_unlock_data.
This appears on my <waiting for device> even though I installed the drivers But last year, so I think we should expect Motorola to make this year's USB drivers available
I'm having trouble even getting it to prompt for usb debugging authorisation. I'v got adb &fastboot, I've enabled dev options and usb debugging but when I connect it via data cable it doesn't prompt for authorisation.
I am thinking maybe a driver issue but I can't seem to find the drivers anywhere.
Any ideas/help? would be much appreciated.
According to this
https://old.reddit.com/r/androidroot/comments/f6c5k5/unlock_bootloader_moto_e6_plus/fupyalw/
this commnad
fastboot flashing unlock_critical
will unlock. Is this true?
RubenGreg said:
this commnad
fastboot flashing unlock_critical
will unlock. Is this true?
Click to expand...
Click to collapse
short anwer: no
long answer: maybe?
for that i read you might want to proceed with a factory-reset and block any update. in this way, that command will work. honestly i gave a try to it, but nothing changed. the smartphone is pretty good, why the hell did Motorola want to prevent such actions? i don't understand that yet.

How to lock back the bootloader?

After following the unlocking guide i was able to unlocking it without much hassle and crossflash my att v60 to EA. However, my fingerprint scanner does not work. I followed the same guide listed on the bootloader unlocking thread to recover the fingerprint scanner functionality but that didn't work. Reading a bit into the thread I found one of the guys was able to recover fingerprint functionality by relocking the bootloader back.
I've tried with fastboot oem lock and fastboot oem relock and they give me this mssg:
FAILED (remote: 'Unable to open fastboot HAL')
fastboot: error: Command failed
Any solution?
Fastboot oem unlock again. Notification your devices unlocked. After. You write Fastboot oem lock. Done. I need file QCN to help my phone
FC06 said:
After following the unlocking guide i was able to unlocking it without much hassle and crossflash my att v60 to EA. However, my fingerprint scanner does not work. I followed the same guide listed on the bootloader unlocking thread to recover the fingerprint scanner functionality but that didn't work. Reading a bit into the thread I found one of the guys was able to recover fingerprint functionality by relocking the bootloader back.
I've tried with fastboot oem lock and fastboot oem relock and they give me this mssg:
FAILED (remote: 'Unable to open fastboot HAL')
fastboot: error: Command failed
Any solution?
Click to expand...
Click to collapse
Yes i relock success and my fingerprint work

Question Trying to unlock Bootloader

Getting super frustrated!
Using ADB Debuging. Here are my steps.
1. adb devices
2. adb reboot bootloader
3.fastboot devices.
4. fastboot oem unlock
Then I get this...
FAILED (remote: unknown command)
finished. total time: 0.005s
after so many attempts I finally check adb devices and nothing shows up! It's like it automatically disconnects with adb debugging but it does not. Because I am able to to put fastboot reboot.
Can someone please help me with this! Thank you!
Use the fast boot command
Fastboot flashing unlock
Only this works on A12 devices
fastboot flashing unlock
oem unlock has been deprecated for awhile, manufacturers were just slow to implement changes.

Cat s31 oem (bootloader) unlock

first of i apologise if i have bad english
ok so i had this device for some time and decited to root it (my first time rooting a phone). And i need to unlock bootloader to flash stuff and i have all necessary things on my pc (platform tools,drivers,) everything seems to be working but as soon as i get into bootloader the only command that works is "fastboot devices" Any other commands dont work. I tried everything online and this is my only other thing left to do. I've been researching for 2 days at this point and i am almost certain that the commands are disabled by the company itself (like huawei) did anybody else ever root/unlock bootloader for this device because i didnt find any actual root guide for the particular device (besides from the auto generated ones like https://rootguia.com/how-to-flash-caterpillar-cat-s31/ https://mobilewithdrivers.com/unlock-bootloader/cat-s31-16gb-2gb-ram )
The exact error is:
FAILED (remote: 'unknown command')
fastboot: error: Command failed
(and this error is for every single command that uses fastboot besides from fastboot devices. Adb works just fine)
I tried:
reinstalling drivers
installing drivers that are "prepared" for the cat s31
changing cable
changing port to usb 2.0
reinstalling platform tools (from official google site)
checking device manager for the device (it shows up as android bootloader interface)
trying alternative oem unlock commands (fastboot oem unlock, fastboot flashing unlock and 2 other commands that i cant remember rn)
having oem unlocking and usb debugging enabled from the developer options
in my opinion the only explanation is the commands being disabled by default and even if it was it wouldnt be known if it was since most people dont root or purchase this device
please help me out here
fastboot flashing unlock
FAILED (remote: 'unknown command')
fastboot: error: Command failed
or
command finished but unlocking not allowed?
you can try to dump ROM, maybe it's possible to unlock bootloader on devinfo partition
https://github.com/bkerler/edl
aIecxs said:
fastboot flashing unlock
FAILED (remote: 'unknown command')
fastboot: error: Command failed
or
command finished but unlocking not allowed?
you can try to dump ROM, maybe it's possible to unlock bootloader on devinfo partition
https://github.com/bkerler/edl
Click to expand...
Click to collapse
sorry i forgot to mention im running android 8.1 oreo on this device and devinfo partition method will not work according to what i read
Never mind. anyway, if you dump phone in edl mode (or download stock ROM somewhere else) you can search aboot for device specific fastboot oem commands
How to Discover Hidden Fastboot Commands
There are many hidden fastboot commands on your device. In order to find them, we will need to dump the bootloader and examine the contents!
www.xda-developers.com
aIecxs said:
Never mind. anyway, if you dump phone in edl mode (or download stock ROM somewhere else) you can search aboot for device specific fastboot oem commands
How to Discover Hidden Fastboot Commands
There are many hidden fastboot commands on your device. In order to find them, we will need to dump the bootloader and examine the contents!
www.xda-developers.com
Click to expand...
Click to collapse
what do you mean by dump phone into edl mode do i download one of these https://ministryofsolutions.com/2022/01/cat-s31-edl-firmware-android-8-1-official-rom.html and install it from recovery mode and try to get it in edl mode and will it not work if i dont dump
just extract that ROM you found
aIecxs said:
just extract that ROM you found
Click to expand...
Click to collapse
and do what. im new to the rooting stuff
find the file aboot.mbn (or similar) and analyze for fastboot commands
aIecxs said:
find the file aboot.mbn (or similar) and analyze for fastboot command
Click to expand...
Click to collapse
so i downloaded the file and these are the things in the firmware file (attachement)
i cant find a file that looks or resambles aboot.mbn
it's emmc_appsboot.mbn so download strings for windows (see link post #4) and try to find fastboot commands, maybe you are lucky and find the proper command to unlock bootloader.
edit: not sure about Windows 10/11 comes with strings binary (powershell?)
aIecxs said:
it's emmc_appsboot.mbn so download strings for windows (see link post #4) and try to find fastboot commands, maybe you are lucky and find the proper command to unlock bootloader.
edit: not sure about Windows 10/11 comes with strings binary (powershell?)
Click to expand...
Click to collapse
sooo turns out win11 strings commands are kinda different or broken (probably not im just dumb) i just used notepad with ctrl+f and couldnt find anything besides the text that says are you sure you want to unlock bootloader but that is probably not related since i didnt find any commands or anything. So im actually going to attach the emmc_appsboot.mbn i know it looks sketchy you dont have to download it its totally understandable but if you do please do give it a check and respond. I want to get this done one way or another its 1 am i want to sleep ;(
could it be true that they made a truly un unlockable unrootable device
I had a look but there are no fastboot commands in it. However "oem unlock" is mentioned, so the usual fastboot oem unlock should work.
maybe there is more in secondary bootloader sbl1.mbn
aIecxs said:
I had a look but there are no fastboot commands in it. However "oem unlock" is mentioned, so the usual fastboot oem unlock should work.
Click to expand...
Click to collapse
trust me i have tried many many many many times and only got a
FAILED (remote: 'unknown command')
fastboot: error: Command failed
edit: the only place oem unlock is mentioned is a text that says oem unlock not allowed which might be default text by android or whatever but cat devs somehow messed it up somehow??
aIecxs said:
I had a look but there are no fastboot commands in it. However "oem unlock" is mentioned, so the usual fastboot oem unlock should work.
maybe there is more in secondary bootloader sbl1.mbn
Click to expand...
Click to collapse
just saw the edit i will check now
nope nothing related no oem unlock no fastboot no flashing no flash nothing is mentioned ill attach it if you want to look
oem unlock not allowed is standard text if one forgot to enable oem unlocking in developer options in android settings.
maybe flash this ROM maybe it is unlockable?
aIecxs said:
oem unlock not allowed is standard text if one forgot to enable oem unlocking in developer options in android settings.
maybe flash this ROM maybe it is unlockable?
Click to expand...
Click to collapse
from recovery using the flash firmware with adb option??
edit: i meant apply update from adb
edit2: what if i hard reset from recovery would that reset the firmware?
edl firmware cannot flashed from recovery. power off phone, press both volume keys and plug in usb-cable. check VID/PID from windows device manager. if you see device ID (05c6:9008) the phone is in EDL mode. you can now use EDL tool (post #2) and backup current ROM. then you can flash other ROM.
aIecxs said:
It's edl firmware cannot flashed from recovery
Click to expand...
Click to collapse
so what do i download that can be flashed from recovery

Categories

Resources