Keeping Files When Updating An App - General Questions and Answers

I'm very new to all this so koala bear with me.
What I think I understand is that, for android/APKs/google play is that each app has a folder containing it's files and source, and when an app is updated, all of it's files get replaced except for the "private app data". I don't know what private app data is but I'm guessing it's data that the app produces when ran rather than downloaded from google play, such as game saves, downloaded images, etc.
My main concern is that (in the far future) when I publish an update for my app, any gamesave files will be deleted. I'm a right about private app data or should save files be placed in a special folder or something?

Related

[Q] Hiding media from gallery or music ("nomedia" trick not working)

Hi all
I've installed some apps which have their folder on the sdcard with various images, sprites, sounds (one of these is a satnav app).
The problem is, these appear and clutter my gallery and music apps. I use both apps from motorola and not their google counterpart.
I already put a .nomedia file in the folders, rebooted the phone, cleared data on those apps, deleted thumbnail caches on the sdcard, and it doesn't work. They still show up.
So how can I do?
Thank you in advance
I've partially solved my problem with a media re-scan, triggered by renaming a folder containing media files (and then renaming it back)
The problem is that, if files into that folder change, because any app (or I) copies new stuff into them, all the hidden files pop up again in the gallery/media.
I wonder if it's an Android bug or a Motorola bug...
I've had the same problem and I solved it by placing .nomedia files in the unwanted folders and then force a media rescan with the app "Rescan Media" eek from the market
https://market.android.com/details?id=com.addz.mediascanner
or using quickpix to create that file
manojsuper said:
you have to create a new file called ".nomedia" not a folder >.>
Click to expand...
Click to collapse
Where did I say that?
I tried media scanner but it doesn't work. (fyi i'm not rooted)
When I move music around (ie from the download folderr to the music folder) it gets duplicated in the music app, both motorola's and google's. Once i unmount and remount the sd card it sorts the problem on itself.
Same thing when I move images, the thumbnails get duplicated and only one of the two loads correctly, but I can't get them to disappear unless i delete my gallery's data, and then i lose all the video thumbnails. My gallery is now full of old thumbnails, gray "unknown" thumbnails, and thumbnails that don't load.
thenext1 said:
I tried media scanner but it doesn't work. (fyi i'm not rooted)
Click to expand...
Click to collapse
As far as I know, you don't have to be rooted to use the app I linked. There is a more extensive version of the app that specifically requires root which is what I base my assumption on...
The app only forces the android internal media-scanner service to re-index all files and it does so without giving any sort of feedback. Once the app is started the media-scanner is triggered and the app seemingly does nothing, so you wouldn't get a confimation or anything...
As I said I had the same problem, but using .nomedia-files and the app solved it... Be aware that if you place a .nomedia-file in a folder the contents of that folder and it's sub-directories are being skipped by the media-scanner.
I'd recommend cleaning up all the directories and systematically copy a .nomedia file in unwanted directories. After that launch the app ance more and you should be set...
Preggy said:
As far as I know, you don't have to be rooted to use the app I linked. There is a more extensive version of the app that specifically requires root which is what I base my assumption on...
The app only forces the android internal media-scanner service to re-index all files and it does so without giving any sort of feedback. Once the app is started the media-scanner is triggered and the app seemingly does nothing, so you wouldn't get a confimation or anything...
As I said I had the same problem, but using .nomedia-files and the app solved it... Be aware that if you place a .nomedia-file in a folder the contents of that folder and it's sub-directories are being skipped by the media-scanner.
I'd recommend cleaning up all the directories and systematically copy a .nomedia file in unwanted directories. After that launch the app ance more and you should be set...
Click to expand...
Click to collapse
The problem is that, even if I put nomedia files everywhere needed, when I move files in/out of these dirs, they all pop up in Gallery/Music, including those that were previously hidden. And to solve this (talking only of Gallery now) I have to clear its app data. It would be just easier to hide the "all images" section of Gallery...
I miss the good ol android 2.1 times where you could fiddle with everything with any app without worrying for refreshes, etc...
Give ".no_media" a try?
cogeary said:
Give ".no_media" a try?
Click to expand...
Click to collapse
I never heard of such a magic file name...
thenext1 said:
I never heard of such a magic file name...
Click to expand...
Click to collapse
Neither have I, but ROM Toolbox uses it when it puts previews of boot animations onto my SDCard and the gallery doesn't pick them up.
Just use QuickPic from the market, if it's available to you. I've been using it for quite some time, install that and freeze the gallery app. Ability to hide certain folders is built right in.
+1 to the QuickPic app...the stock Gallery SUCKS!!! I hide all the folders I do not want to be scanned and now I have a clean photo library. I also use PowerAmp for music since I hide my music folder so that I don't see album art and PowerAmp allows you to select folders to scan (regardless if there is a .nodedia file or not) instead of scanning everything. I believe Winamp will do the same thing, not sure.

