[Q] Find cached background image - Galaxy S II Q&A, Help & Troubleshooting

Hello all.
I've recently had to repair my phone and as a result all the data I had on it was erased. However, the custom background image I picked is still there, although I can't find the original file in any of the folders.
I don't have a SD card, so it could only be on the phone itself.
Does anyone know how I can restore that image? My thoughts are that the system 'cached' it somewhere and I would like to find it. I can't remember it's name, but maybe there's a folder of cached images or something...?
Thank you!

In /system/framework/framework-res.apk there is also a wallpaper which the phone defaults to when booting up for the first time.
Inside framework-res.apk it's located in /res/drawable-hdpi and called default_wallpaper.jpg.
So if you're rooted you can extract it from there and save it somewhere more convenient

Related

Backup contacts onto SD

Hi..
I was wondering if it is possible to save my contact onto my SD card.
I want to save them, before I wipe the Hero to install Modaco's new ROM.
Non of my contacts are google-contacts, so that is not an option.
My Hero is rooted, and I have been playing around in the filesystem, using "File Explorer".. I have come across a file called: "htccontacts.odex"
It is a file in system/app.
It uses 1MB.
I haven't been able to open the file in notepad or wordpad, with readable result.
My question to you, my dear android-lovers, simply is:
Does "htccontacts.odex" contain my contacts, their picture aswell as their facebook-link?
Because that could be an easy way to dbackup contacts..
Maybe to easy??
Regards
Tazimn
i dont know, but what you could do to test it is:
boot in cyanogen mod, and rename the file (with adb shell), then boot and look if your contacts have been gone (afterwards name it back to original name)..
or check whether the size of the file increases when you add some contacts.
Yeah... that could be a way to to it.. and maybe it will.. but I am holding my breath to see, if anyone in this forum knows exactly what the file contains..
Thank you for the idea..

Where are the wallpapers/ringtones located?

My phone is rooted, i've cleaned out most of the bloatware and i'm starting to customize it to my own, but i'm trying to find out where to put my music/ringtones/pictures/wallpapers and i'm kind of lost.
When I mount and open it to view files, these are the folders in my internal storage
Android
ClockworkMod
data
DCIM
FeebeRings
layar
TitaniumBackup
newsImage
update.zip
Can someone please tell me exactly where to put all of my things? It would be GREATLY appreciated, thanks!
For your Music,, you can put them in any folder,, the OS does a screen on the SD Card on every boot and it will detect your music. So basically just put them in a folder named Music.
The Ringtones go in \system\media\audio\Ringtones
Pictures Goes in DCIM, wallpapers can be put in the same directory cuz when the OS scans the SD Card it will detect your wallpapers as pictures.
The built in wallpapers are in an .APK so you can not have your wallpapers added to the built in...
^ I think you could probably take the TWwallpaper .apk and extract it to find the pics and delete/add them and then rezip it?
system/app/twwallpaperchooser/res/drawable-hdpi
this is where the backgrounds are. I wonder if you could just add/delete them in this folder using root explorer?
I have never done it.. but it seems like it could be done.
eortizr said:
The Ringtones go in \system\media\audio\Ringtones
...
Click to expand...
Click to collapse
So, I have the same question (having just successfully flashed), but am confused about the answer. In the poster's question, as in my phone, there is no "system" directory.
I still have bionix-v-1.3.1.zip in the root directory of the internal memory. Apparently the poster had already removed the .zip file of whatever version he/she flashed from the root directory. The only place I can find a \system\media\audio\Ringtones directory is in that zip file. I see all of my currently available ringtones there, and can't find them in any other directory. (This seems odd, as I'd have expected them to be created somewhere else in phone's internal memory, as part of the flashing process).
Are you saying to just go ahead and treat bionix-v-1.3.1.zip like a directory, and drag a file into the directory in that file?
P.s. I have that "is this so obvious to everybody but me?" feeling, since xKrazYx626 seemed to have no problem understanding your answer
You guys need to get root explorer to view these directories
Project-V 6/11/11
Shortbus-Driver said:
You guys need to get root explorer to view these directories
Project-V 6/11/11
Click to expand...
Click to collapse
+1 to that shortbus

[Q] How to make Archos Gallery not display .hidden items?

