Encryped files on SD Card then updated ROM, can't view the files now - 8525, TyTN, MDA Vario II, JasJam General

Hey everyone, I'm an idiot and completely forgot I encrypted the files on my SD Card. I installed a new ROM and now the images I previously had on the memory card are not able to be read by any software and the phone. My guess is, is that the encryption I had prior to flashing the new ROM has encrypted the file to where I can't even view them. Is there anyway to reverse this process? I know it defeats the whole prupose of encryption, but these pictures are important to me since they were pictures of my nephews at my cousin's wedding. I know they wouldn't be the greatest quality images, but I would still love to have them back. Any help on this matter is greatly appreciated

kman79 said:
Hey everyone, I'm an idiot and completely forgot I encrypted the files on my SD Card. I installed a new ROM and now the images I previously had on the memory card are not able to be read by any software and the phone. My guess is, is that the encryption I had prior to flashing the new ROM has encrypted the file to where I can't even view them. Is there anyway to reverse this process? I know it defeats the whole prupose of encryption, but these pictures are important to me since they were pictures of my nephews at my cousin's wedding. I know they wouldn't be the greatest quality images, but I would still love to have them back. Any help on this matter is greatly appreciated
Click to expand...
Click to collapse
Well, I have a feeling that you are out of luck here. Usually, encryption works with two keys: one at the source and one with the application that did the encryption. These keys are randomly generated. Since you wiped out the original ROM (and the encryption program and (probably) the 2nd key along with it), you are probably screwed. Sorry - wish I had better news. Now, there are special programs and stuff that break cryptography, and I don't know how secure the encryption with WM is, but that is probably not a practical solution. Sorry.

Well, that wasn't what I wanted to hear, but I feel it is the truth and accurate. I appreciate the response and explanation, thanks. Damnit, with my urgency to have the newest ROM, i lost some great pictures of family, oh well.

This is by design. The unique encription key is created during cold boot following a hardreset.
http://blogs.msdn.com/jasonlan/arch...card-wipe-and-encryption-what-s-the-deal.aspx

Ouch!!!!What a bummer
I almost did this with data on a PC which I sold last week. Copied files and tried opening them on my laptop. Luckily I still had the PC to unencrypt my FLICKS...LOL

Oops, that just reminds me I had an encrypted NTFS folder on the PC I upgraded to Vista last week (clean install). Usually never use that thing...
Meh, fortunately it was only an outdated copy of a folder I have on the main PC. But yeah, haven't even checked it, but there won't be any chance there either.
Fortunately I didn't encrypt my SD, as my phone now will just hang upon boot after I installed some program that screws up when loading the Today plugin. Hard reset in the way I guess... is there no safe boot in WM6?

Related

Undo apps2sd?

