terça-feira, setembro 01, 2015

[GUIDE] Return your OPO to 100% Stock 12.1 CM12.1S… | OnePlus One |

[GUIDE] Return your OPO to 100% Stock (Curre… | OnePlus One | XDA Forums

http://builds.cyngn.com/cyanogen-os/bacon/12.1-YOG4PAS1N0-bacon/7be76f9310/cm-12.1-YOG4PAS1N0-bacon-signed-fastboot.zip

http://cyanogen-ota-bacon.somee.com/

https://cyngn.com/support

So, you've unlocked your bootloader and are enjoying some rooted goodness on your phone. You then realise you've got an issue with the phone and forgot to make a backup of your stock ROM! Not to fear, this guide is for you! This will reset the phone back to it's out-the-box state, locked bootloader and all, running the latest YOG4PAS1N0 build so you can return it for RMA/sell it. This also works to go back to CM12.1 from Oxygen OS.

It's recommended that you have adb/fastboot in your System Path. This makes it easier to run commands as you don't always have to 'in' your adb/fastboot folder to run the commands. This guide should help you with this but if you don't want to do this, please copy/extract any files into your adb/fastboot folder before continuing...

1. Download the factory image

Cyanogen released the factory image for the OPO but didn't include any batch files to automate the process. I've repackaged the images into two seperate ZIPs:

YOG4PAS1N0 16GB: http://1drv.ms/1hgRSIe
md5: 50020B9819E5B081C24FE31A90BFFBB1

YOG4PAS1N0 64GB: http://1drv.ms/1hgRXf0
md5: D82531F40AC3F700E00130DD995E1160

2. Extract the factory image

Using your favourite file extraction program to extract the package to your Desktop (I use 7-ZIP). *** Remember, if you don't have adb/fastboot in your Path, extract the image into your adb/fastboot folder ***

3. Flash the factory image

Once you've unlocked the bootloader, and rebooted the phone, turn the phone off and back on into fastboot mode and reconnect it to the PC. You can now run the flash-all.bat (Windows) or flash-all.sh (Linux) file. These automate the flashing process. Once complete, the phone will reboot.

*** Some users have had issues using the script in Linux so in these cases extract the ZIP file and flash each IMG individually ***

fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash oppostanvbk static_nvbk.bin
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash userdata userdata_64G.img (or userdata.img if you have a 16GB model)
fastboot reboot

4. Reset the tamper flag/lock the bootloader

There is a flag/bit on the phone that is triggered when you unlock the bootloader and even relocking it won't change this flag back to standard. Luckily, @Mnt-XDA has a script that you can flash which resets these flags so OP/anyone else is none the wiser! To do this, read and follow THIS thread

5. Reboot the phone

Nenhum comentário: