Application FileSystem spy - General Questions and Answers

Greetings !
I want to know if there is a way I could determine if particular app have changed/modified/acess files on FS.
I know about disasm the apk and search for the assets, but a lot apps changing the files, specially the apps who needs su access.
I need to find out how can I determine whitch files has been modified by specific application during install/run procedure.
LogCat doesn't provide much of it.
I know that this is possible on win32 systems to track app/service FS activity, but need to know if this is possible under Android ?
Don't want to make nandroid backups and check for diff's
Thx in advance.

Related

[Q] File Management and Locations

I've searched the forum on this, and unless I'm using the wrong key terms (very possible) I havent found any info contributing to this.
When downloading an app from the Android Market/Amazon Market, where exactly does the *.apk file get saved to? I like to have all my apk's in one area when flashing a new ROM, so I can just install them one after another (apps, widgets, live wallpaper, etc...)
Also, can anyone provide me with any info (preferably some link) in regards to Android's file management system, ie discussing in detail what folders hold what information and what that information pertains to?
One other question, what exactly is the difference between a filepath like:
mnt/sdcard & /sdcard in regards to opening/saving a file to/from those locations??
Apologize for the multiple questions, just thought Id save posts in doing so, and sorry if the information this is readily somewhere in the forum.
Thanks for any info on this!
EDIT: So I stumbled on the Android Developer's Site (feeling like a dumba$$)
http://developer.android.com/index.html
But I'm still unable to find an area pertaining to what I'm exactly looking for (the Directory Structure with explanation for GTablet Froyo) Am I missing something??
Dueces99,
Here is a start:
http://forum.xda-developers.com/showthread.php?p=12439780&highlight=Memory#post12439780
If you are rooted, use ES File Manager or Root Explorer or the like
to open up the file system.
Go to /sdcard and you will see the file system. Most of the file managers
will let you toggle to / and you can see the file system from the root side.
Literally, that's the basis and if you're a lot more knowledgeable than me
you can work down from there to the various sub-folders relating to the
OS functions.
Hope this helps get you started to where you want to go.
IMO, I don't ever get into the file system like I have done with Unix or Linux
in the past. Most of what I have needed to do under Android I just do using
one of the file managers like free Root Explorer.
Rev
P. S. -- When you hook the tablet to your PC and look at the "G:"
drive or however else it shows up in Explorer -- you are looking at /sdcard.
I understand what you are saying, and I am already familiar (atleast Id like to think so) with the main directories (sdcard, sdcard2, etc..) of the file structure, and what info. they hold. My tab is already rooted, and I have Root Explorer, ES FileExplorer, and Wifi File Explorer installed.
What I am looking for is a detailed description of what each folder (default Android structure) is for, and what information is stored in them.
For Example:
/acct: This folder holds...
/data: ...
/data/data: ...
/sdcard: ...
/mnt/sdcard: ...
Guess you could call it a Definition/Guide for the entire Android Directory Structure/Format?
Like in my initial post, where is the default location that downloaded apk's from the market go?
Sorry if my post was misleading, I'm just trying to gain a better understanding of the Directory structure just so I can better navigate through the various file managers and more efficiently find what I am looking for.
I would think the Android Developer's Site would have exactly what I'm looking for, but I haven't been able to find it. Thanks for your input though!
Dueces99,
I hope you find it.
I have made the statement before and I'll stand behind it, "The hallmark of Android as an operating system is its bad documentation."
Good luck!
Rev

Monitoring file changes and process access to file

Do there exist any means to monitor file changes and process access to file in android?
May be something like auditctl in linux.
Thanks
Anything?

Add APK - repack system.img

I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Do you have found how add app in system.img?
It's all around, but you can replace apps with others. In the linux system, unpack the img, and mount them. Then you can freely rename files as well as move files within the .img mount point
I chose the applications or other files I did not need, and moved them to the directories (which I named my applications). If the application needed libraries, you also had to get files in a similar way, and place them in arm or arm64 directories.
Then prepared files "stuffed" with data, using the command DD. That is, dd if = (source file) of = (the recipient file at the system.img mount point).
Thanks for reply, so this only on Linux? For Windows there is something?
Markosv76 said:
Thanks for reply, so this only on Linux? For Windows there is something?
Click to expand...
Click to collapse
I do not know, I do not use Windows. Certainly you can in a similar way from BSD systems, probably from Android and MacOS. I read something that Microsoft can somehow support linux shell, but I do not know the details. You can always use some distribution that works with a pendrive.
Thanks, I will try again
Markosv76 said:
Thanks, I will try again
Click to expand...
Click to collapse
You can use Virtual Box to run a Linux distro inside Windows or you can try using Cygwin.
Sent from my LGL84VL using Tapatalk
jaroslawstrauchmann said:
I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Click to expand...
Click to collapse
did you find a solution to this? please reply if yes, I am having the same problem

