yashsingh1/xdaforums huggingface dataset:
[ONE General] spikeydextro:
help me

please i have flashed my opo but the boot loader is locked so the flash didnt complete but failed so how do i unlock the boot loader

---------- Post added at 09:36 PM ---------- Previous post was at 09:27 PM ----------

please i have flashed my opo but the boot loader is locked so the flash didnt complete but failed so how do i unlock the boot loader.my phone cannot boot. please help me. this is my email spikeydextro@gmail.com
[ONE General] moneplusone:
Download links are down

Please reupload. I really need to reset my phone :)
[ONE General] asmerito:
Download link is not working. Does anyone have working files?
[ONE General] EddyOS:
I had no idea this was a sticky thread! I deleted the links ages ago and haven't really been here in months...if anyone has the files elsewhere let me now and I'll update the OP

My bad!

EDIT: Found the thread by [MENTION=2948558]Spannaa[/MENTION] so will re-do the ZNH2KAS3P0 build and post later on
[ONE General] EddyOS:
Just finishing the files, uploading shortly. Hopefully they work!
[ONE General] EddyOS:
OP updated with the last CM13 files as per the original OP. Hopefully the flash-all scripts work but bear in mind I've not done this in months! Worst case, the files are there so you can flash them all manually if required.
[ONE General] vg12345:
Bro seriously I was very frustated because i messed up with my opo but your zip works great for me i just do that as you said and miracle is happened to my opo and it boots up in right condition in which is flawless ...... :o:o:o:o:o:o:cyclops::highfive::good:

Thanks A Lot Bro
[ONE General] sharma.kiran356:
hi,

my 1+1 was running perfectly on march 11th build. about 5-6 days ago i had updated few apps from playstore, after that my phone started going off whenever i opened google maps, drive & whatsapp. so i stopped using those apps but about 2 days ago it went off during call & since then its not getting ON. i tried to recover it as i was able to boot in fastboot but it failed. i flashed color os too or recovery purpose but its not working.

now i am stuck at oneplus one boot logo, it doesn't go beyond that. now unable to go to TWRP even after flashing latest TWRP recovery via fastboot.

is there any chance i will be able to start my phone again ?
[ONE General] cellfonepimp:
Tried this hoping it would fix a no service issue Im having with this OPO and it didnt. Im posting this just in case others want to try it that are having the same issue.
[ONE General] ireaper4592:
is there anyway toflashthis stock rom as a normal rom as i accidently deleted my stock firmware backup?
[ONE General] Pack Leader:
It's now May. Where are the links?
[ONE General] Spannaa:
[MENTION=2258271]EddyOS[/MENTION] updated the links In post #1 on March 14th and they both work fine for me.
[ONE General] POCKATA:
There is no "userdata_64G.img" file in the 64GB archive. There was a file "userdata.img" in it (and Yes I did download the correct one). So I flashed that one and it worked. Can we please update the article for clarity and to avoid confusion. Thank you!
[ONE General] Harmonaz:
Thank you

Made an account to thank you!!

Bought my OPO all those years ago, and the first thing I did was follow the instructions in a thread I found on the OP forums to install the Mahdi ROM. I know nothing about these things, but the instructions were pretty easy to follow and after an hour or so I had a OPO that I loved to bits and used very happily up until a few months ago. Maybe it was due to the fact that the ROM never got updated, but basically the phone would randomly restart, get into boot loops, refuse to open certain apps etc etc.

Being the noob that I am, I had no idea or the courage to try and install a more up to date custom ROM. Then I decided that I don't need root or anything - I'd just be happy to go back to stock and be able to use apps again.

Even that appeared to be a daunting task based on the search results I would get when trying to figure out how to restore my phone back from that weird state.

Anyway, I'll spare any further details and just say that your script and instructions have worked a charm and I can now use my phone like a OPO again :laugh:

Looking forward to going home and playing with my OPO again.

Thank you so much :good:
[ONE General] EddyOS:
Do you mean the filename is userdata.img in both but the script in the 64GB one is looking for userdata_64G.img?
[ONE General] POCKATA:
Yes, that is exactly what I mean. When I flashed it it still shows 64GB so its ok :). I did not use a script, I flashed them manually one by one.
[ONE General] EddyOS:
Thanks for letting me know, I'll sort them out this evening if I have time
[ONE General] camdadeye291:
thanks [MENTION=2258271]EddyOS[/MENTION], worked a charm! Thumbs up :good:
[ONE General] shawn.kanan:
Can I do this on a TMobile OnePlus 6t that is similar unlocked and bootloader unlocked.
[ONE General] Spannaa:
No, OnePlus have never provided fastboot images for any devices that run Oxygen OS.

