How do I replace files in a mobile game? - Android Q&A, Help & Troubleshooting

Hello, I am wondering if anyone knows how to replace files for a mobile game? Game in question is game called "Crossing Void", and I want to change some art (pictures ingame). I managed to take out the apk but it sadly didn't have the pictures I wanted. (Turns out its the asset folder, no .obb or not in the .apk itself, if I'm correct).
I spent some time and found more of its data in Android > Data > Gamefolder_CompanyName [1]. I copied and moved it to the pictures folder (PC Shared Folder) [2], took it out and placed it on my desktop (then extracted the files as they were in ZIP format) [3]. Afterwards I used a program to extract all the assets (the files had no extensions, including audio and textures, just a plain file name so I unfortunately couldn't view them) [4]. But I didn't want to give up so I spent some hours researching and found out I have to extract the assets, luckily I found a program called AssetStudio GUI [5], and used that.
After I extracted all the assets I can finally open and view the files, be it music or pictures! (they got extensions now, .ogg, .png, etc). So I replaced some pictures, I made sure they retained same file name and everything even after replacement. But this is where I am stuck. I don't know how to turn these pictures back to their original "structure" (so that they have no extension like they originally had, just plain name). Maybe if I can figure this out, I can put the newly modified zip (which has my added pictures that I replaced) and replace the original zip (which has the old pictures).
I tried by just renaming my picture, example xdadev.png to xdadev, zipped the folder and replaced. But I still had original picture ingame when I logged back on. I made sure to delete old folder too and paste the modified one in here. [6]
P.S/ ((I placed the new zip in the pictures folder (PC Shared Folder), went on my emulator, opened ES file explorer, copied the folder and placed it in the Android > Data folder). I did delete the original one first, but no success as aforementioned).
Sorry for the long message, I just wanted to make sure to include all the information!
[1] i.imgur.com/FQEd9f1.png
[2] i.imgur.com/gujZrWW.png
[3] i.imgur.com/ 7SkaqIP.png
files were located here: com.actgames.fcigl --> files --> PatchCache) / or (com.actgames.fcigl/files/PatchCache)
[4] i.imgur.com/qMjQlLW.png (fil means file).
[5] AppVeyor
[6] i.imgur.com/4XAO5OZ.png

you can try https://github.com/DerPopo/UABE if the game is Unity

Related

