I just borked my encryption key - how? - HTC 10 Questions & Answers

EDIT: Nevermind. I didn't realize you had to wipe internal storage when going to AOSP based ROMs, I've got it sorted out now.
Okay, I don't know where I went wrong. Flashed TWRP 3.0.3-6-unofficial (US unlocked 2.41.617.3).
Wiped data, cache, dalvik, system in TWRP after decrypting with my key.
Flashed LineageOS and Gapps. First boot, prompted for key, won't take it. Reboot to TWRP, won't take the key either.
I know I just lost everything on the phone but my question is -- how did I manage to bork it? Luckily I backed up my Titanium Backup and SMS Backup and Restore to my SD card so having to RUU isn't the end of the world, I'm just curious what I did so I don't do it again. I didn't wipe internal storage when I installed Lineage, just everything else so I'm totally lost as to what I did wrong but I'm grabbing the RUU right now. Luckily I didn't really have anything on there that I absolutely couldn't stand to lose since I smartly moved my TiBu and SMS folders to the SD card.

Related

When wiping data, will I lose "SD Card" data?

Will wiping the data (before ROM flash) also wipe the "SD Card" data? I know on other phones, that have a physical SD card, when you wipe data the SD data remains. But, with the Nexus having a virtual SD card, I didn't know what would happen.
In essence, I'm thinking Titanium Backup is useless unless you pull the backup data from the phone before flashing a new ROM, because the backed up data would be deleted with a data wipe for new ROM flash.
cmcfalls said:
Will wiping the data (before ROM flash) also wipe the "SD Card" data? I know on other phones, that have a physical SD card, when you wipe data the SD data remains. But, with the Nexus having a virtual SD card, I didn't know what would happen.
In essence, I'm thinking Titanium Backup is useless unless you pull the backup data from the phone before flashing a new ROM, because the backed up data would be deleted with a data wipe for new ROM flash.
Click to expand...
Click to collapse
The "sd card" data remains. Nothing is messed with in that portion of memory. TiBu works great.
strongergravity said:
The "sd card" data remains. Nothing is messed with in that portion of memory. TiBu works great.
Click to expand...
Click to collapse
Thanks! I wondered what would happen with a data wipe.
If you flash a stock ROM via fastboot it WILL WIPE THE "SDCARD". EVERYTHING.
Basically:
Stock recovery data wipe/factory reset = SDcard wiped
Custom recovery data wipe/factory reset = SDcard untouched
So if you haven't rooted/CWM'd your phone yet, don't put anything big and important on the SDcard. If you have put stuff on your card just make a backup of it on your PC and then do the unlock/recovery install procedure. Then you'll be set. Titanium Backup will be back to working just like it does on any other phone once you have a custom recovery installed. No worrying about the SDcard getting wiped.
you'll definitely want to install a custom recovery if you're going to be wiping anything. Id highly recommend the clockwork touch recovery. The standard one is really a pain to use as the navigation is odd and its hard to select what you want.
^ I wonder as well, but I proceed without thinking about sdcard. Lucky enough our great dev took care of that. Btw, I didn't have time to see the recovery since when I got it I flash CWM immediately.
The answer is here for TWRP
the answer
Kiwyxda said:
The answer is here for TWRP
the answer
Click to expand...
Click to collapse
This thread had been dead for 8 months...

do nandroid backups work properly?