Android: How can i create files in Android/data/com.xiomi.hm.health/ folder

I am developing a custom Watchfaces App in Which i have to Create Watchface .bin files in Android/data/com.xiomi.hm.health/files/watch_skin_file/59/ into these directory without this my custom watchface app will not be able to apply custom watchfaces. I am new to android file storage development and does not know much about it. but i know that android have made some changes in storage in android 11. Can anyone tell me how can i do this in Android 10 as well as in Android 11. Please guide me exact ways and write sample code. Thanks
To manage system files their storage location must get mounted as RW, what requires device's Android must be rooted.

How to dump files from a game.

Hello, i'm trying to extract some assets from a game called Hatsune Miku: Colorful Stage.
I have tried to get the apk file and put it into an asset extractor but it doesn't contain most of the stuff.
The game installs some files on launch, so i suspected there would be an .obb file, but the game doesn't store any data under the android folder.
Google Play Store also seems to install additional files for the games on install, so that may also contain what i need, but i don't know how to get it.
I have tried to shell into my phone using adb, in an attempt to uncover some files, but since my phone (A32) is not rooted, i couldn't find anything related to the game.
I am fairly new to the "extracting files from a game" kind of thing. I used AssetStudioGUI in order to get my current files. The game uses Unity as it's engine and as far as my application shows, it's version 2019.4.15f1.
Any suggestions is appreciated.
rktfier said:
Hello, i'm trying to extract some assets from a game called Hatsune Miku: Colorful Stage.
I have tried to get the apk file and put it into an asset extractor but it doesn't contain most of the stuff.
The game installs some files on launch, so i suspected there would be an .obb file, but the game doesn't store any data under the android folder.
Google Play Store also seems to install additional files for the games on install, so that may also contain what i need, but i don't know how to get it.
I have tried to shell into my phone using adb, in an attempt to uncover some files, but since my phone (A32) is not rooted, i couldn't find anything related to the game.
I am fairly new to the "extracting files from a game" kind of thing. I used AssetStudioGUI in order to get my current files. The game uses Unity as it's engine and as far as my application shows, it's version 2019.4.15f1.
Any suggestions is appreciated.
Click to expand...
Click to collapse
Install the game from Playstore, let it install the additional files then find and extract those files. The app should be in data/data and your game app data and .obb should be in Android folder. Also, some parts of games are not installed on the device and some parts of game data are not stored on the device, they are in the server for the game, you can't access or modify those parts.
What are you trying to extract from the game?
We do not provide assistance with hacking paid games or paid parts of games, so, if that is your goal, you will not get any answers or help here. The forum rules prohibit such discussion.
Droidriven said:
Install the game from Playstore, let it install the additional files then find and extract those files. The app should be in data/data and your game app data and .obb should be in Android folder. Also, some parts of games are not installed on the device and some parts of game data are not stored on the device, they are in the server for the game, you can't access or modify those parts.
What are you trying to extract from the game?
We do not provide assistance with hacking paid games or paid parts of games, so, if that is your goal, you will not get any answers or help here. The forum rules prohibit such discussion.
Click to expand...
Click to collapse
I want to extract a few asset and sound files. Like i said i couldn't find the .obb files anywhere in the Android file. The game downloads a big content pack by itself on launch. They are stored in the phone, since it would be kind of dumb to download a few gb's of files and then using the server files.
rktfier said:
I want to extract a few asset and sound files. Like i said i couldn't find the .obb files anywhere in the Android file. The game downloads a big content pack by itself on launch. They are stored in the phone, since it would be kind of dumb to download a few gb's of files and then using the server files.
Click to expand...
Click to collapse
You can try using adb to create a adb backup of your user apps and user data/app data, then extract the contents of the backup file that adb creates. It doesn't require root as long as you aren't trying to extract system apps or system data. When you extract the data from the adb backup file, look in the data/data/ partition to find your user apps, your game apk and its installed data should be in there, then look in Android folder to find the app data for that app
Look for a guide on how to do a adb backup, the command to create the backup has specific optional switches to include or ignore the data of your choice. In your case, you want to use the adb backup command with the specific swiches to backup user apps and their app data but ignore everything else.

Categories

Resources