Restore stock system & boot image off temp twrp - HTC U12+ Questions & Answers

2.47.709.1. , I have the right mid cid, even the release keys match (thanks to Ziand) twrp backup. Twrp asks me what partition to flash? But no way of selecting it. Can you restore off temporary twrp. I've tried with a 32gb card as I had problems twrp recognising my 128gb, won't mount. Hope one of you can help

Related

[Q] Non-Lollipop TWRP Restore issue

I shattered the screen on my Nexus 5, and G was kind enough to send a replacement (refurbished). Since I have TWRP Nandroid backups, I thought it would be an easy matter to unlock/root/TWRP the new replacement phone, copy over the backup files, then restore. However, TWRP does not seem to be working - I get a bootloop, with an android mascot with a red triangle and the words "no command" when I select "Recovery".
My original N5: unlocked, rooted, TWRP, Android 4.4.4
Replacement N5:
- originally with Android 4.4.0
- unlocked, rooted and TWRP installed with Nexus Root Toolkit (NRT)
- system was then upgraded to 4.4.2, 4.4.3, 4.4.4
- went into fastboot, tried to select Recovery....and nothing.
Is this an issue with TWRP? Should I try flashing a different version?
Is this an issue with the process? Should I use NRT to "Return to Stock", THEN let the system update itself to 4.4.4, THEN try unlock/root/TWRP and recovery?
Is this an issue with the root process? Should I use CF Auto Root and try to re-root, re-install SuperSU, etc. on the current system?
TIA
Ed
That's stock recovery. Do yourself a favour and flash recovery properly without using a toolkit.
Thank you - that was absolutely correct. Apparently NRT either didn't install TWRP, or didn't flash an error message saying TWRP install failed (or I missed it).
I downloaded a TWRP flash image, and after some tweaking with drivers, managed to flash it just fine.
I then copied over my original N5 TWRP backup, and restored it. Aside from some minor data location problems (e.g., Evernote detected new SD Card, re-sync'd all notes), it worked fine and the new phone is in the exact same state/configuration as the original phone.
Now to go track down the "TWRP restore to a different device" threads.
Thanks!
The rule really is never restore EFS from another device.
Old device, backup system, boot and data
New device, make a small backup to generate the serial number folder. Then copy the backup from the old device.

Trying to flash recovery within recovery

I have TWRP 2.7.0.0 on my n8013. Symptoms of the tablet being bricked include infinite booting time into CM (11? I'm not sure as it's been a while since I tried salvaging this tablet), and the fact that every action in TWRP prints to the console the fact that the data partition can't be mounted. I obviously did something wrong back when I flashed CM.
Further, I can't connect the tablet to the computer (I just ordered a new cable, but that won't get here for a month).
After reading the threads, it seems a newer version of TWRP might be able to help me get my partitions back to normal. I understand that if I had a newer version of TWRP, I could upgrade TWRP to an even newer version by loading the img on the microSD card and installing via the "image" option. However, this version of TWRP doesn't offer to install an "image" - just a regular zip install.
So how do I upgrade TWRP from within TWRP?
I tried:
dd if=twrp.img of=/dev/block/mmcblk0p6
cat of the /tmp/recovery.log seems to show this is the recovery partition. I figured that overwriting it with the newer version of TWRP could do the trick.
It writes to that partition apparently successfully, but when I then run reboot recovery I'm back in version 2.7.0.0
Any tips?
Thanks so much in advance!
Flash TWRP zip via TWRP is the normal method.

Stuck upgrading from 9.05 to 10.3, restore with Nandroid backup possible ?

Tried to clean flash unlocked and rooted OP6 from OOS 9.05 to 10.3 and got stuck in "bootloader unlocked" (only later learned that I should have gone via 9.09 to 10). Tried to restore Nandroid, but this did not work either and even lost the recovery.
Now I can go to recovery only via "fastboot boot" and only using twrp-3.3.1-18-enchilada-Q-mauronofrio.img (none of the other recoveries I tried will boot). I tried to restore the backup (with and without reflashing twrp-3.3.1-18-Q zip afterwards) but never manage to boot back to system (maybe because the restore is 9.05 and the above TWRP is OOS10; it starts up with the ASOP10 log ?)
Is there a way to restore 9.05 with the nandroid without wiping the user data ?
(like flashing the nandroid twice on slot A and B and flashing the correct TWRP and/or Magisk afterwards) ?
ebar3 said:
Tried to clean flash unlocked and rooted OP6 from OOS 9.05 to 10.3 and got stuck in "bootloader unlocked" ?
Click to expand...
Click to collapse
Problem solved!
I followed this post https://forum.xda-developers.com/showpost.php?p=78915106&postcount=2
(reflash same ROM and Magisk versions as those originally installed, then restore nandroid backup).
3 things to note which were not obvious to me:
- Unzipp ALL files into one single folder (same ROMs have zips within zips)
- use the "flash-all-partitions-fastboot.bat" file,
- answer NO to the first question "Wipe all data (recommended)". If not, the internal data (data/media) will be wiped as well, including your nandroid backup and other info (music, photo..). If you have to wipe, make sure the backup is on the PC