i've been trying out new CM10.1 nightlies and nothing has worked as well as 3/17, so i keep reflashing my 3/17 nandroid backup. however, ive noticed that after 1 or two times of doing that, the phone battery has sucked and my data connection is acting funky.
when restoring from nandroid, does it basically wipe the phone and restore it exactly back to how it was, or do files from frequent flashing and trials of other nightlies still stick around?
if so it is the latter, would i benefit from moving my backup to my external SD card, doing a total wipe of the phone 100%, and reflashing the nandroid backup?
At the very least you should wipe cache,dalvic, and factory reset, which you could've learned from a simple search.
When you dirty flash rom updates and backups, you begin to run into these small bugs. Layering your software like this will add up. It's safe to keep a copy of your backup on your sd card, yes. If you perform a full wipe (wipe data, cache, dalvik, and system) you will be removing the OS entirely and allowing for a completely clean install. That's what I recommend. Since you are not formatting/wiping data, you will not lose any.
TeknoGodz said:
At the very least you should wipe cache,dalvic, and factory reset, which you could've learned from a simple search.
Click to expand...
Click to collapse
yes. i know. that was already done. i was asking about something more in depth. thanks for nothing.
xBeerdroiDx said:
When you dirty flash rom updates and backups, you begin to run into these small bugs. Layering your software like this will add up. It's safe to keep a copy of your backup on your sd card, yes. If you perform a full wipe (wipe data, cache, dalvik, and system) you will be removing the OS entirely and allowing for a completely clean install. That's what I recommend. Since you are not formatting/wiping data, you will not lose any.
Click to expand...
Click to collapse
much appreciated. i did a full system wipe 100% and just restored from the nandroid fresh (it had worked before all teh crazy flashing.).
thanks!
Just to add to this thread, a Nandroid does not capture everything.
Such as, if you have maps saved to your internal SD card from a navigation app, those maps are not picked up as part of the nandroid.
I make a habit of copying my internal SD card contents onto my computer and then restoring them after restoring a Nandroid.

[Q] Weird!

Hey everyone.
Well, I'm getting back into rooting devices and changing roms etc... So, last night I refreshed myself (it's been a few years) and decided to flash Chameleon OS. With that said, I backed up some OS data by using My Backup. I also did a Nandroid backup, wiped my SD card (full of junk), and performed a system reset, cache wipe, and Dalvik cache wipe. Afterwhich, Chameleon installed fine; however, my SD card now has ALL of the junk back on it again. I still see old references to pictures, apps, and db files. As a result Chameleon, is not running at its best. Can someone tell me how/why my data was restored to my SD card?
Also, the backup I created using My Backup is no longer on my SD card. I re-downloaded to app after flashing Chameleon and attempted to perform a restore of my APN data...needless to say, My Backup reported that it could not find the backup on my SD card. Presumably due to the restoration of the old junk back to my SD card????
Can someone shed on light on this??
Thanks.
Jordan
jaykel941 said:
Hey everyone.
Well, I'm getting back into rooting devices and changing roms etc... So, last night I refreshed myself (it's been a few years) and decided to flash Chameleon OS. With that said, I backed up some OS data by using My Backup. I also did a Nandroid backup, wiped my SD card (full of junk), and performed a system reset, cache wipe, and Dalvik cache wipe. Afterwhich, Chameleon installed fine; however, my SD card now has ALL of the junk back on it again. I still see old references to pictures, apps, and db files. As a result Chameleon, is not running at its best. Can someone tell me how/why my data was restored to my SD card?
Also, the backup I created using My Backup is no longer on my SD card. I re-downloaded to app after flashing Chameleon and attempted to perform a restore of my APN data...needless to say, My Backup reported that it could not find the backup on my SD card. Presumably due to the restoration of the old junk back to my SD card????
Can someone shed on light on this??
Thanks.
Jordan
Click to expand...
Click to collapse
seems like nandroid backup wasnt backing up anything when it was saying it did lol. delete and install the apk again just to make sure it wont do it in the future

[Q] Does CWM Back Up Data