The OnePlus One images were from Cyanogen.
[ONE General] KuldeepShivankar:
Hello, i was on Android Pie rom and yesterday my phone's battery got low and then phone shutdown. After charging it to 100% my phone is not booting up. Actually my power button is damaged so i cannot press it properly. But i think my phone is bricked. I've Fastboot installed on my laptop but as i told you i cannot boot into recovery or Fastboot because of power button issue. So can i executive flash all.bat command without going into Fastboot mode?
[ONE General] jayeshwpatil:
thanks . its working properly

THANKS once again, its really helpful........ :)
[ONE General] markitosd:
Recently, my phone was going back to charging screen during the bootanimation. Flashed this but it's still in the same condition, has this happened to anybody else? Thanks
[ONE General] KuldeepShivankar:
Change your battery. I faced the same issue and after changing battery the issue is gone completely.
[ONE General] MountainHigh:
Where to find one plus one battery?
[ONE General] KuldeepShivankar:
I ordered it from aliexpress battery backup is good. It's been almost a year now and still working good.
[ONE General] linggeaskrish:
SIM detected but no service

Wifi and Bluetooth seem to work. Tried multiple SIM cards from other providers, did not work.

I've tried flashing the the EFS I backed up in 2017 when I got the phone but to no avail. Current baseband is D1.3.0.c6-00241-M8974AAAAANAZM-1. I wish to eventually flash lineageos 17.1. Any help is much appreciated
[ONE General] tarataika77:
Problem while fastboot flash boot boot.img

Please help. I'm stuck at this step. My phone stays only on recovery mode. I've tried also with " boot_a boot.img" / "boot__a boot.img" but no success.

[IMG="Error"]https://drive.google.com/file/d/1j73RAS2mVuQ2Znz1Lv9qg4MpOfj24YEq/view?usp=sharing[/IMG]
[ONE General] SpyroDaddy:
Stock Recovery

Download OnePlusOne tool.

Extract the stock recovery zip into where your tool.exe is.

Step 1: Make sure debugging is on.

Step 2: Power off and unplug USB.

Step 3: fastboot..volume up and power button together.

Step 4:plug in usb and run flash.bat file in you tool folder.

Step 5: Be patient and let it do its thing. It might take 30min or so.

Step 6: Then follow the steps to lock the bootloader.

For me....i didnt have to lock or disable. After it was done i just powered off my phone and pressed volume down and power button and it accessed the stock version of recovery mod.
[ONE General] ze7zez:
What recovery, stock or twrp?

If twrp, you have great possibilities to repair partitions in your twrp terminal with the added "parted" application.

Have you modified any partitions on your OPO?
[ONE General] deathblade:
So i just tried this and I got the following error when flashing the boot.img

fastboot: error: Couldn't parse partition size '0x'.

Any ideas?

EDIT: I found the solution instead of running

fastboot flash boot boot.img

I had to run

fastboot flash:raw boot boot.img
[ONE General] r8zer:
Another person ha this issue. I think try the bit unlock thread. Also try flashing the boot.IMG with flashify.

http://xdaforums.com/showthread.php?t=2820912

Have a read of that see if that helps.
[ONE General] bubblebuddyi:
I failed to flash using the .bat file, it stopped responding towards the last step. So I flashed each IMG manually, and got stuck on the userdata.img for the 64G file, it says the partition table doesn't exist. Any ideas?

Edit:

I was able to update to the latest version via system updates, and then I Factory Reset. All appears to be OK for now.
[ONE General] EddyOS:
33R factory images are up on the Cyan Inc. page but I'm on holiday for two weeks so won't be able to get the repackaged images up until I'm back. You can get the factory images here if you need them:

https://cyngn.com/products/oneplusone/
[ONE General] esofron:
i tried to flash it and got the following.

now does not boot to system os.

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

failed to allocate 793461488 bytes

error: update package missing system.img

any help?

Ok solved it. downloaded the official 25R and did an dab side load as i had the stock recovery.
[ONE General] J0ker 82:
So guys this is my problem. i have a OPO "unlocked" and rooted through Toolkit by manudroid19.

I decided to relock bootloader and go back to stock but here is the problem. I CAN'T.

I tried with the same toolkit and it wont let me. Then i tried through ADB and when i try to flash it says "Device not unlocked cannot flash or erase" so i tried to launch adb command "fastboot oem unlock". My phone rebooted in recovery but when i retry to go back to stock with the toolkit it says again "device not unlocked cannot flash or erase".