Hi all...
I've been getting a lot of suspicious errors recently (force closes and app shortcut names disappearing) and I'd like to go from apps2sd back to just a normal setup with my apps on the internal phone storage.
Can somebody please verify that the instructions here are up to date? I'm a little nervous about wiping my data (or bricking my phone).
http://wiki.cyanogenmod.com/index.php/Apps2SD
Also, can somebody tell me whether doing this will wipe out the (single) app I paid for from the Marketplace? If so, can I redownload it, or will I need to pay for it a second time?
I originally got apps2sd set up by using the recovery ROM prior to flashing Modaco's custom ROM v1.1.
The easiest thing to do would be to load the new RA 1.5.1 recovery image.
Then boot into it.
Go to Partiton SD
Select FAT EXT3 SWAP
and then set the partition sizes of EXT3 and SWAP to 0
Is there a reason you want to do this???
This runs a very very minimal chances of bricking your phone. The other method on that Wiki page has more potential to get you in trouble.
Did see the market place question.
There is a method laying around somewhere to copy all of your apps back to the phone instead of loosing them. Restoring a Nandroid backup would likly put them all back into the /apps/ directory sd card or not. apps2sd just changes the location of that directory really.
But the market does keep track of your google account and what apps you purchase, you wont have to re purchase (maybe on a totaly new handset).
hope my jiberish has made sense
jashdlfjasdhfjablgjkasgjlkasfhlajshf
At first I was interested in the whole apps2sd process, but have yet to implement it on my rooted, Fresh 1.0 Hero since so far, I haven't really seen a need for it.
But if you were to 'turn on' apps2sd and then decide later that you don't want it, there's a possibility of bricking?? Although I assume you can always reflash the RUU if something like that were to happen? Hopefully?
Think I'll stay away from the whole offloading applications thing for awhile.
mkhopper said:
At first I was interested in the whole apps2sd process, but have yet to implement it on my rooted, Fresh 1.0 Hero since so far, I haven't really seen a need for it.
But if you were to 'turn on' apps2sd and then decide later that you don't want it, there's a possibility of bricking?? Although I assume you can always reflash the RUU if something like that were to happen? Hopefully?
Think I'll stay away from the whole offloading applications thing for awhile.
Click to expand...
Click to collapse
The possibilities of bricking the phone are very slim, but they still exist. If a phone is truly a brick, not even RUU can help. RUU has to be able to detect the phone is there in Windows, so if its beyond that RUU is useless.
Nothing to worry about as long as follow the *usually* very well written step by steps across the interweb.
If it makes you feel any better I have only heard of one or two people to brick the Hero. Most things are recoverable.
Yeah, sorry, I didn't expect it would brick the phone so much as badly mess it up - like if it expects to run apps from the SD card and they aren't there I could see the phone being tough to use as a phone, but it wouldn't really be "bricked" in the sense of not responding to user input at all.
As far as why I want to do this, I haven't really seen a huge need for apps2sd yet, and when I was recently helping an app developer to debug their app it was just one more weird variable that seemed like a possible source of problems. I'm also hoping to start developing apps myself soon, so having a more vanilla phone seems like a good idea. (I also was influenced by the Fresh ROM apps2sd rant, to be honest.)
Anyhow, thanks for your replies. I'll probably repartition the card from RUU and then restore from Nandroid at that point. Will a repartition wipe the card filesystems out, or is the partitioner smart enough to preserve the existing data?
What I did is RUUed back to 1.2, OTA updated to 1.6
Flashed to the 1.5.1 image
(At this point I went to mess with the partitions and there was no ext)
Flashed to Fresh 1.0

Nandroid and Restores

