Expand or access contents of unix files in LOST.DIR? - Android Software/Hacking General [Developers Only]

I understand what this directory contains - It's a directory Mac OS X creates when it does a file system check and places any orphaned or corrupted files it finds in it - and I know why it is created - poor SD card unmounting on the mac - BUT the question I cannot find an answer to... how do you expand the unix file within it and get the lost data (images, photos, music, etc) back?
What's the point of creating this directory & files if nothing can actually access it or expand the orphaned files in the unix files and grab the content from within them and salvage it?
somehow while in Thailand, I lost a bunch of images and this LOST.DIR grew in content/size & has date stamps around that time and now has about 7-8 of these numbered Unix files. I transferred them to my phone but I want to access the contents.

Related

Files Lost, Help Me Please

Vogue on Winmo 6.1
I keep(kept) helpful files in a folder I call(ed) "Device Memos".
It contains passwords, setup info, application guides, manuals, and other things to help me manage my device. It is mostly .txt, .doc., .pdf. and some saved web pages (.html).
The other day I thought I'd leave a memo in an audible format. I used Resco Recorder which saved it in a folder called "audio recordings". I then went into the folder and copied the mp3(hold stylus down, copy). Then, I went to "device memos" and pasted it(stylus down, paste).
As soon as I pasted I was taken to the root folder in Resco Explorer. Very strange I thought. I returned to "device memos" and ALL of my folders/files were missing...it was empty.
I searched the device but couldn't find them.
I've tried several restore programs such as Recuva, Easeus, Duplicate File Detective, and others without success.
Strangely, with the SD Card inserted in a reader I can double-click and find files and folders with strange gibberish for text. Right clicking on the folder for properties displays 116 files, 112 folders, and 215 Gigabytes on a 16GB Sandisk!
Can anyone explain what has happened and help me restore this data ?
Sorry to say this but it sounds like your file has been corrupted since the check sum is obviously bad. Your only hope is to find something that can reconstruct your file, and I don't know of any.
Edit: Then again I'm no developer, so maybe there is another explanation.
It's clear that filesystem on SD card got corrupted somehow.
There are many paid and free filesystem recovery/fixing utilities available on internet, starting with Windows built-in chkdsk. You have to mount your SD card on Window to use these.
For best results make a raw dump of your SD card first (using dd for Windows or search for something user-friendlier) - after unsuccessful recovery attempt, you can restore original SD contents and try another utility without messup made by previous one.

[Q] Possible to Assign Multiple Group ID's to an App (UID) in Android?

Hey guys, I've been searched for many hours trying to find a solution to this problem I'm having. Let me first explain what I'm trying to do and the reason for it.
Basically I have Dropbox setup to auto sync encrypted files to a folder on my sdcard, lets say:
/storage/sdcard1/encrypted_notes/
Then I have Cryptonite installed and have created an encfs mount in my data folder here:
/data/data/share.encrypted/
I've created the mount point there because simply put, I don't want my decrypted files on the sdcard accessible by every other app that has access to the entire sdcard.
At the moment, /data/data/share.encrypted is chowned by the uid & gid that is assigned to Cryptonite.
Now I want my note reading app to be able to access all files in that folder so my plan was to simple add the note reading apps' UID to the GID of Cryptonite.
That's what I've been searching google to figure out how to do, add a UID of an app to a GID of another app in android.
Sounds simple enough, but I have no idea how to do it. There is no "groupadd" command in android as far as I can tell, nor does busybox have this command.
Is there some other way to do do this?
Or even... some other way I can setup my system so the decrypted notes are still available by both apps and no other app?
Any help is really appreciated. Thanks
I thought I had something going, I managed to change the group owner of the notes folder
/data/data/share.encrypted/ to uid of the notes program and gid of cryptonite and successfully mounted
/storage/sdcard1/encrypted_notes/ into that directory using cryptonite, and on top of that was able to edit the files in the notes program only to discover two things.
Firstly, mounting that encrypted notes folder to the data folder uses the filesystem permissions of the encrypted_notes folder on the SD Card (obviously), something I didn't think of - basically making /data/data/share.encrypted/ world write/readable to any app that has access to SD Card.
So doesn't really help me in terms of keeping things secure.
So then I thought of a new idea, creating a separate partition ext4 on my SD Card, making *that* folder my encrypted notes sync folder owned by the notes program uid and cryptonite as group and instead mount that, until I then realized, I need a 3rd app to have r/w access to this encrypted notes folder... my notes syncing app - FolderSync -
So now I think I'm back to square one. The easiest way to do all of this that I can think of (on a Linux system) would be to add the 3 apps to a group and just have the folder r/w by that group (and therefore those 3 apps).
But after lots of continued research the past few days... I'm finding that Android is very very anti-this-idea in the fact that it really really doesn't like apps sharing data (except universally shared data on the SD Card) and I can't figure out a way to assign apps to additional groups beyond their initial group that is created just for them. :crying:
I found another similar discussion about the non-security of storing your cryptonite unencrypted notes on world readable sd card here:
http://forum.xda-developers.com/showthread.php?t=1561339
With the following two points which are my personal concern as well:
http://forum.xda-developers.com/showpost.php?p=25837127
http://forum.xda-developers.com/showpost.php?p=26265852
I'm having a really difficult & frustrating time here.
Any thoughts anyone?