I hope someone can help me because i'm stuck on this situation
[ONE General] J0ker 82:
SOLVED!

I unlocked properly bootloader using the toolkit and the 2nd method. Then i locked everything.
[ONE General] Knight-Rider:
I don't understand how several people are having problems going back to stock. I was on 33R and went back to 25R with no issues. I used this page and the tamper bit reset page (Had to flash the tamper bit 4 times until it said false) to get back to stock again no issues. Everything now says false, did everything via command prompt (I don't use tool kits for the same reason they ain't 100% reliable) with no issues and it took me maybe 10-15 minutes from start to finish.
[ONE General] MATRIKS:
Hey Eddy

Can you update to 33R
[ONE General] dayanandgp:
Worked like a charm :)
[ONE General] jdfeos:
Hi,

The lock bootloader/tamper, is a bit confusing, could you please update the initial post with proper guide?

The original link you put up it a confusing mess :\
[ONE General] gigikobi:
I done steps 1 to 3 and it works for me

Thank you very muck for this excellent guide.

I done step 1 to 3, and now the phone seems to be worked well.

Do I need to do step 4 - Reset the tamper flag/lock the bootloader?

Kobi
[ONE General] EddyOS:
See my post a few up from yours, I'm on holiday but will when I'm home :)
[ONE General] jdfeos:
Could please explain better point 4.? The original thread is a bit confusing!

And thank you for having the time to do this and help us. :good:
[ONE General] OPOmaniac:
Thank you so much! Great!
[ONE General] immensemorbid:
Lets say I'm not going to RMA my OPO or sell it, Say I'm running a custom rom and a custom kernel. But I want to get my device back to stock CM rom and CM kernel. But i'd like the bootloader to remain unlocked and i'd like my phone to continue be rooted. Does this method apply? What about data? Would I loose data?

Note:

// I've a nandroid backup of my phone while running on cm on the twrp recovery. will restoring the backup from there would do it? Or do i still need to use this (your) method.

//or is there a way to just flash the stock cm rom using twrp recovery without using adb?

//or will just using a toolkit would suffice? I see many toolkits comes with 25r while the most recent is 33r

Many many thanks from this noob :):)
[ONE General] Heisenberg:
Just get a flashable zip of CM11S and flash it through TWRP. Job done. You'll lose apps and settings because a wipe would be required, but you won't lose anything on your virtual sd.

Transmitted via Bacon
[ONE General] immensemorbid:
Not sure whether I haven't been looking hard enough or not, but I can't seem to find CM11S flashable zip :D

But thanks [MENTION=4153349]timmaaa[/MENTION]
[ONE General] Heisenberg:
Click the link to my index thread in my signature, there's a link to a stock images thread in the Stock Images section of the index.

Transmitted via Bacon
[ONE General] Micheal1122:
Before flashing 33R, do you recommend 2 things using TWRP........1. A Factory reset, 2. Advanced Wipe > checking all 5.......that includes Internal Storage.

I know that using this route would lose TWRP but that can be re flashed later, but shall clear all the apps and junk in the OPO?

I tried this with 30 OR but get WiFi errors........any ideas why.....is a Factory reset the issue?

Thanks.
[ONE General] ikaroweb:
Thanks! ;)
[ONE General] sharingspider:
Aha
[ONE General] EddyOS:
OP updated to 33R builds, sorry they took so long! :D
[ONE General] sn809:
Thanks.
[ONE General] snwbrd:
Nevermind
[ONE General] ilpolpi65:
sudo: ./flash-all.sh: command not found

..
[ONE General] EddyOS:
Which package?
[ONE General] ilpolpi65:
33R 64gb

---------- Post added at 07:09 PM ---------- Previous post was at 07:08 PM ----------

with windows 7 instead looks ok
[ONE General] pham818:
whyd you sell ur OPO
[ONE General] EddyOS:
On the 25R 4.4.2 build I was having all sorts of issues, plus an app I use didn't work as it detected the root access of CM11S even with it disabled so I sold it BUT I've another coming soon so will give it another go. Hardware-wise it's a beast! :D
[ONE General] rizzino:
Thanks..
[ONE General] EddyOS:
Just for completion I uploaded the 22R build should anyone want/need it
[ONE General] xbenbox:
archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