On my other Android devices I can simply put a . in front of folders that I don't want the gallery to display (such as avatar pics and shortcut icons and what not) and it wouldn't. Then I could use eStrongs file manager or similar to browse to them when I needed them. I popped a 2GB MicroSD card I had laying around that already had some files on it from another Android device and ALL of the folders with images are showing up in the gallery... even those with a . in front of them.
Is there any way on an Archos 101 to set the Gallery to NOT display items inside of a '.' folder? Seems this is default with other Android devices so I'm hoping it's at least an option on these.
Ideas?
Thanks for the help.
Moved to general as not android development.
OstrichSak said:
On my other Android devices I can simply put a . in front of folders that I don't want the gallery to display (such as avatar pics and shortcut icons and what not) and it wouldn't. Then I could use eStrongs file manager or similar to browse to them when I needed them. I popped a 2GB MicroSD card I had laying around that already had some files on it from another Android device and ALL of the folders with images are showing up in the gallery... even those with a . in front of them.
Is there any way on an Archos 101 to set the Gallery to NOT display items inside of a '.' folder? Seems this is default with other Android devices so I'm hoping it's at least an option on these.
Ideas?
Thanks for the help.
Click to expand...
Click to collapse
Create a 0kb file called .nomedia. Place it in the folder of items you don't want shown. That should work.
blazingwolf said:
Create a 0kb file called .nomedia. Place it in the folder of items you don't want shown. That should work.
Click to expand...
Click to collapse
Doesn't appear to work. I searched before posting this and found a few things about .nomedia and thought maybe you had to rename the actual folders w/the images within to .nomedia to hide them? Seems like this would be a PITA way to go about it.
Am I doing something wrong? Any other ideas?
OstrichSak said:
Doesn't appear to work. I searched before posting this and found a few things about .nomedia and thought maybe you had to rename the actual folders w/the images within to .nomedia to hide them? Seems like this would be a PITA way to go about it.
Am I doing something wrong? Any other ideas?
Click to expand...
Click to collapse
It should work just fine. Did you name the file specifically .nomedia? No ext name. Did you reboot to see if that helps? Did you put the file in the folder of the items you don't want showing?
Here is some more specific instructions (I didn't write them):
1. On your computer, open Notepad or any other text editor
2. Save the blank file with the filename “.nomedia”, make sure that the Save as type is set as “All Files” instead of “Text documents”
3. Copy that file to the folder on your SD card containing picture files you don’t want to show up in the gallery. (Example: If you want to block aDyno image files from coming up, place the .nomedia file in the sdcard/aDyno folder)
4. Reboot your phone and hopefully the unwanted files should no longer be viewable.
blazingwolf said:
It should work just fine. Did you name the file specifically .nomedia? No ext name. Did you reboot to see if that helps? Did you put the file in the folder of the items you don't want showing?
Here is some more specific instructions (I didn't write them):
1. On your computer, open Notepad or any other text editor
2. Save the blank file with the filename “.nomedia”, make sure that the Save as type is set as “All Files” instead of “Text documents”
3. Copy that file to the folder on your SD card containing picture files you don’t want to show up in the gallery. (Example: If you want to block aDyno image files from coming up, place the .nomedia file in the sdcard/aDyno folder)
4. Reboot your phone and hopefully the unwanted files should no longer be viewable.
Click to expand...
Click to collapse
Alright, w/more information I tried it again. I created a file just using a file browser on the device. This time around I created a file in Notepad on my PC called .nomedia and made sure the filetype was set to 'all files' before saving and that there was no extension (deleted the .txt) and then copied that file to my Archos 101. I first tried in the folder on the SD card that contained all the folders in question. I rebooted and it didn't seem to help. I then copied the file into each folder and rebooted. Still no dice. Whenever I open Gallery all the folders and images are still there. What am I doing wrong? Do I need to clear a cache or something or delete any tumbnails or ?? I'm sure I'm just doing something wrong but for the life of me I can't figure it out. I keep searching and am coming up with nothing. This was SO easier on my other Android devices as I just put a period in front of the name of the folders I didn't want to display and it was done. Simple as that. This is a royal PITA and I feel I'm not making any progress.
In the market search Studiokum or .nomedia. whit this app is easy control. Nomedia files
ramso said:
In the market search Studiokum or .nomedia. whit this app is easy control. Nomedia files
Click to expand...
Click to collapse
Do either of these allow you to simply hide w/o signing in or encryption? I found two other programs & both required this which I don't want to deal with. Just seems odd that others are saying this is working for them & I'm not having any luck. I don't mind installing an app as long as it works but I'm not sure why my Archos 101 would be different than the rest.
OstrichSak said:
Do either of these allow you to simply hide w/o signing in or encryption? I found two other programs & both required this which I don't want to deal with. Just seems odd that others are saying this is working for them & I'm not having any luck. I don't mind installing an app as long as it works but I'm not sure why my Archos 101 would be different than the rest.
Click to expand...
Click to collapse
This app working rigth for me, only add the .nomedia in the folders. Now the pictures in the folders i marked don't displayed in thr gallery
OstrichSak said:
Do I need to clear a cache or something or delete any tumbnails or ??
Click to expand...
Click to collapse
Reset multimedia library in Settings - Repair & formatting.
lolo33 said:
Reset multimedia library in Settings - Repair & formatting.
Click to expand...
Click to collapse
Yes! This is EXACTLY what I needed. Thanks!

[Q] Editing /data/system/packages.xml

Hi guys,
I'm currently trying to manipulate the file /data/system/packages.xml in order to make Android start one of my apps with another user id. However, this doesn't work because it seems that Android recreates the file completely when shutting down the system which means the old user id is being written back into the file.
Without rebooting, changing the file's contents (or even deleting it completely) doesn't do anything either, it seems that the contents are being loaded into the memory on boot.
What I need are your ideas on how I can make my app run as another user (or edit the file permanently) I need this because I want to access another app's non-exported service.
Thanks in advance!
edit: Even if I try editing the file and then shutting down the system unexpectedly (One X, holding down power for like 10 seconds without using the software shutdown), the file is being restored after reboot. When I check the file in CWM after a normal shutdown, it's also back to normal. So I guess Android rebuilds it on shutdown AND on boot.. or something?
edit2: I just tried the following: Rebooting into CWM, editing /data/system/packages.xml from there, checking file contents (worked), rebooting system - file contents restored. I'm starting to think that this isn't the file I have to edit. But which one is it?
edit3: Tried editing /data/system/packages.list instead, didn't work either. The file is also being restored to the original state.
- Android 4.1.1, CM10, German
did u managed anything?got same issue

[discussion] where does snapchat store photos/videos?

So I've went into the /data/data/com.snapchat.android/ folder, and it is only about 200KB, so the image/video files can't be stored there.
I also noticed if you have a new message, and you close and open the app, it will have to redownload it. So it seems that snapchat is storing the images in the RAM.
So I dumped the ram of my snapchat PID, using this method. I had to download a compiled gdb binary.
I then used photoRec to scan all the *.dump files [I concatenated them all first, the file was about 100MB]. For filesystem I said "Other."
All I got was one txt file. It seemed to be xml, and contained a lot of usernames of my friends, but that's all.
If anyone has any input on the subject, here is the thread for it!
Bump for interest
mvmacd said:
So I've went into the /data/data/com.snapchat.android/ folder, and it is only about 200KB, so the image/video files can't be stored there.
Click to expand...
Click to collapse
Snapchat save picture under /data/data/com.snapchat.android/cache/received_image_snaps. You then have to copy and paste the file out of the folder, and rename the file extension from .jpgnomedia to .jpg
I can not find where the videos are stored. That's how I found this thread.
Like the previous poster said images are stored in /data/data/com.snapchat.android/cache/received_image_snaps. They are deleted when they are viewed though so you must copy them to your sdcard or wherever and change the file extension before viewing them. Videos are stored in /data/media/0/Android/data/com.snapchat.android/cache/tcs_pahn
Samsung Infuse
Where can I find these files on my Samsung Infuse? I go into /data/data/com.snapchat.android/cache but the folder is empty.
JCBucks said:
Where can I find these files on my Samsung Infuse? I go into /data/data/com.snapchat.android/cache but the folder is empty.
Click to expand...
Click to collapse
I have not had time to check this location, however I have sort of discovered a workaround. [HTC Rezound CM10.1]
Ideally you should have a wifi toggle in the statusbar.
Open snapchat and then click on your snaps, after it loads the images [It will say "Loading image..", then "Tap to view"], turn off WiFi. Then you can view the snapchats [pic or video], and before enabling wifi, wipe Snapchat's data.
This way you can screenshot while offline and they will not know.
Alternatively you can use TitaniumBackup. Backup app while logged in, after viewing snapchat offline, restore data from backup so you do not constantly have to login.
JCBucks said:
Where can I find these files on my Samsung Infuse? I go into /data/data/com.snapchat.android/cache but the folder is empty.
Click to expand...
Click to collapse
same here....
Galaxy Nexus CM 10.1
If you can't find the video folder, it's because it deletes it and the videos when they are not loaded. They are stored under /data/media/Android/data/com.snapchat.android/cache/received_video_snaps/ in mp4 format with a .nomedia file extension. As soon as you navigate away from the app, they are deleted, so I set up a tasker gesture to allow me to copy them while they are loaded.
As people said before, the images are stored in /data/data/com.snapchat.android/cache/received_image_snaps/ with the jpg.nomedia extension. If that folder doesn't exist, try making sure you've received and loaded a snapchat first. The images seem to stay until they're viewed.
shenkenstein said:
If you can't find the video folder, it's because it deletes it and the videos when they are not loaded. They are stored under /data/media/Android/data/com.snapchat.android/cache/received_video_snaps/ in mp4 format with a .nomedia file extension. As soon as you navigate away from the app, they are deleted, so I set up a tasker gesture to allow me to copy them while they are loaded.
As people said before, the images are stored in /data/data/com.snapchat.android/cache/received_image_snaps/ with the jpg.nomedia extension. If that folder doesn't exist, try making sure you've received and loaded a snapchat first. The images seem to stay until they're viewed.
Click to expand...
Click to collapse
That location you name for videos doesn't exist on my phone.
- I have /data/media/ "0" and "obb" are the only 2 folders within there
- I have also read that the videos are stored in /Storage (SD CARD)/Android/data/com.snapchat.android/cache/... but there isn't anything further from here, my 'cache' folder is empty, there's never been a "received_video_snaps" folder, let alone any content within here.
- I am able to get the photos from /data/data/com.snapchat.android/cache/received_image_snaps/ but never been able to intercept videos
Note: this is all done BEFORE "viewing" the material and allowing it to "load" and show "tap to view" from within SC
I'm using the EVO 3D CDMA version
incarceration said:
That location you name for videos doesn't exist on my phone.
- I have /data/media/ "0" and "obb" are the only 2 folders within there
- I have also read that the videos are stored in /Storage (SD CARD)/Android/data/com.snapchat.android/cache/... but there isn't anything further from here, my 'cache' folder is empty, there's never been a "received_video_snaps" folder, let alone any content within here.
- I am able to get the photos from /data/data/com.snapchat.android/cache/received_image_snaps/ but never been able to intercept videos
Note: this is all done BEFORE "viewing" the material and allowing it to "load" and show "tap to view" from within SC
I'm using the EVO 3D CDMA version
Click to expand...
Click to collapse
I'm running TouchWiz. I wonder if you are on a 4.2.2 ROM or something, cause I've experienced the sdcard being moved around before...
Does your "0" folder have any subdirectories? such as Android/data/com.snapchat.android/cache/
In any case, videos are special: You need to actually click "load" (but don't hold, or else you'll actually view it before saving) if it doesn't do that automatically. Unless I misinterpreted, you didn't do that step. I think they might load automatically on Wi-Fi or something, though. For a general rule: As soon as it says "Load", the video is no longer (or never was) on your device. Furthermore, the sneaky little application deletes the folder at the same time, which is why you're never seeing "received_video_snaps" within the cache folder you found (assuming that one actually stores the videos in your version) because in my experience, almost everytime you navigate away from Snapchat, it unloads the video.
If you want to test for whether a file exists in a particular directory using Tasker, mess around with different directories in a File Modified profile (and have the associated task flash something). It'll flash as soon as something is added to that folder (including another folder, it seems).
Otherwise, check out my thread for this here.
I'm not familiar with Tasker. is it possible to have it automagically copy and rename the files that show up in the picture cache folder upon receiving a snap?
-edit-
From reddit:
I've got one method working on doing this, albeit I dislike it because this is questionable practice as is.
you''ll need Tasker and the Secure Settings plugin (tasker's run shell didn't like playing nice most of the time, but the secure setting run command does).
so i have tasker wait for snapchat to be opened, then the opening tasks are to wait 7 seconds (gives you time to load any pictures, honestly, i tried doing this with a file closed but tasker doesn't seem to like using wildcards in that command. if you really want, you can make this an exit command and open snapchat then back out before viewing)
then run shell as root cp -r /data/data/com.snapchat.android/cache/received_image_snaps/ /storage/emulated/0/snaps/ (you'll need to change the second directory, mine is for a gnex on 4.2.2 so that's why it's emulated/0)
next, you'll need to make a script in atext editor, and for sake of sanity, push it to /system/bin with chmod 755 (rwxr-xr-x)
the script then reads as CODE
!/system/bin/sh #there should be a hashtag in front of this but reddit's formatting is being wonky
cd /storage/emulated/0/snaps/ #wherever you copied them to
for file in *.nomedia
do
mv "$file" "${file/.nomedia}"
done
exit
then in tasker, as an exit action, run a secure settings run command with the command of whatever your script name is (include location if you do no push to bin).
it should work
You can play with the triggers and such, but i was having no luck including the scripted portion with the copy actions, it never seemed to run the script (secure settings has options to notify that it's running/completed).
Again, this is mean to be instructional on how to automate this with tasker, since I wanted to solve a puzzle. Not for anyone to be a creepy ass person saving snapchats that you shouldn't.
Click to expand...
Click to collapse
Couldn't post link =/
nannus said:
I'm not familiar with Tasker. is it possible to have it automagically copy and rename the files that show up in the picture cache folder upon receiving a snap?
Couldn't post link =/
Click to expand...
Click to collapse
Is it possible, yes. Will it work flawlessly, not really.
Once I move the file and remove the no media extension. I can open the image but it is blank. Any ideas? Anyone know how to retrieve deleted Images
kprz24 said:
Once I move the file and remove the no media extension. I can open the image but it is blank. Any ideas? Anyone know how to retrieve deleted Images
Click to expand...
Click to collapse
Deleted images are deleted. That's the point of Snapchat. As for the file you moved (I'd recommend you copy it instead, cause Snapchat'll show a blank screen when you view it if you moved the file), make sure it ends in .jpg (for images) or .mp4 (for videos).
kprz24 said:
Once I move the file and remove the no media extension. I can open the image but it is blank. Any ideas? Anyone know how to retrieve deleted Images
Click to expand...
Click to collapse
Actually there is a program called PhotoRec that scans a disk for files using the headers. So as long as the file is unfragmented and not been written over, you can retrieve it with the software. Of course you'll have to either plug in your phone to your PC with usb mass storage mode [if your phone supports it], or else put it in a card reader.
mvmacd said:
Actually there is a program called PhotoRec that scans a disk for files using the headers. So as long as the file is unfragmented and not been written over, you can retrieve it with the software. Of course you'll have to either plug in your phone to your PC with usb mass storage mode [if your phone supports it], or else put it in a card reader.
Click to expand...
Click to collapse
Nice! I didn't think that technology was available on phones at this point.
quantemplation said:
Nice! I didn't think that technology was available on phones at this point.
Click to expand...
Click to collapse
Well actually it's not run from the phone [as I mentioned in my previous post], you must plug your card into your PC with usb mode in order for it to work.
I have used PhotoRec in the past and it has worked pretty well. The only thing, and it's not PhotoRec's fault, your files will have a random number. There's no way to know what the old filename/path used to be, so you have to figure that part out on your own.
In short, always backup your sdcard unless you don't mind losing everything, and depending on the damage, might be able to recover the files, but only the ones not fragmented and they will be randomly named.
I developed an easy way to sync the received pictures and videos with your Dropbox account.
If it is interesting you can check my thread here
Using the Droid DNA and looking in com.snapchat.android and the cache folder is there, but that is empty. There is no received images folder. Anyone know why this is the case? I know I've gotten plenty of images from snapchat.
jaredkent said:
Using the Droid DNA and looking in com.snapchat.android and the cache folder is there, but that is empty. There is no received images folder. Anyone know why this is the case? I know I've gotten plenty of images from snapchat.
Click to expand...
Click to collapse
The same thing is happening with my Galaxy S3

Categories

Resources