Guide: update Xiaomi Mi Note 10 to latest MIUI while rooted

Couldn't find any info on this on xda or while googling.
This guide assumes you're on an official MIUI rom, with root, and twrp either installed or bootable from fastboot through computer i.e. your bootloader is already unlocked etc.
Dirty flashing new rom actually is a lot easier than on recent devices from other manufacturers (I've just leaved Motorola after running their G-series phones since 2015).
Go to https://xiaomifirmwareupdater.com/miui/tucana/ , download the latest ROM under type Recovery, i.e. a flashable zip. Make shure it's from the same region as you're currently running.
Backup all your apps using titanium backup. Reboot to twrp, do a twrp backup of everything. Then copy everything from your phone over android file transfer from twrp to pc while booted to twrp (all this can be skipped if you don't care of your files, apps etc if something goes wrong).
Put downloaded zip from above on phones internal storage in the same way as backup. Install as zip from twrp. Pray for working dirty flash (downloaded zip recoveries seem all to be dirty flash ones, i.e. doesn't format data and internal storage).
Before rebooting, make shure to install twrp again as it gets overwritten. Also apply your root by installing magisk zip again. Reboot and pray.
If your phone boots, everything's intact, but either root or twrp is gone, reapply the same way as before. As your bootloader is unlocked, you can flash twrp.img as recovery with fastboot from computer without your device gets formatted.
Above worked for me going from V11.0.8.0.PFDMIXM to V11.0.9.0.PFDMIXM while rooted, without looseing anything.
What partitions "NEED" to be backed up ? I'm using twrp 3.3.2b-0219 by wzsk150 and theres 31 partitions ( never seen that many ever)
Petesky said:
What partitions "NEED" to be backed up ? I'm using twrp 3.3.2b-0219 by wzsk150 and theres 31 partitions ( never seen that many ever)
Click to expand...
Click to collapse
no partitions "need" to be backed up. for safety purposes, back up everything you can select though, that way you maximize what you can restore and go back to. you can delete the backup after a successful upgrade.
Finally got round to doing this , flashed orangefox recovery then dirty flashed Global_V12.0.1.0 over Global_V11.0.8.0,
then flashed orangefox again with magisk, everything working ok

Restoring data from stock 11.1.1

Hi,
So it seems when i restore data via TWRP it triggers the protection which encrypts the whole sdcard, can this be avoided?
Here are the steps i did:
Full wipe
fastboot boot twrp (Nebrassy)
sideload stock 11.1.1
sideload magdisk
Finished setting up the device
Then booted twrp again
Did full backup
And then it never boot again to system... no idea why could be the twrp.
Now i'm stuck with this backup, every time i restore it, the entire sdcard gets encrypted.
I've tried flashing both stock boot and patched boot but it didn't help
Any ideas or should i do it all again and lose twrp, seems to be very buggy at v11.1.1
I managed to solve this issue myself.
Encryption is forced by default since android v10 i think so that means when you try to flash any data it has to be either the same type or it would encrypt the whole internal storage, i.e. you can backup just fine but if you restore and reboot the phone will tamper with all the data making it unreadable.
You need to disable encryption first then flash the data and then it works fine, unless you disabled it to begin with of course.
Another key point here is that when the phone encrypts the entire storage you won't be able to flash anything else until you completely erase everything.
Wasted hours on this on OP6 and OOS 11.1.1 + Unofficial Twrp,
Here is a short summary of the main points:
Full backup from TWRP works fine but copy it elsewhere or you might lose it when restoring
If you booted into encryption i used to flash lineageos recovery then boot into it and do a full wipe, then flash twrp back. i don't think it works from that twrp version
If you want to disable encryption or restore backups use this one (only one that worked) https://forum.xda-developers.com/t/...ncrypt-disk-quota-disabler-11-2-2020.3817389/
If you want OOS v11.1.1 + TWRP + Root + Backups do it in the following order: Unlock Bootloader, Boot TWRP, Install TWRP permanently, Flash Magdisk, Flash DFE
Not sure it's important but lineageos has a script for A\B slot phones like OP6 to sync slots, should be used at least once after flashing V11 just in case to avoid possible problems https://wiki.lineageos.org/devices/enchilada/install
I'm also adding stock and patched boot images in case someone needs them.

Categories

Resources