What is the function of these lines?
[ONE General] EddyOS:
Dunno, happens with the Nexus 5 factory images too. Probably just a check that's in the script
[ONE General] xbenbox:
oh okay so those are just normally there and don't affect anything during the flash?
[ONE General] EddyOS:
No, cause they're not in the package in the first place. It'll only flash the package as I've posted it :)
[ONE General] xbenbox:
Well, that definitely makes sense. And one more thing ... I have two phones that arrived in different states. One came already in 25R and the other came in 33R. When i restored the 33R to 25R and uploaded the same titanium backup files to both, they still had some slight differences including font size and a few options in the settings. I guess the question here is ... how does this occur if they are both in the 25R image? I later updated both to 33R and then flashed back to 25R, and then noticed that they were finally similar in font size. Sorry for the long post, but let me know if you can! Thanks!
[ONE General] ilpolpi65:
I discovered it : sudo chmod +x flash-all.sh

OK

;)
[ONE General] saikm:
thank you very much for this guide
[ONE General] dshomoye:
FAILED (remote: data too large)

I know this is probably not something you wanna deal with but;

I tried running the script on my laptop (Linux) and I get a FAILED (remote: data too large) error when sending system (screen shot attached):eek::eek::eek: Any ideas how to fix this?

I had to reflash twrp and restore a backup I had on my phone but the problem is that I cant install apps on the rom because of some error ( which is why I'm trying to flash stock image)

Thanks for the post tho!
[ONE General] ilpolpi65:
Same error me too with Ubuntu
[ONE General] SBarbera:
thank you for this guide :good:
[ONE General] EddyOS:
From what I've read elsewhere this happens if you don't have the latest SDK files on your PC so make sure you've used the SDK Manager to update the adb/fastboot files and drivers
[ONE General] black_rifle:
I had the same issue last night, so I copied all the .img files to the adb/fastboot directory, and manually flashed each partition via 'fastboot flash recovery recovery.img' and so on. That worked just fine. Since userdata.img wasn't backed up, there's no need to flash it.

I'm still curious why 'fastboot flash -w <zip filename>.zip' insists it can't find the .img files even though they're in the archive. It worked for other people I assume, so why doesn't it work for all?
[ONE General] asmartkid:
Stuck "writing system" in fastboot mode

HELP!!

I've tried following this guide to revert to stock, but after running flash-all.bat, it's all stuck while "writing system".. what can I do?? :crying:
[ONE General] AddisG:
This works great. Thanks!
[ONE General] ilpolpi65:
Still stuck ?
[ONE General] big_pulse:
[SOLVED] Remote: DATA too large

The problem is with your fastboot binaries. Doesn't seem to support sending such a large img file. I posted the latest ones here.

https://drive.google.com/file/d/0B8_eUAuJp8TTR05iQ0wwU05TS3M/edit?usp=sharing

Just use these and you should be fine.
[ONE General] EddyOS:
Or just use the SDK Manager to update them directly from Google :)
[ONE General] EddyOS:
Just got my new OPO and it was on 22R. I used my 64GB 33R package and it flashed without issues so as long as you have your SDK up to date you'll have no issues :)
[ONE General] Heisenberg:
You've already posted the exact same thing in the guide thread, double posts aren't allowed.

Transmitted via Bacon
[ONE General] takhawaja:
So I followed almost all the posts about reflashing to factory settings. I have DL the XNPH33r.zip. I can connect to fastboot and I flash everything and it goes through normally. It gets to the point where I just reset the phone by doing the fastboot reboot command. But after doing this my phone keeps looping over and over. I have tried what I can. I had the device rooted and worked fine had a custom ROM for a while and I did a clean install of the Madhi ROM update and then it never booted back so now I am stuck with the screen rebooting over and over. I am pretty knowledgeable rooting phones but I never had this occur. Can anyone please let me know what I need to do ? Thank you
[ONE General] Nysaan:
I had the same problems for 3 hours..

You won't belive it but.. I changed the USB port and it started to work..
[ONE General] ilpolpi65:
I confirm it :change USB port it solves the problem
[ONE General] mohdizwan:
Thanks a lot..
[ONE General] LuqmaanMathee:
Hey can somebody please explain why 16 and 64GB have different images?
[ONE General] EddyOS:
Because there's two phones. If you flash the 16GB version on the 64GB phone it'll turn it into the 16GB version. Pretty obvious really
[ONE General] hughfollett:
Hey, how do you find your new 1+1? :)
[ONE General] EddyOS:
A LOT better now it's on 33R, and adding Franco's kernel to sort out the touchscreen has made it sweet. Once the new OTA is out I'll give it a proper go cause they should've fixed most things by then...

But I'm kinda already bored, and not just with the OPO but with Android in general. Might be time for a (drastic) change...
[ONE General] nsqrd2:
Having Issues!

Hi everyone,

I'm having issues w/ this. I've tried following the directions closely, but everytime I get:

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

--------------------------------------------

Bootloader Version...:

Baseband Version.....:

Serial Number........: [my serial number]

--------------------------------------------

checking product...

OKAY [ 0.003s]

sending 'boot' (5560 KB)...

OKAY [ 0.177s]

writing 'boot'...

OKAY [ 0.094s]

sending 'recovery' (7412 KB)...

OKAY [ 0.237s]

writing 'recovery'...

OKAY [ 0.144s]

erasing 'system'...

OKAY [ 0.254s]

sending 'system' (774540 KB)...

FAILED (remote: data too large)

finished. total time: 0.926s

I'm using Mac OS X, if that makes a difference. Can you please help me?
[ONE General] eshoxx1982:
Other question:

Can´t I just replace the files from the CM folder insinde the toolbox, with the ones from the current version (stock zip from OPO) and the hit "flash CMXN..." ?
[ONE General] ilpolpi65:
From the site only fastboot commands
[ONE General] gegoo2oL:
error: update package missing system.img

I had that issue to, updated adb/fastboot from adt-bundle-linux-x86_64-20140702.zip

now i get:

fastboot -w update cm-11.0-XNPH33R-bacon-signed-fastboot.zip

target reported max download size of 536870912 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

error: update package missing system.img

read the whole thread, but that wasn't yet.

I unziped/zip the file, but that doesn't help.

Did a factory reset and all I could find in the thread.

---

Why do it? Enabled encryption on the phone, lost wifi tried this, but at the moment I'm stuck.
[ONE General] gegoo2oL:
askubuntu . com / questions / 363254 / restoring-android-after-ubuntu-touch-fails

fixed it:

fastboot flash boot boot.img

fastboot flash cache cache.img

fastboot flash system system.img

fastboot flash recovery recovery.img

fastboot flash userdata userdata_64G.img

fastboot reboot
[ONE General] Blacksnow91:
Hey !

I had the same problem as you encounter. And basically, we have the same environment (Mac OS, OPO, etc) And errors. To the letter. I read that this problem comes from fastboot which is in a too old version. I grabbed a copy of the official Android SDK WITH the latest version of fastboot inside. I copied it in /usr/bin/ (cp fastboot /usr/bin/fastboot) and restarted the flash_all.sh.

Worked like a charm for me :D

I hope this will help you :)
[ONE General] vividblu2020:
ok i have had a lot of trouble flashing back to stock. two questions. i extracted these files in the "slim version of the sdk" and clicked the bat file. it flashed all and at the end it said "fastboot has stopped working" then it said press any key to continue. so i don't know why it says that. these files went into the platform-tools folder where adb.exe was and fastboot.exe was. i still get a force close. next are these the only files to get full stock? so once i flash all these files using the bat file, it will be running stock? i don't need to do anything else? do i need to wipe everything first in recovery, and then go into fastboot? i would love for some detailed help here. i extracted the 64 gig version to the fastboot and adb folder. or the folder that has the exe files in it. again, when i issue the command for the bat file. it flashes all and at the end it force closes. is there like a recovery zip instead ? a zip i could flash in recovery and be done with it?
[ONE General] Haffa:
Nice guide!
[ONE General] TiggaPwease:
Thank you

This deserves to be sticky thanks a lot =)
[ONE General] mcgrabowski:
As some others have noted, I was also having some trouble using the script (in Linux). Kept falling when I got to sending the system file. Extracted and flashed each individually and it went fine.
[ONE General] EddyOS:
Once the 38R factory images are released I'll update the OP :)
[ONE General] Guti1977:
I have run this fastboot method and it went through. Flashing to version 33R; however my OPO keeps rebooting after that and won't boot. Any ideas?
[ONE General] oxxshadow:
My phone is bricked after this, any ideas? I do not have an OS installed
[ONE General] Guti1977:
Yes, that is pretty much where I am standing right now. :(
[ONE General] mcgrabowski:
Have you guys tried flashing the individual files rather than using the flash all script? Flash all script didn't work for me either but all was fine flashing each of the files individually.

---------- Post added at 12:33 PM ---------- Previous post was at 12:30 PM ----------

For anyone having issues with running the flash all script, extract the zip file with the image files in it and flash then individually in order as shown here. Should fix you up.
[ONE General] Guti1977:
Yep, done that as well. It all goes fine without any errors at all I reboot and still same. I get the OnePlus boot screen and then it reboots.

I can boot fine to stock recovery and I have tried to format from there still nothing.