can't OEM unlock! - OnePlus X Q&A, Help & Troubleshooting

hey everyone. trying to OEM unlock the TWRP bootloader. When I type "fastboot OEM unlock" it will reboot into TWRP bootloader, and nothing unlocks. I know this because when I type "fastboot oem device-info" it says "unlocked FALSE".
I have OEM unlock and USB debugging enabled.
This is a phone with previously successfully installed CM13, and now I'm trying to revert to stock/unrooted. I can't seem to flash the recovery at all here because I can't get the damn thing to unlock.
Any ideas?

Did you lock the bootloader ? If your flashing Roms and custom recoverys imagine its already unlocked. Bootloader won't lock itself. If you want full stock just flash any OS2 firmware with twrp. You can worry about stock recovery after. I would just leave the bootloader unlocked won't hurt anything.

I had the same issue not long ago. Finally, i used the mega unbrick guide, but warning, all the data is lost
Ps: Sorry for bad english

hey, thanks for the response. I have been following the following tutorial (and others similar for installing CM13):
(great, website won't let me post it here... it's the unlockr oneplus x guide)
so yes, I originally flashed the stock recovery and replaced it with the one from the tutorial. There were a few hiccups during setup, which may have affected why I can't easily update nightly now, so now I'm trying to revert to the unrooted stock state so I can try from scratch, hopefully fixing the issues I'm seeing now. The problem is that I can't flash the recovery using the stock recovery... I can't even update the damn recovery because it's locked. Is this what is meant by a 'soft brick' ?

Related

[Q] How to Lock Bootloader After Unlocking Bootloader

I have this PadFone S for over a week, and it's my 5th android device, but certainly the 1st one having a locked bootloader. So far I have read how to flash stock firmware, how to root and unroot, which requires unlocking bootloader first using CrowLock, how to install CWM and CM12 etc. I haven't try anything yet (still uprooted, and my bootloader is still unlocked).
One question still unanswered, is there any way to lock the bootloader after it's unlocked ? Perhaps by using the CrowLock app, or simply flashing stock firmware ? I need to be assured that any changes I do is reversible.
Thanks in advance
I too purchased the Padfone S and have the same question. Also, does anyone know if flashing crowlock will void the warranty of the phone? Can someone who has unlocked their bootloader using crowlock paste the output of "fastboot oem device-info"?
Does Asus' bootloader not check the signature for the recovery partition before booting from recovery? Given that everyone is flashing the recovery after rooting and running crowlock from the recovery, it seems so, but I'm not sure.
Anyone know if the bootloader's source code is available? I know it's based on the littlekernel, but I'm not sure which version it was built from.
Bump! I need the answer too.

Can't switch from stock

