Downgrade and restore from other Bullhead - Nexus 5X Q&A, Help & Troubleshooting

Hi all,
I have my 5x back from repair and a want to restore from my old trwp backup. What roadmap do i need to follow?
The phone has a new serialnummer so i expect the board is replaced.
I know how to unlock and install twrp.
Twrp backup is from 7.1.2. New phone is on 8.1.
Possible steps:
1. Unlock bootloader
2. Install factory image 7.1.2
3. Install twrp
4. Push twrp backup from pc to nexus
5. What partitions to restore?

@Rexylian: if you want to step up to Oreo (recommendable imo), you shouldn't restore Nougat-stuff. So this may be the moment.
Otherwise choose the factory-image which matches to your backup, and restore (boot&)data&system.

@rp158: Thank for the quick replay.
I copied the twrp backup to my phone. (adb push)
Booted into twrp but i can see the folder in trwp but cant select any partition to restore....
What i'm doing wrong?
NP: I found it already: different serialnumber
twrp looks for a folder named after the serialnumber.
Renaming the folder to the correct serialnumber works....

@Rexylian: Move your backup to /sdcard. Make any dummy backup to let TWRP create its favourite folder. Move your backup there. Then you should see and be able to choose the dummy and your real backup (the folder names) in TWRP.

@rp158: thanks for your replies. It's up and running now! So happy
The only bump i had was to remove the old password files via twrp...
The reason i downgraded to 7.1.2 was that i could not get safetynet to pass on the latest oreo..

Related

I think CWM screwed me