Hello,
I'm running the latest stable CM, and took a CWM backup. I wanted to revert back to stock to try a bunch of GPS fixes (not that any of them helped). Afterwards, I restored the backup, but all my photos and music are gone (there were not stored on the external SD card). Does CWM back up internal storage? Any ideas on what to do next?
Thanks.
If you wiped internal storage to flash AOSP, then your pictures are gone, If you used a full wipe odin oneclick, that has removed and wiped internal storage as well. You'll need use special tools to recovery data from internal, hopefully you didn't wipe the device like 1-3 times as people do that to fully make sure the device is wiped properly.
thetuber said:
Hello,
I'm running the latest stable CM, and took a CWM backup. I wanted to revert back to stock to try a bunch of GPS fixes (not that any of them helped). Afterwards, I restored the backup, but all my photos and music are gone (there were not stored on the external SD card). Does CWM back up internal storage? Any ideas on what to do next?
Thanks.
Click to expand...
Click to collapse
If it was lollipop cm you tried, to go back to KitKat you have to wipe internal storage (data/media) or that will happen. Cwm does not backup internal SD, but it also does not wipe it unless you specifically wipe it. Wiping data does not wipe internal SD nor does a factory reset done in recovery.

Clean wipe along with internal storage wipe? Consequences on phone?

I have rooted phones for years and am currently on a debloated Verizon LG v30 vs99630c rom. In all these years, all of my "clean" wipes have constituted of a factory reset and/or a cache, dalvik, system and data wipe. I have never done an internal storage wipe of my phone. I am wondering exactly what happens if I do an internal storage wipe either by itself or with the clean wipe. Does that wipe my external SD card (should I remove it before wiping?) Does it do anything to my sim card (I have never removed it)?
Would I have an operating system (vs99630c?) on my phone or in twrp to install? Would I still be rooted? I would like to start with a clean phone with zero on it (except the debloated rom).
Or is a factory reset and my Google sign on the same thing? I did do a clean factory reset yesterday, but not an internal storage wipe, but would kind of like to, as long as I still have my Verizon phone and root.
All of this would need to be done only on my phone and in twrp, NOT connected to a computer.
Thx, for any help, advice, answers and suggestions.
Please make them, if any, in a dummies sort of way.
Frank
gimpy1 said:
I have rooted phones for years and am currently on a debloated Verizon LG v30 vs99630c rom. In all these years, all of my "clean" wipes have constituted of a factory reset and/or a cache, dalvik, system and data wipe. I have never done an internal storage wipe of my phone. I am wondering exactly what happens if I do an internal storage wipe either by itself or with the clean wipe. Does that wipe my external SD card (should I remove it before wiping?) Does it do anything to my sim card (I have never removed it)?
Would I have an operating system (vs99630c?) on my phone or in twrp to install? Would I still be rooted? I would like to start with a clean phone with zero on it (except the debloated rom).
Or is a factory reset and my Google sign on the same thing? I did do a clean factory reset yesterday, but not an internal storage wipe, but would kind of like to, as long as I still have my Verizon phone and root.
All of this would need to be done only on my phone and in twrp, NOT connected to a computer.
Thx, for any help, advice, answers and suggestions.
Please make them, if any, in a dummies sort of way.
Frank
Click to expand...
Click to collapse
Look at WTF Section 6, Step 7a, 7f, 7g. Yes it's written for installing TWRP, but those three steps are what you're asking about. See attached screenshot.
7a is factory reset. You've done that several times.
7f is where you reformat your internal memory, where you type YES. (Then, Step 7g is just reloading TWRP from within TWRP, to refresh it.)
BUT, you do NOTwant to wipe out your OS. That's a step too far. Some people have done that. And in those cases they had to reinstall their OS through a zip file, as well as disable checker and disable encryption. They did this, either by dragging files over from PC (while still in TWRP, like a flash drive) OR by already having those files on microSD card. microSD card is not touched, either thorough proper data reformat or by accidentally destroying the Android OS.
If you completely wipe internal memory the wrong way, then you will need those three files on a microSD card -- or by connecting to a PC to drag them over -- so you can reinstall them.
But if you do it the right way, then you will not need those files. You will still have your OS but just with reformatted data. Which is a more thorough than normal factory reset. That's why factory reset is 7a, but reformatting data is 7f.
When you install TWRP, you have to do them both. Your TWRP is already installed, you're just going to revisit those two steps to have a very clean phone.
NOTE:. after doing this you will still need to re-flash Magisk, of course. So best to have that on microSD card, also!
Good luck!

Categories

Resources