Hi Guys,
I recently bought my Nexus one this past weekend. I'm coming from a Windows Mobile fan(boy) perspective of many years. Not the hugest linux fan, but at least the base level of Android control is a menu and not "dev cmd etc" command line stuff
I like the Nexus one so far. I tried CompanionLink/gSyncit/Nitrodesk Touchdown/Android-sync(Alpha)/Remember The Milk etc, and they all don't sync Outlook very well..so I'm happy to keep my Winmo phone for its use for that, which is excellent and easier to type imho for that kind of stuff within a windows environment. Kind of like a Palm pilot.
As for Apple. I'm proud to say I've never touched one for years, until yesterday. I *had* to get my father a slidey smartphone as a gift, because they're awesome to see and navigate. Since he's not a big data guy I couldn't justify a nexus one, so a used iphone 3G fit the bill.
Hope i don't have to touch it too much tho!
Anyways, I thought I'd give you guys some history on where I'm coming from as an introduction and seeing as I havent posted on here in a few years.
So..regarding my questions:
*Nandroid backups Question
- A nandroid-ext backup will not occur, and will display the ADB Error if you don't actually have an extended partition on your SD Card, correct?
I was trying to do an Nandroid+ext backup, because noobishly i thought it just meant it would backup everything. It didn't work, and neither did the "plug it in the charger tricks" etc, or check if you have enough sd space. So I figured it was because i didnt actually have an extended SD partition. Stock 4gig micro SD btw.
A NAND backup worked after that.
- How do I check if my SD card has an extended partition btw?
*Sdcard/Nandroid folder Question
Are nandroid backups saved here in a chronological order?
Meaning
/first directory asfldkjsdafjs/
/second directory aslkdfjljds/
First is my stock rom backup?
Second is my Cyanogen backup?
Say I do a third backup (it appears third right)? Will it be my Cyanogen backup *plus* all my added stuff I've done since then? Like widgets, contacts, email account setups?
*ROM Recovery
- So as a noob I'd like to play around a bit. But I'd also like to populate my phone with backgrounds (sd card), contacts, ringtones (sd card), Apps (sd and main mem) etc.
Say I want to move from my current rom (cyanogen 6) to say MUIMUI (sp?) in a week. When I goto Bootloader recovery and select the Muigungui.zip, will it still keep the phone "mine" on restore?
Thanks a lot for your help guys! I hope to join the Nexus One discussions now too after this my first post!
Your Nandroid backups are named by date and time of your backup.
Every backup you make, backups ALL user-accessible partitions on the phone. That includes pretty much EVERYTHING, both system (ROM) and data (everything else). All the rest of your questions have answers logically derived from this statement, please use the required logic.
Your SD card doesn't have anything unless you made it - which is obviously not the case, or previous owner made it - which is also obviously not the case, since you had stock ROM.
Thank you Jack.
I understand better now.
On looking at my sd folder structure, I see:
sdcard/HT096P800012/BCDES-date-4 numbers
Does the HT096P800012 subfolder stay the same, or does nandroid add more HT subfolders in time. (just a curiousity question)
In the 4 numbers part, if I did two backups on 201001103, does the higher number indicate the most latest backup by the logic you describe?
also, some backup folders have nandroid.md5 as a file and some don't. What is that?
Nerdy questions I know. I do thank you for your help?
(PS: If I update my radio with a new one, that doesn't affect my phone proper right?)
The upper folder stays the same - it's the name of your device.
4 numbers are hours and minutes
nandroid.md5 is MD5 sum of the backup, for verification. Not needed for restoring, AFAIK.
Radio doesn't affect your phone in any bad way, as long as it's compatible with your OS (radios for Eclair were different from radios for Froyo), and as long as you're flashing it correctly, without removing the power from the phone when it's in process of flashing.
Thank you so much!

Motorola Atrix Screen Alignment issue! everything is shifted down!

basically my motorola atrix doesn't work any more!!
the bit of the screen which is meant to be used to access the buttons bellow, work as though you are pressing the bottom of the visible screen!!
EVERYTHING is shifted down! if i want to press something, i have to press the area 1cm bellow the location!
I suspect it is cause by me formatting every single folder on the internal storage using clockwork recovery...
i have tried installing the original Rom using RSD, i have tried everything!!!
ANY HELP PLEASE?
the device is a piece of garbage now!
i saw that NO ONE else has reported this issue anywhere on the net!!
it can't be a hardware problem cause it was working before i formatted all of those folders! including the ones with the 3 character names... can't remember the names... but basically i formatted everything...
this is a common problem when you format / partition the internal memory. it screws up your PDS partition, which i hope you backed up. search a little more, there are lots of topics on this in the dev forum and I believe there MAY be a solution but i don't remember.
Just found a couple of threads...
I didn't back it up... does this mean that my Motorola atrix is practically worthless now? :s
Solution
http://forum.xda-developers.com/showthread.php?t=1131649
this apparently is supposed to work... will try it in a bit.
but still, you won't get the original mac address and bluetooth number and the rest...
:/ sad times... there must be someway to acquire the original values?!?!
benedict.s said:
http://forum.xda-developers.com/showthread.php?t=1131649
this apparently is supposed to work... will try it in a bit.
but still, you won't get the original mac address and bluetooth number and the rest...
:/ sad times... there must be someway to acquire the original values?!?!
Click to expand...
Click to collapse
i'm not sure there are, as those values were never meant to be cleared out.
can ask why you decided to format every folder in the memory?
dLo GSR said:
i'm not sure there are, as those values were never meant to be cleared out.
can ask why you decided to format every folder in the memory?
Click to expand...
Click to collapse
Well, if you look in the post i linked to, it is an image that i pushed into the partition...
it's working now at least!
I do have my mac address and IMEI, do you know how i can edit that image file to put my own values in it? i have no clue as to how the image can be edited.... :/
the reason i did that was because i had an HTC HD2 before. it originally comes with windows, and so when you installed Android, it had a horrible process... in that process, the MAGLDR and CWR as they were called, did not erase every folder in the phone's main memory... so i had gotten used to formatting them individually in that phone.. that's why i did it on the Atrix...
also, in the HD2 they were folders not partitions... so basically, i wasn't familiar with the exact core of Motorola android devices...
there must be a way to put in my own hardware details into the PDS image file?
benedict.s said:
Well, if you look in the post i linked to, it is an image that i pushed into the partition...
it's working now at least!
I do have my mac address and IMEI, do you know how i can edit that image file to put my own values in it? i have no clue as to how the image can be edited.... :/
the reason i did that was because i had an HTC HD2 before. it originally comes with windows, and so when you installed Android, it had a horrible process... in that process, the MAGLDR and CWR as they were called, did not erase every folder in the phone's main memory... so i had gotten used to formatting them individually in that phone.. that's why i did it on the Atrix...
also, in the HD2 they were folders not partitions... so basically, i wasn't familiar with the exact core of Motorola android devices...
there must be a way to put in my own hardware details into the PDS image file?
Click to expand...
Click to collapse
well, that's a little over my head, but i know some of the devs would be able to help you if you PMed them maybe.
coolios...
know anyone in particular?

Galaxy S5 & Encrypted 64GB SDCard - fail to mount

Hello
i have the Gold Galaxy S5 & a 64GB SDCard from Samsung.
The phone and SDCard are encrypted and have worked fine for a long while.
One day I tried accessing the files stored in the SDCard by connecting my S5 via USB 2 to my laptop (Ubuntu 15.10); and It failed to mount since.
I have created an image of the SDCard using 'dd' in Linux.
Therefore, I would rule out a hardware failure.
Furthermore, only once this card was mounted on this phone and I had a glimpse of my pictures, again it failed to copy anything out via USB.
Currently, when I put the SDCard into the phone it shows notifications saying:
... Preparing SD Card
... SD Card safe to remove
As I still have the phone encrypted - and I presume the encryption key are present.
Is there some way that I can copy the encryption key out of the phone? Use those to read the image of the SDCard?
The partition table of this SDCard does not appear to be correct - is it encrypted as well? Is this expected?
It is really annoying to have this happening when I was copying the data out of the phone as a backup ...
It would be really great to have my data back.
Your suggestion on how to solve this problem will be most welcome.
bumping ....
Thx
Since the moment that you damaged the encryption key protecting the card, the data over this card does not belong to you any more.
Kiriakos-GR said:
Since the moment that you damaged the encryption key protecting the card, the data over this card does not belong to you any more.
Click to expand...
Click to collapse
sorry
how did I 'damage' the encryption key?
I tried reading the SDCard in the same phone.
I have older backups of the phone that included the SDCard - would that help?
Thanks,
You better ask further questions in a forum specialized to Ubuntu 15.10
Kiriakos-GR said:
You better ask further questions in a forum specialized to Ubuntu 15.10
Click to expand...
Click to collapse
Doesn't sound like a problem on ubuntu's side unless it wrote some header or something when it tried to read.
Sent from my SAMSUNG-SM-G900A using Tapatalk
The card was mounted in the Phone - Ubuntu accessing it through the USB3
And it just stopped working - just like that!
But, could actually understand that it was something like that.
Would it be possible to reuse an old image (done with dd) of this USB to try and resurrect these files?
for info:
- where are the keys kept?
- surely the phone has some.
Cheers
nkdbr said:
for info:
- where are the keys kept?
- surely the phone has some.
Cheers
Click to expand...
Click to collapse
If I was aware of that? I would require 1000$ payment so to share it.
Message to all:
1) As long Samsung provides software tools only compatible with Microsoft Windows and Android, this translates that other OS platforms them are not supported.
2) Any attempt hacking phone encryption this is illegal.
3) One desperate owner who lost access to SD-card, he should physically visit Samsung service center, demonstrate proof of ownership for phone and card, and ask their help.
Kiriakos-GR said:
If I was aware of that? I would require 1000$ payment so to share it.
Message to all:
1) As long Samsung provides software tools only compatible with Microsoft Windows and Android, this translates that other OS platforms them are not supported.
2) Any attempt hacking phone encryption this is illegal.
3) One desperate owner who lost access to SD-card, he should physically visit Samsung service center, demonstrate proof of ownership for phone and card, and ask their help.
Click to expand...
Click to collapse
Android=Linux in a very basic sense. Even then, it's not 'not supported', furthermore as I said earlier, itse extremely unlikely plugging the phone in would break it regardless of the OS.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Rakuu said:
Android=Linux in a very basic sense.
Click to expand...
Click to collapse
I do agree and I did my homework about Android in old tablet about a year ago.
Rakuu said:
furthermore as I said earlier, itse extremely unlikely plugging the phone in would break it regardless of the OS.
Click to expand...
Click to collapse
When you use any OS this working with command line, this translates that if you are a terrible commander? you army this to be also drowned in the river because of you.
This is what it did happened here too.