I should be able to flash a backup I made with CWM recovery in CWM recovery, correct? Or would I have to adb push it?
I moved to 4.2.1 but not a fan of it at this point and want to go back using a backup (4.1.2) I made with CWM, but it won't flash. So at this point I'm trying to save my photos, notes, texts, and my titanium backup of apps and do a complete wipe using wugs (unroot/relock then reroot/unlock). Or should I be able to get away with just doing a format on my sdcard/system/cache/data and data/media (options in CWM)? Since going to 4.2.1 I have also lost a significant amount of free space.
BTW I have tried TWRP before and went back because I didn't like the layout but damn if your recovery can't even handle its own backups what the hell is it good for? TWRP here I come again.
you know it moves everything to a folder called 0 on the internal memory, right...?
A lot of the following is probably overkill but what I'd do is...
1. Backup everything I wanted to keep when in Android 4.2.1 onto my PC (Nandroid backups, photos, music, etc.)
2. Flash the factory 4.1.2 image
3. Boot up to make sure it's working
4. Restore nandroid in CWM
Chances are there are easier ways of doing this but I'd be happy knowing that is 100% right then have the potential for it going wrong
derekwilkinson said:
you know it moves everything to a folder called 0 on the internal memory, right...?
Click to expand...
Click to collapse
Bud I have tried to flash it out of every folder I have access to in CWM Recovery
The folder's I have tried, after choosing install zip from sdcard:
sdcard/0/clockworkmod/backup/ - 4 backups in here but wont flash any of them - says no files found when I try to flash one
sdcard/clockworkmod/backup/ - can actually see 2 backups in here (ones I don't want, just wanted to see where they were placed in 4.2)
sdcard/legacy/ - no files found
But stupid me did just realize the CWM backups I have been creating aren't zips? So I need to figure out how to get to sdcard/clockworkmod/backup and place my backup folders here. So I will be able to see them when I choose Backup and Restore - Restore
CWM can't see the backups in the '0' folder, it stores them on /data/media (or is it /media/data??) so unless you have a file manager with root access you won't get them back
EddyOS said:
CWM can't see the backups in the '0' folder, it stores them on /data/media (or is it /media/data??) so unless you have a file manager with root access you won't get them back
Click to expand...
Click to collapse
My my my you are the man. It looks like it is data/media/clockworkmod/backups.
I am going to try to Restore my latest 4.1.2 nandroid tonight, after I had a chance to back every thing up, but I'm guessing it's going to keep the current file structure though.
The best way to upgrade to 4.2.1 from 4.1.2 is
1.Flash all factory images from fastboot apart from recovery,@ recovery step flash twrp 2.3.3.0 and you are all set to no '/0' bug,
2. Downgrade to 4.1.2 ? Flash factory images of 4.1.2 , just keep the recovery as twrp 2.3.3.0, at present it is the best possible recovery for maguro for handling the '/0' bug , it doesnot delete the layout file.
And restoring nandroids in between the versions can make every file very clumsy, take some time and flash stock images to get rid of that.
BaMaDuDe87 said:
My my my you are the man. It looks like it is data/media/clockworkmod/backups.
I am going to try to Restore my latest 4.1.2 nandroid tonight, after I had a chance to back every thing up, but I'm guessing it's going to keep the current file structure though.
Click to expand...
Click to collapse
After downgrading you will still have the /0/ folder with all data. So many apps wont recognize that the backups are there available to be restored. You can just point to the "new" backup location that now exists in the /0/ directory.
Example: Titanium backup will tell you there is no restore data unless you go into preference and point it to the right folder in /0/.
Example 2: Nova launcher will not see the backups. Manually move them via Root explorer or similar from the /0/data/ to the /data/
..and so on.
I guess I will be flashing the factory image then.
1. Backup everything I need/want (photos, notes, sms, and grab latest copy of titanium backup folder)
2. Format system/cache/sdcard just because
3. fastboot - factory image (4.1.2)
4. Phone should still be unlocked/rooted (on current bootloader/radios correct?)
5. fastboot - twrp
5. Restore everything else
Or use Wugs to take back to stock, then fastboot unlock, root, add CWM recovery might be the easier way at this point. Restore nandroid and everything else. Then add TWRP and remove CWM.
Sorry trying to talk this out with you guys and wrap my head around what I am in for. I know it's not hard, just frustrating to think I could possibly lose some things.
Better Recovery TWRP
BaMaDuDe87 said:
I guess I will be flashing the factory image then.
1. Backup everything I need/want (photos, notes, sms, and grab latest copy of titanium backup folder)
2. Format system/cache/sdcard just because
3. fastboot - factory image (4.1.2)
4. Phone should still be unlocked/rooted (on current bootloader/radios correct?)
5. fastboot - twrp
5. Restore everything else
Click to expand...
Click to collapse
Not to be bossy but the latest version of TWRP seems to do a better job handling user folder /0. Its also touchscreen and [email protected]$$ so there is really no comparison....:highfive:
Yea I tried it, thought I was more comfortable with CWM and this bit me in the ass, so TWRP it is when I get everything straightened out

[Q] TWRP Backups

Hi!
Im using TWRP as my custom recovery and I did a backup for all my apps because I wanted to do a clean install of a rom. Im now with the new rom installed and anything on the phone and I want to restore the data using the backup (I saved it to the computer before flashing).
My problem is that TWRP doesn't recognize the backup. I've placed it in TWRP > BACKUPS > Folder (it was there when I pulled it to my pc) but it seems to be the wrong place (I suppose it is on storage/0/TWRP/BACKUPS). I can't move the backup there.
How can I make my backup recognizable by TWRP?

HELP, from cm11 to stock rom

Can anyone help step by step ? Installed cm11 and twrp 2.8.1.0.
grazhve said:
Can anyone help step by step ? Installed cm11 and twrp 2.8.1.0.
Click to expand...
Click to collapse
easiest solution is to restore from some one else his backup. It won't be fully stock since you still have TWRP recovery.
You can download a backup from here and here. I recommend b635 but it is your choice.
First make a full backup of your phone. Boot in twrp go to backup and swipe to backup.
Then in twrp mount your phone as usb.
Exract the downloaded .zip file. Then put that downloaded folder on sd card. Not the entire folder, but just the last folder.
Should look like this on your sd card: twrp>BACKUPS>022JBW7N3A017892(can be different folder name)>name of downloaded folder>11 different .win and .md5 files
then in twrp choose restore and select the one you want to restore to. One is your cm11 backup (you made yourself) and the other is the downloaded backup
Sorry if it is not clear enough. If you still have problems please tell me. :good:
Thanks its clear, my biggest problem was. which restore version download

[Q] Copying a TWRP backup to a new device

I made a TWRP backup after setting my device up, now I want to copy this image to new devices. I made a backup of the wanted config inside TWRP and copied it to a PC. I factory reset the device to restore onto, rooted it, made a TWRP backup of boot only so I have the hashcode folder ready to roll to place the main backup into. Now when I connect the device to my PC and try to copy into this hashcode folder, I get errors like 'folder has been removed' or something, which I expect is to do with permissions. In TWRP in advanced, filesystem management, I apply chmod 777 to the hashcode folder, I still can't copy the backup into that folder from the PC, same message. Ideally I don't want to go through a full setup of the new device in order to install root explorer and change permissions etc., I have 8 of these units and want to make the process painless, not a multi-hour job.
Sooo, is there a process via TWRP whereby I can make the backup hashcode folder writeable from the PC so I can simply copy my backup across to the new device and proceed with the restore? If I must use ADB I can probably live with that, just if someone can help me out with a set of commands that can 'make it so'. Ideally I just want to change settings in TWRP with the "right" commands, reboot it and copy my backup across, before rebooting back into TWRP and running the restore.
I'm doing this so I can quickly setup a standard configuration for some specific software we use, replicate that across to units, have people access the apps via a restricted profile, then after field use, be able to return the unit back to a standard config via a TWRP restore using the minimum number of steps.
The way I got it working was to copy the backup folder to a temporary location on the new device from the PC, then move it to TWRP's backup folder using the TWRP file management tools.

GT-N7105 TWRP Restore can't see backup

My phone is GT-N7105 (Samsung Note 2)
I had a nandroid backup before, then I copied the backup to PC, still have it. Then I flashed lineage 14 (nougat), then flashed lineage 13 (marshmallow). I deleted the nandroid backup on the phone storage sometime during that period. Now I want to restore the backup (stock rom) so I copied the backup files from the PC to phone storage.
Now when I go to TWRP Restore mode, no backups are found.
I already searched through the internet and found the renaming method but there's a problem:
this is my original backup:
TWRP/backups/42f7491d7b409fc7/2017-03-01--05-28-34_JZO54K.N7105XXDMB
I tried to make a new backup of my current lineage (just to see if the folder name changed based on the new folder the backup process will create), here is what the resulting folder was:
TWRP/backups/42f7491d7b409fc7/2017-07-05--09-27-29_lineage_tOlte-userdebug_6.0.1_MOB31K_ab972c
As you can see, only the innermost folder name changed. So from what I found through searching, it said to rename the old backup folder to the new backup folder's name, meaning :
I changed
2017-03-01--05-28-34_JZO54K.N7105XXDMB2
to
2017-07-05--09-27-29_lineage_tOlte-userdebug_6.0.1_MOB31K_ab972c
TWRP still can't see the original backup.
I already tried renaming only part of the orignal backup folder name, specifically the 6 character code (found 2, JZO54K and XXDMB2) to the 6 char code from new backup (MOB31K and ab972c) but TWRP still can't recognize the original backup.
So what should I rename the original backup folder for TWRP to recognize it and make it appear? I really need to restore it back to stock rom. help please. Thanks
EDIT:
TWRP I used before was 2.8.0 but I just updated the TWRP to 3.1.0 and still can't recognize original backup
Also, If I made the thread in wrong section, please move it and I apologize in advance. Thanks.

Categories

Resources