[Q] Download Files From Google Drive

Hi ,
I uploaded some pictures on my Gmail Drive yesterday via Laptop.
When I use the Android Google Drive Client on my Gingerbread , I have options of viewing it or making it offline.
Is there any way of downloading the pictures to my SD card ?
Making it offline doesn't help because once I remove the Google Drive App from my Droid , I will no longer be able to view that picture.
I want a permanent download so that my downloaded pictures appear in my gallery even after un-installation of Google Drive.
EDIT: [SOLVED]
Disable encryption via settings, and the files are accessible in the below folder. Thank the man
Click to expand...
Click to collapse
The files seem to be in the google docs application folder, which on my system is found in /mnt/sdcard/Android/Data/com.google.android.apps.docs/files/pinned_docs_Files_do_not_edit/*CRAZY FOLDER NUMBER*
However, viewing the files does not work. It seems that this is a feature they have not included (for whatever reason).
Dropbox lets you export files.
You could also try another service called "Box".
KeePassDroid with Google Drive
I was going to create a new thread but in searching found this one. I'll use this one as maybe it applies with certain features not yet being implemented? Or am I overlooking or doing something wrong? I'll keep this simple. I use KeePass V1.x and KeepassDroid to keep my passwords in sync. It works great with DropBox. I have my database stored in the cloud and whenever I make a revision, it syncs across all my devices. Being the Google Whore I am, I was excited to try it with Google Drive. NO GO!
I can access the file and open the database with KeePassDroid without any issues. If I make a change and try to save it I get the following error. /data/data.com.google.android.apps.docs/cache/filecache2/123456789/databasename.kdb.tmp: open failed: EACESS (permissions denied). It won't let me write back to the database like DropBox will.
When I made the file available off-line, it would let me save the file, but it would not save that file back to the cloud. Do you think it's a permission issue on my side, or a limitation right now with Google Drive? Quick side note: I'm using a ported version of ICS but not really having any other issues. But if others are able to write back with a 3rd party app, then maybe it is something to do with the port....just a thought? If anybody has any ideas....Thanks!
RikkKeith said:
I was going to create a new thread but in searching found this one. I'll use this one as maybe it applies with certain features not yet being implemented? Or am I overlooking or doing something wrong? I'll keep this simple. I use KeePass V1.x and KeepassDroid to keep my passwords in sync. It works great with DropBox. I have my database stored in the cloud and whenever I make a revision, it syncs across all my devices. Being the Google Whore I am, I was excited to try it with Google Drive. NO GO!
I can access the file and open the database with KeePassDroid without any issues. If I make a change and try to save it I get the following error. /data/data.com.google.android.apps.docs/cache/filecache2/123456789/databasename.kdb.tmp: open failed: EACESS (permissions denied). It won't let me write back to the database like DropBox will.
When I made the file available off-line, it would let me save the file, but it would not save that file back to the cloud. Do you think it's a permission issue on my side, or a limitation right now with Google Drive? Quick side note: I'm using a ported version of ICS but not really having any other issues. But if others are able to write back with a 3rd party app, then maybe it is something to do with the port....just a thought? If anybody has any ideas....Thanks!
Click to expand...
Click to collapse
It *seems* to me like a limitation with their software. The fact that you can't even use the files outside of google drive/docs despite them being there indicates that either the files are encrypted, or in some other non-standard format. Uploading probably doesn't work because the file you put there are in the wrong format for the software to use them.
I switched back to Dropbox (which I never REALLY left) because of this. As a way to move files to your phone (like .zips to flash), Google drive falls short.
BK553 said:
I switched back to Dropbox (which I never REALLY left) because of this. As a way to move files to your phone (like .zips to flash), Google drive falls short.
Click to expand...
Click to collapse
Send them clear, direct feedback. Maybe they'll change it. After all, the product was just launched
Same here. I suspect G will change over time .
BK553 said:
I switched back to Dropbox (which I never REALLY left) because of this. As a way to move files to your phone (like .zips to flash), Google drive falls short.
Click to expand...
Click to collapse
Glad to see this thread. First thing I did was try to copy a file to my SD Card from Gdrive. Just keeps trying to open them. Only option I had was send to Dropbox from Gdrive and export from there. Kind of a waste of time.
Just wait and see what features they add on. Its still very early.
Is your phone rooted? Using ES file explorer, and having the "up to root" toggle enabled, if I went to the root directory /mnt/sdcard/download directory all of the 4 files I synced with google drive were able to be copied using ES file explorer without any problem at all.
It's a bit annoying, but for now it works for me!
Cirkustanz said:
Is your phone rooted? Using ES file explorer, and having the "up to root" toggle enabled, if I went to the root directory /mnt/sdcard/download directory all of the 4 files I synced with google drive were able to be copied using ES file explorer without any problem at all.
It's a bit annoying, but for now it works for me!
Click to expand...
Click to collapse
I could copy them no problem. The problem is, copied or not, they're unviewable.
Are you sure you are looking in the folder I mentioned, or are you looking in the folder that does not require root access? There is a link to those files in the directory that doesn't require root but even the thumbnail doesn't appear there.
Shrug, I pulled photos and a pc executable from that folder and copied it onto my SD card using the move option in ES file explorer which allowed me to email them to a friend.
How to enable Google Driver on my phone ?, i have download from Google Play but it's display not available in my country, hmm
When I went to the drive.google site after I installed the PC application it gave me a url to download the mobile app. I made sure "install non-market applications" was selected in my phone settings, opened up that site in my phone's browser, and installed it.
So I seem to have managed to get files from google drive onto my phone and tablet. I use an app called officesuite pro. I've got it on my prim and sgs2. It is a paid app but it connects to remote servers, google docs(drive), dropbox etc. If you access your files through there, you can copy the file, doc, zip whatever is on your google drive, and paste it to a local drive. All intact and usable.
This is crazy. As soon as my Drive was ready I transferred all my DB files to it thinking I'm all Google, so lets use it! Yeah, I can't access any of my files. With DB I could just long press a name, and download. Guess it's back to DB until Drive can do it too. Nice otherwise.
Cirkustanz said:
Are you sure you are looking in the folder I mentioned, or are you looking in the folder that does not require root access? There is a link to those files in the directory that doesn't require root but even the thumbnail doesn't appear there.
Shrug, I pulled photos and a pc executable from that folder and copied it onto my SD card using the move option in ES file explorer which allowed me to email them to a friend.
Click to expand...
Click to collapse
The folder you said was:
/mnt/sdcard/download , right?
I have the folder ( with a capital "D" though), except there are none of the files I made offline with drive in it.
stevemacer said:
So I seem to have managed to get files from google drive onto my phone and tablet. I use an app called officesuite pro. I've got it on my prim and sgs2. It is a paid app but it connects to remote servers, google docs(drive), dropbox etc. If you access your files through there, you can copy the file, doc, zip whatever is on your google drive, and paste it to a local drive. All intact and usable.
Click to expand...
Click to collapse
Thanks for the tip. Still, might shame to have to jump through such hoops. The other question is: does it work with non-doc files?
BK553 said:
I switched back to Dropbox (which I never REALLY left) because of this. As a way to move files to your phone (like .zips to flash), Google drive falls short.
Click to expand...
Click to collapse
same here. disappointing. but i hope they will change it in the future.
Yeah, it works with any type of file, I used it to download a zip. You can do it with jpegs too but you have to make it show unsupported files. Also, another way, probably easier is to log into google drive through your browser, you can download direct from there i've noticed. Just click on the file and it should give you the option to dl. Shame they haven't put this in the app.
stevemacer said:
Yeah, it works with any type of file, I used it to download a zip. You can do it with jpegs too but you have to make it show unsupported files. Also, another way, probably easier is to log into google drive through your browser, you can download direct from there i've noticed. Just click on the file and it should give you the option to dl. Shame they haven't put this in the app.
Click to expand...
Click to collapse
Funny I was just trying this. It does work, but it renames the file to some long weird label. Have you found a way to keep it the same name?
To be honest, i've not really tried it through the browser but when I download it through officesuite pro, it retains the original file name.

Random mysterious files appearing in Downloads folder

I keep experiencing mysterious, extensionless files that appear in my downloads folder. Sometimes one, sometimes more. I have confirmed that they only appear after I open the Snapchat app, even for just a brief second.
When I open the files as text I get random Chinese characters that don't seem to want to be decoded.
What are these files? And how do I remove them for good? I can hide them, but they reappear under different names.
Is there any way to either
A) prevent an app from creating files in the download folder
B) change the directory where Snapchat creates these files
C) stop Snapchat from making these files altogether
I am using Snapchat Beta on an unrooted Droid Turbo 5.1
SOLUTION: Using es file explorer, I highlighted the unwanted files and selected Menu > Hide. They're gone now and they don't seem to be coming back even though I've been using Snapchat numerous times per day. Still, if anyone knows why these files exist, how to get rid of them, or how to prevent an app from creating a file like this in the first place, this information would be appreciated.
Thx bruhs
It may very well be spyware, like the one at mspy dot com, or a government spyware app distributed via Snapchat.
Based on the file sizes people are reporting and the way it changes, I'd say this file in particular is probably an encrypted log file for a key logger. That is: It is everything you've typed, and it's sent to the one who's spying on your phone activity.
Hint: Hiding the file won't solve the problem (for the person who's being spied on anyway...).

Game no longer shows save data when I Edit the save files

The Game is "Day R Survival"
I just tried to edit the save file to add some resources but when I run the game after editing the file the game no longer shows my data and starts a new game instead
Fortunately I had backup but I still want to find a way to edit the save file instead of searching for mods for the game
Question
A quick question about that... where did you go in the directory to edit the save file?
I'm curious, because I've tried to do the same twice now to no effect.
mousalam said:
The Game is "Day R Survival"
I just tried to edit the save file to add some resources but when I run the game after editing the file the game no longer shows my data and starts a new game instead
Fortunately I had backup but I still want to find a way to edit the save file instead of searching for mods for the game
Click to expand...
Click to collapse
Maybe the data pertaining to your resources is not saved in the save file, maybe it is actually stored in the game server somewhere and the data in your save merely has markers for your resources, maybe editing your save file creates a conflict between the data on the device and the data in the server, causing a rejection of the save file, resulting in starting a new game.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Maybe the data pertaining to your resources is not saved in the save file, maybe it is actually stored in the game server somewhere and the data in your save merely has markers for your resources, maybe editing your save file creates a conflict between the data on the device and the data in the server, causing a rejection of the save file, resulting in starting a new game.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Day R saves are not server-side, they keep information regarding the inventory, quest, vehicles, caps, all of it in two locations, on your phone (or PC if using an emulator) and the cloud. If they're using the right directory (under data/data) then there are 6 profile files (3 main, 3 backups) to work with. Unfortunately, it seems the Day R devs don't want us modded players tweaking our goods, so each save profile has a checksum the game looks for when loading the file. If they don't math out, it loads the backup. If the backup has the same checksum conflict, it wipes both and forces you to restart. The only modified saves I've seen so far appear to predate the removal of the BelAZ from the in-game market and come in a modified APK of the game.
Onikage056 said:
Day R saves are not server-side, they keep information regarding the inventory, quest, vehicles, caps, all of it in two locations, on your phone (or PC if using an emulator) and the cloud. If they're using the right directory (under data/data) then there are 6 profile files (3 main, 3 backups) to work with. Unfortunately, it seems the Day R devs don't want us modded players tweaking our goods, so each save profile has a checksum the game looks for when loading the file. If they don't math out, it loads the backup. If the backup has the same checksum conflict, it wipes both and forces you to restart. The only modified saves I've seen so far appear to predate the removal of the BelAZ from the in-game market and come in a modified APK of the game.
Click to expand...
Click to collapse
The cloud IS server side, when storing data in the "cloud", it is being stored non-locally on a server somewhere, that is why it is called "cloud".
And the checksum is the "marker" that I was referring to, comparing the save files checksum(marker) to the data in the cloud(server), rejecting the save if it doesn't match the data in the cloud(server) and force starting a new game, is also exactly what I was referring to.
So, basically, you pretty much repeated what I was saying, you were just more "specific" with the terminology.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
The cloud IS server side, when storing data in the "cloud", it is being stored non-locally on a server somewhere, that is why it is called "cloud".
And the checksum is the "marker" that I was referring to, comparing the save files checksum(marker) to the data in the cloud(server), rejecting the save if it doesn't match the data in the cloud(server) and force starting a new game, is also exactly what I was referring to.
So, basically, you pretty much repeated what I was saying, you were just more "specific" with the terminology.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Okay, that's entirely my bad... though, I'm curious how that works with an emulator and a modded APK, since the game doesn't connect to the cloud server in this scenario, yet the checksum still works. (Save data is kept locally.)
Onikage056 said:
Okay, that's entirely my bad... though, I'm curious how that works with an emulator and a modded APK, since the game doesn't connect to the cloud server in this scenario, yet the checksum still works. (Save data is kept locally.)
Click to expand...
Click to collapse
PC or not, your data is still being stored in the cloud, if the data on your system doesn't match the data in the cloud, it's still a no-go.
Sent from my SM-S767VL using Tapatalk

kindle RCE plugin, hidden files.

I saw this on my device, and only found little info/threads, with almost zero content/analysis. Aparently the kindle app leaves a bunch of random files around. And since the prefix is "RCE" i am a little paranoid, since that usually means "Remote code execution" and is usually associated with exploits
Files:
CS_JIT_Animation.mp4
jit_cs_positive_preview.png
rce_plugin_strings_resource_cs_CZ.json.min
rce_plugin_strings_resource_de_DE.json.min
rce_plugin_strings_resource_en_US.json.min
rce_plugin_strings_resource_es_ES.json.min
rce_plugin_strings_resource_fr_FR.json.min
rce_plugin_strings_resource_it_IT.json.min
rce_plugin_strings_resource_ja_JP.json.min
rce_plugin_strings_resource_nl_NL.json.min
rce_plugin_strings_resource_pt_BR.json.min
rce_plugin_strings_resource_v2_TYPO_TEST.json
rce_plugin_strings_resource_zh_CN.json.min
All Attached in a zip created by the android native file manager.
Current places mentioning this
https://forums.oneplus.com/threads/unkown-files-in-download.948860/
https://talk.sonymobile.com/t5/Xper...erious-Files-in-Downloads-Folder/td-p/1353185
https://forum.xda-developers.com/xperia-xz1/help/phone-mysterious-files-download-folder-t3871763
https://www.youtube.com/watch?v=eMmx5tRm0jM (one of the files is a video, someone uploaded to youtube ...and to https://gfycat.com/generouspinkcolt
How to make those files appear for you:
Install kindle from the google app store
if you already have it installed, or want to see the files again after you deleted, Stop the app and delete all storage. (nothing will be lost, this app syncs everything and some more to the amazon servers)
perform the first Sync on kindle app
Now, insert a pen drive and open the native android File Mananger and look at the local Download folder
Files are somewhat hidden:
If you look into the download folder with any other app (I tried, blackberry file manager, oi file manager, Ghost Commander, and Termux --after enabling the storage setup)
Files probably have a weird attribute or ownership... but the native android file manager does not show anything other than creation date! And every single file operation (copy, move, compress) reset the information to "regular user, creation time set to now". So either I see them on the Native File Manager, without any information available, or I do not see the files until I destroy the information.
Android version is not important (seems to happen on several versions) and has been happening for a while (First mention seems to be Nov2018)
Anyone have any idea what this is? I know I will probably reverse eng the kindle app at some point, wast a bunch of time, and realize it is just some dumb amateur library badly implemented by amazon... or maybe not. I think at this point I am most curious as to how the app "hides" the files from most everything.

Categories

Resources