I'm really out of ideas to what's causing this so I could use some help.
My tablet has been fine for a long time and has had many roms on it previously. I have been on rooted stock however for over a year now and decided to try a rom again....
However I have tried 3 different roms now all with catastrophic problems. I install them fine through twrp along with gapps then reset Tablet but get a black screen with just a blinking charge light if it's plugged in. No boot logo or anything.
I managed to revert back to stock about 5 times today through flash mode and flash tool but I don't know what's going on.
I rooted, turned on debugging and reflashed twrp but it keeps happening across different android versions too. I thought maybe I had relocked bootloader so I tried to check through adb oem but it freezes, so I ran the unlock command just in case through adb and it was fine but still freezes.
Any ideas?
To add to this I just downloaded a dialer app on stock to check bootloader unlock status.
It says bootloader can be unlocked but nothing about its actual status. I'm more or less certain this is the issue now so can anyone advise what to do? I manually tried unlocking bootloader and it just restarted like everything was fine but nothing changed.
SabertoothTitan said:
To add to this I just downloaded a dialer app on stock to check bootloader unlock status.
It says bootloader can be unlocked but nothing about its actual status. I'm more or less certain this is the issue now so can anyone advise what to do? I manually tried unlocking bootloader and it just restarted like everything was fine but nothing changed.
Click to expand...
Click to collapse
I'm not an expert to be honest but I would try that:
put your tablet in fastboot mode, connect it to your pc and in fastboot type
"fastboot flash boot twrp.img"
Now you should have TWRP.
If this work your bootloader should be unlocked otherwise I think you should see some error in fastboot
Once you have twrp I suggest you to flash resurrection remix 5.7.0 (android 6.0.1). I suggest it just because it worked without problem with my tablet Z.
Something not clear to me: you started just with a rooted stock ROM or you unlocked bootloader, flashed TWRP and then your ROM?
I started with rooted stock rom, I am using dual recovery that seems to be working fine (it was faster since its just a bat file). I originally rooted using kingroot on stock which I used to flash stock rom prerooted with supersu with twrp.
If I try the same process with anything that isn't stock it's black screen on reboot. No Sony logo or anything.
Ive tried changing recovery to newest twrp, changing sd card to a different one, different ROMs including the one you mentioned because that's the one I wanted to try. I also tried with and without black kernel. None made any difference. Black screen boot everytime with just a blinking light on side like its got no OS installed at all.
Just to clarify, my bootloader should be unlocked. I've checked but if I run the adb command to check it just freezes like it's eternally loading. Using dialer go check it doesn't even display anything about it aside from the fact it can be unlocked.
what command do you type? "fastboot oem device-info"?
ok so I have an update, something is definitely messed up with my bootloader.
I tried to relock bootloader from fastboot but its also stuck in a loading cycle for no reason. It seems on some level my bootloader is unlocked because I can flash recoveries fine, but when I come to put a new ROM on the device it won't let me and black screens.
From fastboots I used the commands 'fastboot oem lock' and I just get '...' forever underneath. If I use 'fastboot devices' my device is listed, if I use 'fastboot -i 0x0fce oem unlock 0xbootloadercodehere' it fails the first time, then works the second time and says ok but its clearly done nothing when the device reboots. 'fastboot oem device-info' also leaves me with the '...' on command prompt forever too.
I have no idea what to do if bootloader is screwy at all.
-Pepe said:
what command do you type? "fastboot oem device-info"?
Click to expand...
Click to collapse
Yup that's what I used. I'm pretty sure bootloader is borked somehow though. I tried reinstall from Sony software too which hasn't changed anything.
SabertoothTitan said:
Yup that's what I used. I'm pretty sure bootloader is borked somehow though. I tried reinstall from Sony software too which hasn't changed anything.
Click to expand...
Click to collapse
I just tried with my XTZ and "fastboot oem device-info" just froze, it had 3 dot and nothing else. In my OPO it worked.
I'm gonna search something else...
Whats weird is my tablet also won't install anything on TWRP, I just tried installing SuperSU from it to see if it would work (having to use Kingroot atm) and it just does nothing.
I think this is the issue since I'm factory resetting before installing a ROM, which is therefore wiping my system and when I come to reset because TWRP isn't installing anything its acting like there isn't a system installed.
I can install via ADB fine, just when it comes to recovery... system says no. Its weird because its like its got a locked bootloader or something but even though I reinstalled using Sony software its still the same. If I try unlock bootloader again, I get an error first time then it says OKAY and does nothing.
SabertoothTitan said:
bootloader can be unlocked
Click to expand...
Click to collapse
According to an other post this should mean that your bootloader is locked but can be unlocked via Sony's code. At the same time I've read in the same post (can't find it) that people with unlocked bootloader still have "bootloader can be unlocked" even if they successfully unlocked it...
Unfortunately I can't try it myself because I'm on RR and the code *#*#7378423#*#* (this should be the code you used) doesn't do anything.
I have the code and have used it previously I have also retried it just to make sure.
When I type the dialer code above I get 'bootloader can be unlocked: yes' but nothing mentioning the actual current state of bootloader.
This is what's leading me to think it's a bootloader glitch because all posts I've seen should say 'bootloader unlocked: yes' or 'bootloader unlocked: no'. I get neither.
Been a few days and had no suggestions. Anyone got any ideas at all outside what I have mentioned? Getting pretty desperate because wifi is really bad on stock, getting constant slowdowns and stalls for no reason. I'm gonna end up trying to sell second hand if I can't do anything.
SabertoothTitan said:
Been a few days and had no suggestions. Anyone got any ideas at all outside what I have mentioned? Getting pretty desperate because wifi is really bad on stock, getting constant slowdowns and stalls for no reason. I'm gonna end up trying to sell second hand if I can't do anything.
Click to expand...
Click to collapse
Sorry, I'm out of ideas
The only thing I can tell you is what I did to my XPZ, but I doubt it may help you:
1) Unlock bootloader using Sony's guide
2) XPZ in fastboot mode → from pc "fastboot flash boot twrp.img" (assuming you have the proper TWRP image named twrp in the same folder of fastboot)
3) flashed RR 5.7.0 and Gapps
4) RR change the rocovery to CMrecovery but I "easily" changed back to twrp using a guide under RR thread.

