yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 General] rahul9871:
thanks for the reply, I tried this too but only getting errors all img files are failed

---------- Post added at 01:20 PM ---------- Previous post was at 01:17 PM ----------

C:\Windows\system32>Rem adb reboot-bootloader

C:\Windows\system32>fastboot flash boot boot.img

error: cannot load 'boot.img'

C:\Windows\system32>fastboot flash system system.img

error: cannot load 'system.img'

C:\Windows\system32>rem fastboot erase recovery

C:\Windows\system32>rem fastboot flash recovery unofficial_twrp_2.8.7.0-bacon.im

g

C:\Windows\system32>fastboot flash cache cache.img

error: cannot load 'cache.img'

C:\Windows\system32>fastboot flash modem NON-HLOS.bin

error: cannot load 'NON-HLOS.bin'

C:\Windows\system32>fastboot flash sbl1 sbl1.mbn

error: cannot load 'sbl1.mbn'

C:\Windows\system32>fastboot flash sdi sdi.mbn

error: cannot load 'sdi.mbn'

C:\Windows\system32>fastboot flash pmic pmic.mbn

error: cannot load 'pmic.mbn'

C:\Windows\system32>fastboot flash hyp hyp.mbn

error: cannot load 'hyp.mbn'

C:\Windows\system32>fastboot flash bluetooth BTFM.bin

error: cannot load 'BTFM.bin'

C:\Windows\system32>fastboot flash aboot emmc_appsboot.mbn

error: cannot load 'emmc_appsboot.mbn'

C:\Windows\system32>fastboot flash rpm rpm.mbn

error: cannot load 'rpm.mbn'

C:\Windows\system32>fastboot flash tz tz.mbn

error: cannot load 'tz.mbn'

C:\Windows\system32>fastboot flash LOGO logo.bin

error: cannot load 'logo.bin'

C:\Windows\system32>fastboot flash oem_stanvbk static_nvbk.bin

error: cannot load 'static_nvbk.bin'

C:\Windows\system32>rem fastboot flash userdata userdata_64g.img

C:\Windows\system32>Pause

Press any key to continue . . .

got this error :(
[OnePlus 2 General] LOL9988:
Can any1 mirror the link. Mega doesnt load (The site loads but the loading circe in site keeps loading)
[OnePlus 2 General] dave5777:
Yeah I don't think you're using the correct directory, you should have Android SDK installed http://developer.android.com/sdk/index.html then once you update the sdk tools copy all the files from the fastboot folder of the zip into that folder C:\Users\(your local username)\AppData\Local\Android\sdk\platform-tools.
[OnePlus 2 General] rahul9871:
[MENTION=2924695]dave5777[/MENTION] after copying all extracted files in this platform tools folder what's the next step ? :)
[OnePlus 2 General] dave5777:
Run the flash_Ox211.cmd
[OnePlus 2 General] rahul9871:
For this error again :(
[OnePlus 2 General] rahul9871:
My OPT model number is A2003
[OnePlus 2 General] dave5777:
A2001 (China)

A2003 (EMEA*and*Asia)

A2005 (North America)

The only difference between 2003 and 2005 is the radio I think. Since the OP is from India I assume he has a 2003 but it worked perfect on my 2005.
[OnePlus 2 General] rahul9871:
I have done everything as per the procedure but still didn't boot my phone :(
[OnePlus 2 General] dave5777:
It should work if you have everything setup. Did you run Fastboot devices and see your phone? It could be your driver. You can always do this http://xdaforums.com/oneplus-2/general/oneplus-solution-hard-bricked-device-t3183449
[OnePlus 2 General] rahul9871:
I tried this tool also got no result and after that fastboot continue command is not working.
[OnePlus 2 General] rahul9871:
[MENTION=2924695]dave5777[/MENTION] my device is not showing in ADB device list. How can I solve this ?
[OnePlus 2 General] dave5777:
ADB only works with Android OS fully booted or in recovery if you're stuck in Fastboot mode then you use Fastboot.

(Fastboot devices)

It should return your phones serial if your drivers are configured and you're running Fastboot from the directory that it is located in.

If you're in Fastboot and you can see your phone then you should be able to use Fastboot to flash TWRP then then reboot into recovery and flash the OnePlus2Oxygen_14_OTA_010_all_1511091726.zip
[OnePlus 2 General] rahul9871:
Yes, in fastboot mode it shows my device. Will give a try to this trick also.. Thanks a lot [MENTION=2924695]dave5777[/MENTION]

---------- Post added at 07:21 PM ---------- Previous post was at 06:39 PM ----------

C:\Users\Rahul\Desktop\oneplusroot>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (28144 KB)...

OKAY [ 0.874s]

writing 'recovery'...

FAILED (remote: device is locked. Cannot flash images)

finished. total time: 0.905s

I got this error :(

I think my phone's USB debugging mode is Disabled
[OnePlus 2 General] dave5777:
No worse looks like your bootloader is still locked. You need to research how to unlock it from Fastboot normally you first have to enable OEM unlocking in the developer options since your phone won't boot you have to find a work around. I remember reading others in xda fixing it.

Read this thread on how to fix your issue http://xdaforums.com/oneplus-2/general/oneplus-solution-hard-bricked-device-t3183449/page3
[OnePlus 2 General] rahul9871:
I think its time to go at Service Center . still I will try to fine some more solution on this issue. Thanks once again :)
[OnePlus 2 General] dave5777:
Your welcome, here's another thread https://forums.oneplus.net/threads/locked-bootloader-fastboot-oem-unlock-not-working.172085/
[OnePlus 2 General] rahul9871:
Finally solved my problem by using Lord Boeffla's modified recovery tool. Successfully booted into TWRP and then I flashed H2OS ver12. Happy now :) Thanks a lot
[OnePlus 2 General] fernandoper:
i have a question

how is the command to flash the recovery from the mac Os

tks
[OnePlus 2 General] vergilbt:
./fastboot flash recovery your_recovery.img
[OnePlus 2 General] demongokul:
Noob question. OP says run batch file but how to run the batch file?
[OnePlus 2 General] btuck812:
How did you solve it???
[OnePlus 2 General] r.pass:
how did u solve it? i have the same problem
[OnePlus 2 General] SmashBrother:
Does this method also restore the original stock recovery?

I'm having this issue where when I try to boot into recovery, it just skips it and just boots normally. So I figure my TWRP recovery is corrupt in some way or something went wrong somewhere so I go and try to flash OP2 stock recovery using the command line and it gives me errors.

On my Nexus I'd just solve any type of problem by erasing everything (recovery, system, cache, userdata, etc) using fastboot and just "fastboot flash" everything and this has never failed in fixing any kind of glitchy behavior on my Nexus phone. With my OP2 it doesn't seem like this procedure is 100% applicable. I've read that OP2 doesn't really have a flashable system image and all the stuff I've read online make it seem like "factory resets" only consist of reflashing the Oxygen ROM only but no complete reset on a high system level like I usually do on the Nexus.
[OnePlus 2 General] yanowman:
Could you post the tool here

---------- Post added at 02:22 PM ---------- Previous post was at 02:21 PM ----------

I also don't know. Wish the OP was a little bit clearer for ppl that don't do ANY command line commands.
[OnePlus 2 General] demongokul:
Gotta run that in Windows, I was trying to run that with Fedora.
[OnePlus 2 General] desire.gk:
Very Nice

[MENTION=5641921]Naman Bhalla[/MENTION] Thanx a Lot :good:

My problem was that I tried to flash the new released OOS 3.0 ROM without modified TWRP. System ran fine, but when i restarted for the first time my OP2 keep stuck in ist bootloop and nothing happened anymore until phone got warm. I couldn't even enter any Recovery (I tried 3 at all)

The only thing that helped was flashing this file and then I could even restore my Nandroid Backup, that I made before.

Kept my scared for about 6 hours :crying:

Thanks so much
[OnePlus 2 General] poal98:
Hey guys,

I just bought a oneplus 2 from internet...Unfortunately in the phone there is the cm13 installed(because i took it used from another person) so i wanna return it to completely stock...Should I only open the file batch and nothing else?

Or Do I have to do something else(like maybe unlock something like the bootloader)?
[OnePlus 2 General] ajrulez:
Possible to have a .sh file for Mac? I had to launch my Parallels and install Windows to perform these steps. I reckon .cmd can be easily converted to .sh as the fastboot commands are platform agnostic. Am I right? If not, can you advise on the changes please. Thanks
[OnePlus 2 General] lexxx84:
Thanks Naman, this helped me out when I needed a quick reset back to factory settings from a softbrick OP2 which could only enter fastboot mode :good:

This is what happens when you're a flashaholic and keep changing between OOS3beta/CM13/OOS2.1.2, mistakes are bound to happen :o
[OnePlus 2 General] megatpanji:
Anyone knows what this error?what should i do...flash something?
[OnePlus 2 General] LOL9988:
LOL when I ran that batch file. It again booted into RR ROM. Not booted but bootlooping. Strange. Any solution?

I found the error: load_file: could not allocate -1610776576 bytes

error: cannot load 'system.img'

EDIT- There is no problem with my phone. I just want to return to oxygen OS to check my FP sensor. My FP sensor isnt working since a month. So I need to check if it works if I downgrade. I want to wipe all partitions
[OnePlus 2 General] seaman8tor90:
bricked op2

I had this message too, how did you overcome this? Many thanks Zac
[OnePlus 2 General] RakeshRaja:
I cant make this work.. it says remote device is locked.. cannot flash.
[OnePlus 2 General] fortunat0:
anyone can send me the bat file, flash_Ox211 ?
[OnePlus 2 General] VxIA0NGXXV:
the site is down help pls
[OnePlus 2 General] Theevilsocks:
No luck on my end.

1. Can't boot into recovery

2. Can't boot normally

3. USB debugging disabled

4. oem locked

Happened when I was updating twrp:

I downloaded the .img from their website, booted into my older version of twrp, went to flashing pressed the butting in the bottom right corner, selected the file and selected 'recovery'

Said it was successful, so I rebooted, then it wouldn't do anything anymore except for fastboot.
[OnePlus 2 General] mrbubba999:
the 2nd link isn't available anymore
[OnePlus 2 General] sanjibjoshi:
How did you solve it??

It still shows device is locked to me..

Please helpppp
[OnePlus 2 General] Subham:
wow this is awesome for me n my friend who soft bricked his device
[OnePlus 2 General] pathtologos:
I am fully functional on a custom rom, with bootloader unlocked, running twrp. If I just wanna restore to stock for re-sale/return, is this method still working? I see that the OP is dated like October 2015.

Thanks in advance!
[OnePlus 2 General] nick.ruler:
If you're looking to reset for resale I wougd suggest this method

http://xdaforums.com/oneplus-2/general/guide-official-op2-stock-reset-to-oos-3-t3402020
[OnePlus 2 General] pathtologos:
Thanks. With regard to tamper reset, is it ok to do that (it says to do it BEFORE anything) with the bootloader unlocked?
[OnePlus 2 General] nick.ruler:
I haven't tried the tamper reset part. So I can't answer you on that.
[OnePlus 2 General] famick2004:
Unable to download this file - https://www.androidfilehost.com/?fid=2405280434783330

i am unable to download the file from - https://www.androidfilehost.com/?fid=24052804347833307, PLEASE HELP!!!
[OnePlus 2 General] Spannaa:
There are three unofficial fastboot zips containing all of the images needed here ;)
[OnePlus 2 General] famick2004:
Device not detected when on fastboot :( HELP!!

Thanks very much [MENTION=2948558]Spannaa[/MENTION] but while running the batch file, am getting <Waiting for device>

Can you help me?
[OnePlus 2 General] Spannaa:
Not without a lot more info...

Start with the full output from the command window when you run the batch file.

I also need to know if you commented out any lines in the batch file.
[OnePlus 2 General] famick2004:
I just ran the batch file

Appreciate you responding to me on this issue.

History behind this problem - I downloaded OOS to lower version because I was unable to flash TWRP, it flashed but never got TWRP. I tried various troubleshooting steps from XDA and OP forums. for some reason am unable to get out of the boot loop. I assume we should not downgrade the OS, hence this issues.
[OnePlus 2 General] Spannaa:
You didn't answer the questions I asked!

Downgrading by flashing zips will only work if you downgrade TWRP & the bootloader at the same time and wipe data too - it's far easier to use the fastboot zips which wipe everything and give you a clean start.

Flashing random stuff without knowing what you're doing will usually end up causing problems.
[OnePlus 2 General] famick2004:
Pardon me my friend, I quite did not understand your question. I downgraded through official OOS OTA from one plus site

---------- Post added at 04:53 PM ---------- Previous post was at 04:51 PM ----------

And moreover the initial challenge was that I was unable to flash twrp, it says completed but when I go to recovery it's just stock one plus recovery
[OnePlus 2 General] Spannaa:
Your initial post said that while you were running the batch file, you got <Waiting for device> and I asked you for the full output from the command window when you ran the batch file.

Not being able to fastboot flash TWRP could be due to you attempting to flash the wrong version for your rom or (more likely) not booting directly into TWRP after fastboot flashing it.

All the info you need has been posted numerous times in these forums and can easily be found if you spend a little time searching and reading.
[OnePlus 2 General] famick2004:
The whole idea of running the batch file was to get rid of the boot loop.

To ur second query, I unlocked the bootloader and then as usual, fastboot and tried flashing the TWRP version for OP2 from teamwin website. Now it flashed however it did not work as it always went to stock recovery. Then I followed few other posts, nothing worked. One of them from OP forums said, downgrade OOS from 3x to 2x then it will fix the issue and can flash the TWRP. But since I downgraded my op2 went into boot loop.
[OnePlus 2 General] Spannaa:
OOS2 & OOS3 need different versions of TWRP as their bootloaders are different.

If you fastboot flash the correct version of TWRP and then boot directly into TWRP by holding down the power & volume down buttons at the same time, TWRP should 'stick'.

As I said, search and read - the answers are all here to be found!

I'm out...
[OnePlus 2 General] famick2004:
OOS3, I used the right version of TWRP but it did not stick. Thanks for your time. I really appreciate it.
[OnePlus 2 General] brianfernandez:
I've been messing around with sparse converter for hours it was so simple in the end, thank you!
[OnePlus 2 General] D@R$H@N..:
i m facing the same problem need help...plz
[OnePlus 2 General] Spannaa:
What problem?

No info = no help!
[OnePlus 2 General] D@R$H@N..:
by same problem i mean the after running the batch file there is a msg saying Remote: device is Locked. Cannot Flash images
[OnePlus 2 General] Spannaa:
Which means you can't use this method because the batch file uses fastboot commands to flash the individual images and your bootloader needs to be unlocked for this.
[OnePlus 2 General] amomp3:
Hello, i think that the last official thing my a2005 had was OOS 3.0.2, then i was moving from blissROM to archidroid to Exodus to Tipsy (Slim Based). When i finally decided to move out from Tipsy to Benschholds crDroid the signal problem came up. I decided to do this in Brazil (i'm from Argentina, my SIM card is from Argentina and the Roaming is active, when i arrived Brazil i was on MM Tipsy and signal was OK). So the problem is not only signal drop as i can't even get signal!

Now that i think i don't recall if the problem came out when i tested Benschholds crDroid 7.1.1 OR FreedomOS (OOS 3.1.0 based WHICH deleted a directory named 0 that used to stick between flashs but i don't know what happened this time, where i saved all my prevous working roms, gapps, titaniumbackup directory !! DAMN!!)...

In the middle i tried flashin an AOKP 7.1.1 rom that seemed to fix the non getting signal problem but then the proble reapeared... So...

Well now i'm back on Slim Based MM Tipsy ROM (unlocked bootloader ) but i think the new modem has been flashed with one of all of that previous flashing and im with no signal...

So... what should i do ?

From everything i have read my conclusion is that the method in the OP should solve my not getting signal problem but i am asking anyway because a loose imei problem is also threatening...

Sorry for the extension but there is a lot of stuff to consider and the helpers always asks for detailed info...

Thanks !
[OnePlus 2 General] Spannaa:
So much random flashing!

I'd wipe system, data & caches, flash OOS 3.5.6 and start again...
[OnePlus 2 General] amomp3:
so i will select all partitions in wipe except sdcard and simply flash OOS 3.5.6 zip ?

as simple as that ?

no emei risk ?

that will result in stock OOS 3.5.6 unrooted with stock recovery ?

i do that from fastboot or from twrp 3.0.2-2 ?

where do i get the file(s) i need ?

should i follow the steps or info from a post that i didn't find yet ?

could you please adress a little more for me to start ?

i don't consider me a noob but maybe a bit distracted, so i dont want to mess deeper...

Sorry for my english, Thank YOU !
[OnePlus 2 General] Spannaa:
Yes, as simple as wiping everything except internal storage and flashing the zip via TWRP.

You can find the rom zip in the Oxygen rom mirrors thread.
[OnePlus 2 General] amomp3:
Thank You, I've found it.

Did it from my previously used for random flashing a lot of zips before TWRP 3.0.2-2, pressed the reboot system button offered right after flash finished OK...

Stuck on 1+ logo right now...

do i interrupt, try again ?

EDIT: Right after sending the message it started to boot (took like 8 minutes !).

Got a message saying:

Encryption unsuccessful

Your phone storage has been damaged, please download the firmware package to brush.

It apears that some part of OS is loaded because when i change the volume the android styled indicator bar and the settings gear appears but nothing happens when i tap it.

The i entered TWRP to erase data (again because im sure had checked it) and it says (in red):

Could not mount /data and unable to find crypto footer.

Failed to mount '/data' (Stale NFS file handle).

Unable to mount storage

When i go to Wipe / Repair File System selecting Data partition it shows me:

Present: Yes

Removable: No

Size 0MB

Used: 0MB

Free: 0MB

Backup Size: 0MB

When I select Internal Storage and tap Repair ir Change File System it says: Invalid partition selection (in red).

DAAAMMMNNN !!! Now it seems i have lost all the files that i had on the sdcard including the OOS 3.5.6 zip file !

I swear I never activated encryption or nothing like that !!

I ONLY FLASHED 3.5.6 ZIP AS ADVICED !!

WTF !!

Finally booted but i had to format data loosing everithing...

So now i'm on OOS 3.5.6 BUT THE PHONE STILL DOESN'T GET CARRIER SIGNAL

PLEASE HELP !
[OnePlus 2 General] amomp3:
Can I flash backwards ?

Can i simply reboot in recovery, wipe all and flash Oxygen OS 3.0.2: OnePlus2Oxygen_14_OTA_019_all_1606041303.zip ?

Or do i have to flash another thing before ?

I want signal !
[OnePlus 2 General] Spannaa:
The "Encryption unsuccessful" message means that encryption was enabled before you flashed the rom zip.

"Your phone storage has been damaged, please download the firmware package to brush." means the data portion was damaged because of this. Brush should read flash - are you using Google translate?

You then attempted to repair internal storage which would wipe your internal sd.

Not sure what's happened with your signal - you've done so much random flashing and wiping with encryption enabled it's hard to tell.

I don't think trying to flash an earlier version of OOS 3 will help now, you should probably try using the Qualcomm recovery package to completely reset your phone.
[OnePlus 2 General] amomp3:
I repeat, I have never ever encrypted my phone in any way. Couldn't it mean that OOS don't understand something and acts as if the phone was encrypted ? (in fact only the data partition with /media included, ¿is that what the encryption options does, i mean they limit to encrypt only that partition?

Why didn't your perspicacity applied the same way to the fact of analizing that english is not my native language to the fact of analizing that I need google translate ?

I really apreciate your time and dedication to help but in my opinion this kind of sarcastic comments only serves as a waste of time for both of us.

Yes, I knew and, oposite to encrypting my phone, I consciously did it because I instinctively gave up analizyng the chances of getting my data intact after what OOS perceived as an encrypted phone...

Yes i have done a lot of flashing like most people here BUT I have never ever even tried to do any encryption **** in anything in anyway. There are other similar cases (https://xdaforums.com/oneplus-2/help/stuck-unsuccessful-encryption-dialog-t3244965). In fact, before your advice of going further straightly to latest OOS 3.5.6 I successfully flashed and switched between 3 7.1.1 ROMS and 2 6.0.1 ROMS without any encryption related issues !

Damn! I was already reading that thread hoping that was the last resource. I think its something modem related or modem partition.... My imeis are both readable and after some time of a reboot the signal meter shows some bars and the r of roaming but i couldn't test it with a call yet. It lasts around 10 minutes and goes offline...

While I continue to look and read for some different workaround i will try to digest the idea of the Qualcomm fix (im a bit scared...)

Thank YOU for YOUR Time and Patience
[OnePlus 2 General] Spannaa:
If you still have both IMEIs, you'd modemst partitions (EFS) aren't corrupted. Back them up before doing anything else.

I'll leave you to it...
[OnePlus 2 General] iamsuperuser:
[MENTION=5641921]Naman Bhalla[/MENTION]

userdata.img is access denied. please give me access to download
[OnePlus 2 General] Spannaa:
If the OP has denied access to the file, there'll be a good reason for it.

There are three unofficial fastboot zips containing all of the images needed here.
[OnePlus 2 General] iamsuperuser:
Oh ok. So will these files relock my bootloader too?? Pardon me but thats what i assumed by 100% stock.
[OnePlus 2 General] Spannaa:
No.

If you want to re-lock your bootloader, you have to use fastboot oem lock after fastboot flashing the images.

There's no reason to do this though - an unlocked bootloader doesn't void warranty on the OP2
[OnePlus 2 General] iamsuperuser:
OK.

Can you please tell me if there are any significant advantages of a re-locked boot-loader over an unlocked one ?

Thanks in advance.
[OnePlus 2 General] Spannaa:
Security - Google it ;)

If you re-lock it, you may not be able to unlock it again though.
[OnePlus 2 General] avanishv3:
if you find any solution pm me bro.. i m also in that situation
[OnePlus 2 General] Spannaa:
Try [MENTION=4844194]fareed_xtreme[/MENTION]'s Official OP2 Stock Reset to OOS 3.0.2

It's the tool OnePlus use in remote support sessions.
[OnePlus 2 General] GAMEbuff:
Any solution?

Mate did u get any solution?

I was talking on a phone and suddenly my OP2 got restarted and what I see is "Encryption Unsuccessful".

I don't know what has gone wrong, maybe when on call it just got mistakenly browsed into encryption option or something in a setting?

I am on Oxygen OS 3.5.6 and rooted.

I want my data from the phone, what should I do?

Error states;

Encryption unsuccessful

Your phone storage has been damaged,

please download the firmware package to brush.
[OnePlus 2 General] amomp3:
Sorry I can't help you because I decided to format the sdcard because I considered that the file system was damaged. I lost some data yes but not much because I used FolderSync.
[OnePlus 2 General] GAMEbuff:
How?

What did you do?

How did you format?

When I try to wipe data ..internal storage, it shows error in red.

I just want my OPT to work again if data is wiped; it's okay.

Please guide me what should I do.
[OnePlus 2 General] amomp3:
oh.. sorry i did not see your reply... i don't remember exactly i think i tried to wipe and got the same as you so i reformatted the partition from an option inside TWRP...

reply if you got it working !