Santi_SAZ
08/07/16, 18:38:46
Ante todo agradecer a NAMAn Bhalla del foro oficial de Oneplus el trabajo realizado, dejar que se comparta con vosotros y las colaboraciones de:
gaurav Rohilla for testing.
Grarak for recovery.
thedropdead for dev-info images.
My parents for me.
Esta tarde lo probé y funciona perfectamente.
Copio el post entero, lo traduciré a medida que pueda pero es fácil de comprender.
Hello once again !!
The view from mountains is awesome and it made my mind think again differently. I was always thinking of a way to prevent app data loss even when you are in a bootloop after flashing 3.0.2 so yesterday while travelling,I figured it out. Also,this paved in the way to unlock bootloader without wiping data (though it isn't a good way and you must follow the original method but in case of a brick,this will definitely help)
So,lemme begin.
The first thing you need to do is to get your device in Qualcomm 9008 mode. To know how to do so, follow this guide by me :- https://forums.oneplus.net/threads/updated-28-06-2016-mega-unbrick-guide-for-a-hard-bricked-oneplus-2.347607/ (Follow only till step 6 of method 1)
Now the needed downloads.You need to have these files :-
Modified Recovery Tool (We have changed only rawprogram files and changed reocvery with Grarak TWRP) :- https://www.androidfilehost.com/?fid=24591000424939640
OnePlus recovery :- https://s3.amazonaws.com/oxygenos.oneplus.net/OP2_recovery.img
So,now your phone is in Qualcomm 9008 mode and connected to PC.Awesome. Now,do the following :-
Step 1 :- Extract the modified recovery tool.Open as administrator MSMDownloadtool.exe from the extracted folder and click on Start.
Step 2 :- Wait for it to complete and show green text.
Now press power + volume down button to boot into TWRP ! (Yeah,now,you have TWRP without even unlocking bootloader ! )
So,I think now you know what we are doing ;) TWRP can help us do a lots a things.
.................................................. ......
So,first thing we can do is to save ourselves from bootloop after 3.0.2 flash ,and it will work even for encrypted users !
First thing that can be done to save it is to go to TWRP file manager and mount system and from TWRP File Manager,delete /data/system/users/0/package-restrictions.xml and then go to Install,put OxygenOS 3.0.2 Full zip on your phone and select it from Install Menu and swipe to flash ! Then wipe cache/dalvik.And then you can reboot ! Hopefully you will be able to boot.
After that,again go into Qualcomm mode and in modified reocvery tool,replace recovery.img with OnePlus recovery (and rename OnePlus recovery to recovery.img in the folder and replace it with the present one).Then again run the tool as administrator.Now you will have everything stock and working phone too !
Don't disbale GApps from now on ;)
.................................................. ......
If the above method doesn't work,go to TWRP Backup and backup everything .Then wipe -> Advanced Wipe -> Dalvik/System/Data/Cache and swipe to wipe. Then Installl,put OxygenOS 3.0.2 Full zip on your phone and select it from Install Menu and swipe to flash.And finally reboot !
Now you can definitely boot.After boot,install Titanium Backup Pro .Click on menu in the Titanium Backup Pro and select extract from Nandroid Backup and then you can restore app data from it ! Your internal storage won't be wiped at all so no need to backup that even ;) And then as in above method,you can flash stock recovery if you want to.
.................................................. ......
UNLOCK/LOCK BOOTLOADER WITHOUT WIPING DATA
Please note that OEM Unlocking needs to be enabled before doing this.
Boot into TWRP and go to ADB Terminal in advanced menu of it. Send http://forum.xda-developers.com/attachment.php?attachmentid=3583132&d=1450635576 to the Internal Storage of your phone. Now,in the terminal,type :-
dd bs=4096 of=/dev/block/bootdevice/by-name/devinfo if=/sdcard/oneplus2-devinfo-unlocked.img
You can then reboot !
To lock,download this :- http://forum.xda-developers.com/attachment.php?attachmentid=3583130&d=1450635576 and put in the Internal Storage and type in ADB Terminal :-
dd bs=4096 of=/dev/block/bootdevice/by-name/devinfo if=/sdcard/oneplus2-devinfo-factory.img
You can then reboot !
.................................................. ......
SOME OTHER GREAT THINGS WE FOUND
So while testing, gaurav Rohilla found that after bootin to TWRP,we can even clean flash CM 13 with GApps without even unlocking bootloader ! That is great,indeed.
.................................................. ......
Credits :-
gaurav Rohilla for testing.
Grarak for recovery.
thedropdead for dev-info images.
My parents for me.
gaurav Rohilla for testing.
Grarak for recovery.
thedropdead for dev-info images.
My parents for me.
Esta tarde lo probé y funciona perfectamente.
Copio el post entero, lo traduciré a medida que pueda pero es fácil de comprender.
Hello once again !!
The view from mountains is awesome and it made my mind think again differently. I was always thinking of a way to prevent app data loss even when you are in a bootloop after flashing 3.0.2 so yesterday while travelling,I figured it out. Also,this paved in the way to unlock bootloader without wiping data (though it isn't a good way and you must follow the original method but in case of a brick,this will definitely help)
So,lemme begin.
The first thing you need to do is to get your device in Qualcomm 9008 mode. To know how to do so, follow this guide by me :- https://forums.oneplus.net/threads/updated-28-06-2016-mega-unbrick-guide-for-a-hard-bricked-oneplus-2.347607/ (Follow only till step 6 of method 1)
Now the needed downloads.You need to have these files :-
Modified Recovery Tool (We have changed only rawprogram files and changed reocvery with Grarak TWRP) :- https://www.androidfilehost.com/?fid=24591000424939640
OnePlus recovery :- https://s3.amazonaws.com/oxygenos.oneplus.net/OP2_recovery.img
So,now your phone is in Qualcomm 9008 mode and connected to PC.Awesome. Now,do the following :-
Step 1 :- Extract the modified recovery tool.Open as administrator MSMDownloadtool.exe from the extracted folder and click on Start.
Step 2 :- Wait for it to complete and show green text.
Now press power + volume down button to boot into TWRP ! (Yeah,now,you have TWRP without even unlocking bootloader ! )
So,I think now you know what we are doing ;) TWRP can help us do a lots a things.
.................................................. ......
So,first thing we can do is to save ourselves from bootloop after 3.0.2 flash ,and it will work even for encrypted users !
First thing that can be done to save it is to go to TWRP file manager and mount system and from TWRP File Manager,delete /data/system/users/0/package-restrictions.xml and then go to Install,put OxygenOS 3.0.2 Full zip on your phone and select it from Install Menu and swipe to flash ! Then wipe cache/dalvik.And then you can reboot ! Hopefully you will be able to boot.
After that,again go into Qualcomm mode and in modified reocvery tool,replace recovery.img with OnePlus recovery (and rename OnePlus recovery to recovery.img in the folder and replace it with the present one).Then again run the tool as administrator.Now you will have everything stock and working phone too !
Don't disbale GApps from now on ;)
.................................................. ......
If the above method doesn't work,go to TWRP Backup and backup everything .Then wipe -> Advanced Wipe -> Dalvik/System/Data/Cache and swipe to wipe. Then Installl,put OxygenOS 3.0.2 Full zip on your phone and select it from Install Menu and swipe to flash.And finally reboot !
Now you can definitely boot.After boot,install Titanium Backup Pro .Click on menu in the Titanium Backup Pro and select extract from Nandroid Backup and then you can restore app data from it ! Your internal storage won't be wiped at all so no need to backup that even ;) And then as in above method,you can flash stock recovery if you want to.
.................................................. ......
UNLOCK/LOCK BOOTLOADER WITHOUT WIPING DATA
Please note that OEM Unlocking needs to be enabled before doing this.
Boot into TWRP and go to ADB Terminal in advanced menu of it. Send http://forum.xda-developers.com/attachment.php?attachmentid=3583132&d=1450635576 to the Internal Storage of your phone. Now,in the terminal,type :-
dd bs=4096 of=/dev/block/bootdevice/by-name/devinfo if=/sdcard/oneplus2-devinfo-unlocked.img
You can then reboot !
To lock,download this :- http://forum.xda-developers.com/attachment.php?attachmentid=3583130&d=1450635576 and put in the Internal Storage and type in ADB Terminal :-
dd bs=4096 of=/dev/block/bootdevice/by-name/devinfo if=/sdcard/oneplus2-devinfo-factory.img
You can then reboot !
.................................................. ......
SOME OTHER GREAT THINGS WE FOUND
So while testing, gaurav Rohilla found that after bootin to TWRP,we can even clean flash CM 13 with GApps without even unlocking bootloader ! That is great,indeed.
.................................................. ......
Credits :-
gaurav Rohilla for testing.
Grarak for recovery.
thedropdead for dev-info images.
My parents for me.