i need help... Can't unlock bootloader - HTC One Max

Hello ! So I got this one max, it suddenly started to bootloop out of no where. So I decided to unlock bootloader and flash a stock rom.
However, after flashing the unlocktoken, the screen on my one max asks if I'm sure I want to proceed, I select yes but the phone just restarts and the phone doesn't unlock.I said to myself maybe if i flash a firmware it will work, i typed "fastboot oem rebootRUU" but the phone just restarted instead of giving me the black screen with grey HTC logo
HTC DEV website is where you need to go and follow on-screen instructions to completely and successfully unlock your bootloader.
For stock rom flashing you don't need to unlock bootloader unless you're planning on Rooting and installing Custom Recovery, at this point it seems that you're stock. You need to either adb a custom recovery and flash a firmware or you're stuck and only need to adb over stock IMG file perhaps or something of the sort. I would recommend googling this and see what you find.
I myself have a problem... I cannot seem to re-lock my bootloader, I have followed every single guide in the entire world... Including Scotty's Guide here on XDA. I even tried to GURU Zip Aroma Installer, didn't work either. It's a waste of time.
Sometimes you get stuck bad. GL

Need help with OEM unlocking and relocking the bootloader

I made a huge mistake and I have no idea how to fix it. Google turned up nothing, so I made this thread.
Previously, I had rooted my Honor 6X. After a week or so I wanted to unroot, so I did. Unfortunately, I messed up. I do not know when, but I did.
I want to flash the stock images to their partitions. The problem is that fastboot can't flash any partitions because OEM unlocking is not allowed. As I understand, the bootloader needs to be relocked to allow OEM unlocking. There the issue begins: to allow OEM unlocking, I need to relock the bootloader and to relock the bootloader, I need to allow OEM unlocking. Until I'm able to fix this, I can't flash the stock images.
For reference, when I'm in fastboot&rescue mode, under the Android it says "PHONE Unlocked" in red text and "FRP Lock" in green text.
Thanks in advance for any advice.

SOLVED : Relock bootloader after return to stock (selling phone)

Have tried to find a definitive answer to this but am unsure.
Ran Lineage for a few weeks and happy but looking at getting another phone (maybe Nokia)....anyway
My question is, now I have gone back to stock and all booting nicely and is not rooted, what would happen if I relock the bootloader. If it's ok to relock is it via adb or just deselect the bootloader option in settings.
Sorry if this has been answered elsehwere. I just can't find the black and white, yes no answer.
Thanks
The answer was yes. I read a lot about bootloops etc but all ok with relock for me.
In case itns of any use here is what I did.
1. Restored to stock by using the post below. Although all I did was flash boot.img, recovery.img and system.img. Let it boot then when System UI crashes hold power which restarts then select restart to stock recovery from the 5 second menu and did a factory reset.
https://forum.xda-developers.com/swift-2/how-to/marmite-wileyfox-ota-nougat-android-7-1-t3654999
2. Relocked bootloader using fastboot oem lock from the link below
https://www.theandroidsoul.com/relock-bootloader-fastboot-android/
3. Stuck phone on ebay!!!!
Possible Silly Question
Do I have to erase the phones data if I re-lock the bootloader? — I suppose I would just have to make a backup, but I'm stuck between not being able to root it and not being able to re-lock the, so far, useless features of the unlocked bootloader.

Categories

Resources