Files get deleted when cut/pasting

So when I connect my phone to my PC and enable file transfer, I try and copy or cut and paste files and it doesn't work. Yesterday I created a new folder where my pictures are stored by default. I then copied and pasted the pics from the main folder to the new one and it went through the motions but didn't display any. I refreshed and still nothing. I backed out of the directory and the folder said it was empty but so was my main pic folder. So it basically deleted everything instead of pasting them in the new folder. Is there an easy fix to this? Never had this issue with my note 3 and 4. Or any other phone for that matter. Is there like a Read/Write command to turn on or something? Seams like a pretty big flaw to not be able to cut paste files and they just get deleted....
Any help on the subject would be greatly appreciated,
Never had any issues like this, both on encrypted and decrypted data. Try flashing the userdata again and see if the issue still persist.
Also, have you checked for the pics in Recycle Bin?
sufoalmighty said:
Never had any issues like this, both on encrypted and decrypted data. Try flashing the userdata again and see if the issue still persist.
Also, have you checked for the pics in Recycle Bin?
Click to expand...
Click to collapse
If it helps, I am not rooted and completely stock. How would I go about finding the recycling bin?
I have the same issue with my OP5 (decrypted)
Have you tried copy pasting?
Mine worked well when I did it (encrypted).
Just drag and drop, don't copy so much, try one folder at a time instead.
Also I'd never use cut and paste, if it fails you could end up in limbo with files missing.
Always copy.
Sent from my ONEPLUS A5000 using XDA-Developers Legacy app
strider5236 said:
If it helps, I am not rooted and completely stock. How would I go about finding the recycling bin?
Click to expand...
Click to collapse
You were moving pics from your PC to the phone, were you not?
Windows moves the files to Recycle Bin when you cut-paste.
sufoalmighty said:
You were moving pics from your PC to the phone, were you not?
Windows moves the files to Recycle Bin when you cut-paste.
Click to expand...
Click to collapse
No, just moving files from one folder to another within the phone. Just using the PC to play middle man to issue the command.
Pwnycorn said:
Have you tried copy pasting?
Mine worked well when I did it (encrypted).
Click to expand...
Click to collapse
I am not concerned about the files as I have a backup. What concerns me is that the OP5 does this to begin with. I have had several iphones and several Samsung phones and never encountered this issue. That is a design flaw within the software. I was hoping to get an answer as to if this can be fixed or if it is just a flaw with OP5's operating system. Just seems odd this phone does that.
strider5236 said:
I am not concerned about the files as I have a backup. What concerns me is that the OP5 does this to begin with. I have had several iphones and several Samsung phones and never encountered this issue. That is a design flaw within the software. I was hoping to get an answer as to if this can be fixed or if it is just a flaw with OP5's operating system. Just seems odd this phone does that.
Click to expand...
Click to collapse
It doesn't happen to everyone. So we can't really talk about a design flaw in the software, otherwise it would affect every device. It's more like a random bug I guess.
As I said, when I got this device I successfully copied my files. Granted, it did seem to have missed a few files (2 Titanium Backup backuped files) and possibly more I did not notice so far.
I've noticed dodgy OTG on the O+5 never had it in a phone before
Because the copying is done by the operating system of your PC, shouldn't there be the problem? The phone is just connected by the internal storage as an external drive. Or is this a driver thing?
Pwnycorn said:
It doesn't happen to everyone. So we can't really talk about a design flaw in the software, otherwise it would affect every device. It's more like a random bug I guess.
As I said, when I got this device I successfully copied my files. Granted, it did seem to have missed a few files (2 Titanium Backup backuped files) and possibly more I did not notice so far.
Click to expand...
Click to collapse
Well to me, bugs are inherently design flaws. lol But I don't want to argue semantics. I would just like to find a fix to this "design flaw"/bug. I can understand having a few files deleted or not transferred. But every single file that was selected, cut and pasted? That is just frustrating beyond belief. I just don't get why it does that to begin with. Never encountered this issue with any other phone I have done this same procedure with. I have no issues with transferring files from the pc to the phone. The problem is encountered when I am trying to do things with the internal storage. That is what is confusing me.
@strider5236, tried doing it again on decrypted data using Windows 10 and and Ubuntu 14.04. Moved with no issues. Encrypted data then did it again. No issues still.
Have you tried flashing the userdata image like I initially suggested?
sufoalmighty said:
@strider5236, tried doing it again on decrypted data using Windows 10 and and Ubuntu 14.04. Moved with no issues. Encrypted data then did it again. No issues still.
Have you tried flashing the userdata image like I initially suggested?
Click to expand...
Click to collapse
Can that be done on a stock, non rooted phone? If so, how do I go about that? Would odin be needed?
strider5236 said:
Can that be done on a stock, non rooted phone? If so, how do I go about that? Would odin be needed?
Click to expand...
Click to collapse
LOL. No, we aren't using a Samsung device. I'll send you the steps in a PM.
sufoalmighty said:
LOL. No, we aren't using a Samsung device. I'll send you the steps in a PM.
Click to expand...
Click to collapse
That would be great thank you.
There seems to be a bug in the Media Transfer Protocol (MTP) between Android and Windows 10. It loses files while copying.
http://winfuture.de/news,99331.html (German)

Categories

Resources