[TIPS/TRICK] How to deleted .thumbnails in Dcim and never comeBack again

hy xda
i just want to share a trick how to deleted .thimbnail folder in DCIM
what is thumbnails?
Thumbnails are reduced-size
versions of pictures, used to
help in recognizing and
organizing them, serving the
same role for images as a
normal text index does for
words. In the age of digital
images , visual search
engines and image-
organizing programs normally
use thumbnails, as do most
modern operating systems or
desktop environments, such
as Microsoft Windows , Mac
OS X , KDE ( Linux ) and
GNOME (Linux ).
http://en.m.wikipedia.org/wiki/Thumbnail
so.... if we look at the folder thumbnails
always bulky and uses a lot of
memory .... if they are removed
automatically returns
this a little trick
- DELETED .thumbnails folder using root explorer
- push menu button and make a new file
- make a new file n give a name .thumbnails
- move to DCIM folder
n look....youll never see .thumbnail again with a big size
i got this from my friend n i give credit to him
and some one has found this trick

[Q] File created on handset shows up as 0 bytes on MTP USB interface

I am running CyanogenMod (CM) 12 on my 1st generation Moto G. In the root directory as shown via the file manager, I created a "notes" folder, where I store text files. Files that I copy over from Windows 7 seem fine.
As an *aside*, the only proviso is that the native CM text editor uses Unix line endings (LF only, not CR+LF). So if the text files were DOS to begin with, any new lines of text added on the handset will have only LF, while old lines will have CR+LF. The CM text editor handles this well, seemingly treating both line endings in the same way.
I have a problem with any *new* text files created on the handset. I am not sure whether the problem is somehow related to the line endings. On the handset, I created a file tmp.txt of length 160 bytes (it contains 160 characters). When I view the text file from Windows 7 using the MTP interface, windows explorer shows the file as having 0 bytes. When I drag the file over to a Windows folder on the laptop, it is basically an empty file. Very bad.
I can use adb to pull the file over, and then it's fine (it's not empty). As a side note, the source path as seen in the handset file manager must be prefixed with storage/emulated/legacy/ when using adb pull.
I do not want to use adb pull to copy over a whole bunch of files. The klag in that process would make it a real headache. I will be regularly mirroring these text files between the laptop and the handset.
Can anyone suggest a reason why a file created on the handset looks so bizzarely empty when viewed over the MTP USB interface? Can anyone suggest a hopefully elegant workaround that doesn't involve too much geeking out? Geeking out is all fun and that, but the handset was really meant to save me time rather than become a project in itself.
Thanks.
It looks like I can avoid individually pulling and pushing files because adb push/pull are recursive commands. The source argument can be a list of multiple files. I might have found from google that a destination directory on the handset must be specified in terms of ./relative/path or might have needed a terminating "/" -- I can't remember, and unfortunately, I closed down my bash shell, so I can't examine the history.

.nomedia file hid my .nomedia file?

So I've used an app called File Hide Expert for a few years now on multiple devices. My S10e is the first one to give me troubles. I went to "unhide" (remove .nomedia files) on certain folders only to find my folders were empty. My first thought was that it wiped my files which bummed me out. But I was able to recover the thumbnail cache which helped for photos (yay low-res images). I still can't get to my videos or pdfs, which sucks because those were the important files. Anyway, I've been poking at the files for about 2 days now, and what I have found is that if I name a file the exact same name as one of my "deleted" files, it too vanishes, but a file under a new name stays. So I've come to the assumption that they are there, somewhere, just really really hidden. Possibly hid the .nomedia files with a .nomedia file?? Although when I plugged my SD card to my PC (Windows 10) and the folders showed up as empty, so I am kind of at a loss for what to do now. I've tried a slew of file explorers, data recovery apps, even considered rooting it briefly. I truly am at my wits end and need some help.
TL;DR: .nomedia files are gone along with other files, but directory still hides files under certain name.

Categories

Resources