[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!

(Tool) Compare files.

First off I have nothing to do with the creation of this tool I'm merely sharing what I've found.
Anyone who has dug into smali files knows that they can be somewhat overwhelming and trying to track down a problem can be a time consuming nightmare. One thing I do to hunt down a problem is compare what I know to be working against what is broken so I was sitting here today thinking that I would write a script or create a tool to batch compare files then I said to myself "EB, you're not the first one that's wanted to do this so there must already be something." I fired up Google and sure enough there are a few. The one that I found that is free and handled my task can be found here http://www.grigsoft.com/download-windiff.htm
Quick tutorial;
1. Download the file.
2. Create a new folder (anywhere you want)
3. Extract the contents to your new folder
4. Place the items you want to compare in that folder (they can be anywhere really but it's simpler to have them in the same directory.)(For my purposes I de-compiled the classes.dex of two framework.jar files and moved the entire output files to this directory in two separate folders.)
5. Run the program
6. Select File
7. Select either Compare Directory (what I did for my purpose) or Compare files. A dialogue box will pop up where you select the 2 sources that you want to compare.
Now this tool will only output what files are changed. There are other tools out there that can do more but I like the ones that are free. At least with this I can scan hundreds of files at once and see where I need to begin
if you want to search for code in multiple files and what not else,
http://notepad-plus-plus.org/
has a great program for that
You can search inside the files of a whole folder if you want to....pretty cool

[Q] Extracting AUDIO from large applications?

Hello, the newly released Android game developed by Avenged Sevenfold, Hail to the King: Deathbat, has some cool soundtrack.
I'm trying to extract the audio from the game, so I can listen to it personally on my computer, or android device with all my other music.
I've searched around, found out how to extract from APK's, but that was it.
I coped the APK to my computer from /data/app, and opened it with WinRar. I searched around all folders, and couldn't find the audio files. I knew this would happen, because the store page said the game was 500MB.
I went into my device, and into /android/obb/gamefolder and /android/data/gamefolder. The data folder contained nothing and didn't have any big files. The obb folder had a .obb file that was 500mb. I copied that to my computer and opened it with WinRar. I found some .MP4's wthiout openeing any folders which were some cutscenes from the game. The only folder there was is the bin folder. Inside there was only a DATA folder. And then in that folder, just a bunch of ASSETS, RESS, SPLIT files, and just files with no extensions. I tried opening a couple, but couldn't with WinRar.
So, is it just impossible to find audio files in this certain game, or am I Doing something wrong?
thank you!

How to exclude whatsapp gif_preview_cache folder from being included by windows scan

Whatsapp version 2.17.427 (latest updated as at 07 Jan 2018)
Phone : Samsung Galaxy S7 Edge
Android : Nougat 7.0
Windows : Windows 7 Ultimate
I would plug in my phone to pc via USB, the Autoplay options will appear, I will select "Import pictures and videos" and then it will start scanning all the folders in my phone, including microSD card.
The results will always include ALL the hundreds of gifs that I scrolled in whatsapp to preview first, before selecting and sending the 1 that I want. So I googled and read about the ".NOMEDIA" file. I did the following :
Folder path : Computer\Samsung Galaxy S7 Edge\Phone\Android\data\com.whatsapp\cache\gif\gif_preview_cache
I copied existing .nomedia files that i can find in my phone to the above folder. Didn't work, scanning still pickup the gifs.
I deleted the .nomedia file I copied, and use the native "My Files" explorer to create a new file in the above folder and name it as .nomedia. Didn't work, scanning still pickup the gifs.
I tried the above 2 methods, but this time, I restarted the phone and re-plugged in the usb. Didn't work, scanning still pickup the gifs.
I tried using ES File Explorer and create the .nomedia file. Didn't work, scanning still pickup the gifs.
I installed Nomedia app. The app didn't even have this gif cache folder on the list. No add folder function too. Next!
I tried renaming using one of my file explorer app by adding a dot to the gif_preview_cache folder so it becomes ".gif_preview_cache". From my pc, the folder disappeared. But I can still see the renamed folder from using file explorer from my phone. So the renaming works. As for the gifs scan, well it "works" because now the folder is considered hidden. Scanning will not pickup. But this is not a good permanent solution because of the problem below.
The problem is that, if i go to whatsapp to preview gifs again, whatsapp will create a NEW gif_preview_cache folder and store all the previewed gifs. Scanning will pickup. So that means, I gotta constantly rename. or it is like the same as deleting the whole folder each time. The .nomedia is supposed to do its job as a permanent solution.
After all these, I know the following will also be unlikely to work, but i still tried anyways by putting .nomedia files in the parent folders "gif" and the parent of gif, "cache". Didn't work, scanning still pickup the gifs.
The only thing i can think of is a workaround by telling whatsapp to save the gifs cache to the dot folder ".gif_preview_cache". I don't see such option available in the app. So this would require hacking whatsapp, so nah.
I am out of ideas now. Does anyone knows why certain folder like the gif_preview_cache is still pickup with the .nomedia file in it?
oh, by the way, "lockscreen_capture_port.png" keeps getting pickup as well in the folder :
Computer\Samsung Galaxy S7 Edge\Phone\Android\data\com.android.systemui\cache
I already put the .nomedia file in it. I believe this info will help, as it is now two different locations. I suspect maybe its the parent folders, maybe the "data" folder or the "Android" folder being excluded by... windows scanning procedures or something, or it is an android problem, I don't know...
I am exhausted of all possible experiments. Any contribution is appreciated. Thank you for your time and expertise!
I hate it too when all my **** pics get sucked into my wife's laptop.
Sent from my PH-1 using XDA Labs

Android Galaxy note 10Plus

I have renamed DCIM folder and its vanished, But it contained 30 GB of photos. But in microseconds.
Anyone could advice whether can restore. thanks.
Do you mean that folder and all photos in it have disappeared after you renamed the folder?
In general, this is impossible. Open the 'Files' app to find the renamed folder and your photos.
Hi Mr James,
Yes, totally gone missing. It was about 30gb.
James_Watson said:
Do you mean that folder and all photos in it have disappeared after you renamed the folder?
In general, this is impossible. Open the 'Files' app to find the renamed folder and your photos.
Click to expand...
Click to collapse
After renamed, i did undo rename in windows PC. Then happened this
lakshmi_SG said:
After renamed, i did undo rename in windows PC. Then happened this
Click to expand...
Click to collapse
Did you have them backed up on the PC?
Renaming that folder as is now obvious to you is not a good idea, here's why.
Why Does Every Camera Put Photos in a DCIM Folder?
Every camera — whether it’s a dedicated digital camera or the Camera app on Android or iPhone — places the photos you take in a DCIM folder. DCIM stands for “Digital Camera Images.”
www.google.com
The camera will also not recognize the renamed folder when you take a picture unless you edit the cam app's coding.
I copy the DCIM folder subfolders to a renamed folder on my SD card then back that folder up. I then delete the images in the DCIM subfolders and start over about once a month.
If you really deleted the DCIM folder (I don't think this is possible on a stock Android but never tried it!) things will get dicey.
Search by file type, image or jpeg and check the SD card. If MiX file explorer is already installed try using that. If they have been deleted the files are still there until they are overwritten. Using the device can cause this to happen.
Use only known good recovery software; some offer free recovery but encrypt the results and require a payment to unencrypted the actual images all the while potentially overwriting the originals if it hasn't already deleted them.
Be warned.
If you do manage to recover them it will only be the image files. The folder structure is already lost and the image exit information is disassociated from its image, lost is a sea of files. So there be no timespamp, pic number or any other information for the images and no way to recreate it. 30gb be a complete jigsaw puzzle of images in mostly random order. You can sort by file type but that's all.
You better hope it was renamed and not deleted!!!
blackhawk said:
Did you have them backed up on the PC?
Renaming that folder as is now obvious to you is not a good idea, here's why.
Why Does Every Camera Put Photos in a DCIM Folder?
Every camera — whether it’s a dedicated digital camera or the Camera app on Android or iPhone — places the photos you take in a DCIM folder. DCIM stands for “Digital Camera Images.”
www.google.com
The camera will also not recognize the renamed folder when you take a picture unless you edit the cam app's coding.
I copy the DCIM folder subfolders to a renamed folder on my SD card then back that folder up. I then delete the images in the DCIM subfolders and start over about once a month.
If you really deleted the DCIM folder (I don't think this is possible on a stock Android but never tried it!) things will get dicey.
Search by file type, image or jpeg and check the SD card. If MiX file explorer is already installed try using that. If they have been deleted the files are still there until they are overwritten. Using the device can cause this to happen.
Use only known good recovery software; some offer free recovery but encrypt the results and require a payment to unencrypted the actual images all the while potentially overwriting the originals if it hasn't already deleted them.
Be warned.
If you do manage to recover them it will only be the image files. The folder structure is already lost and the image exit information is disassociated from its image, lost is a sea of files. So there be no timespamp, pic number or any other information for the images and no way to recreate it. 30gb be a complete jigsaw puzzle of images in mostly random order. You can sort by file type but that's all.
You better hope it was renamed and not deleted!!!
Click to expand...
Click to collapse
Hi,
Thanks for your kind support.
i will try the above and update the output. thanks.

Categories

Resources