Trying to understand link between Apk and Obb files - Android Q&A, Help & Troubleshooting

So it's pretty given that when you change anything in an obb file it breaks the link to its apk file.
But I've encountered a modded game in which changing the structure of the obb file doesn't break the link and you can load the game perfectly fine. Which opens the world to adding new contents into the obb file.
I'd like to know how to do this. I have no idea who the author of the modded game is so idk how to ask how he did it. So I'm here.
I have the original copy of the game but I want to mod it to add additional contents into it. Like more skins, etc.

Johnny_Star_Sunshine_69 said:
So it's pretty given that when you change anything in an obb file it breaks the link to its apk file.
But I've encountered a modded game in which changing the structure of the obb file doesn't break the link and you can load the game perfectly fine. Which opens the world to adding new contents into the obb file.
I'd like to know how to do this. I have no idea who the author of the modded game is so idk how to ask how he did it. So I'm here.
I have the original copy of the game but I want to mod it to add additional contents into it. Like more skins, etc.
Click to expand...
Click to collapse
All the informations you want are there : https://developer.android.com/google/play/expansion-files
Good luck

@Johnny_Star_Sunshine_69
Read also here.

Related

Extracting Certain Files from APK's

hey all, i was just wondering if anyone knew how to extract some files from an apk?
specifically, i like riptide gp's background music and was wondering if anyone knew how to extract those music files from the apk or something. let me know! thanks!
I already tried opening the apk on both my computer and NT and couldn't find any music files anywhere... starting to think its not possible, but it can't be because in order for a game to have music its gotta have music files somewhere in the installation file just like any other game on any platform...
Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?
SG Pillar said:
Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?
Click to expand...
Click to collapse
i've already tried extracting the apk by conventional means, aka using winrar to extract the contents, but no luck in finding any files resembling that of a music file type. i've also tried apktool but after decompiling the apk, i couldn't find any music files either...
after decompiling through apktool i just saw a lot of .smali files. there was one files called base.apf but not sure how to decompile that....
Check out apktool to extract apks. I've used it on system files to open them up and edit what's inside.
https://code.google.com/p/android-apktool/

[Q] Language settings, JP audio w/EN subs and text, Final Fantasy IV

Hello all. I recently bought Final Fantasy IV and was disappointed to find there was no language setting in the game that I could find. Ideally, I would like to play with Japanese audio and English subtitles. Launching normally under USA locale plays English vocals and subtitles. I was afraid that the Play store variant would only come with English audio, but I found by changing my Nexus 7 language settings to Japanese, that it would in fact contain and play with JP audio and JP subtitles. I can't understand why , this being the case that there isn't an easy in application language switching option that I can see.
All the components are there. Does anyone know how I could somehow edit the files to play JP audio and English subs? Copy the JP audio track to the English version of the game seems the most straightforward , if I could figure a way to do it. Anyone have ideas for this process? Programs I will need to unpack the apk or game data and edit what needs to be etc...? Thanks.
To th ebest of my knowledge, it appears that I'll probably need to unpack the .obb file somehow. The .apk is small. Does anyone know of an suitable utilities to unpack and repack/sign if need be .obb an/o .apk firles?
I've seen a few posts on the forum suggesting that I simply rename the .obb to .zip, .rar etc... and it will simply be able to be extracted. Sadly, this doesn't seem to be the case. I've been attempting to use 7zip to extract the archive with a number of renamed file types and every time it claims that it doesn't seem to be a valid archive etc.... Others have suggested 7zip works for this in other cases, but I'm not sure why it is failing now. Do I need to use a specific program to see if it is a valid archive?
Edit: I also tried with WinRAR and to no effect - the same problem where it reports that there is no archive present etc...
At the moment I'm trying this with an edited/sideload ready version of FFIV 1.2.3 (which has both the .apk file of a few megabytes and the .obb of a few hundred megabytes), at least until I can pull the exact copy off my device. I'd really appreciate any insight. What do I need to open/extract the .obb and why is it not appearing with 7zip? Thanks.
I'm going to try and get another copy of the files from another source (pulled directly from my Nexus 7 or Nexus 4) onto my Windows PC etc...
RanceJustice said:
I've seen a few posts on the forum suggesting that I simply rename the .obb to .zip, .rar etc... and it will simply be able to be extracted. Sadly, this doesn't seem to be the case. I've been attempting to use 7zip to extract the archive with a number of renamed file types and every time it claims that it doesn't seem to be a valid archive etc.... Others have suggested 7zip works for this in other cases, but I'm not sure why it is failing now. Do I need to use a specific program to see if it is a valid archive?
Edit: I also tried with WinRAR and to no effect - the same problem where it reports that there is no archive present etc...
At the moment I'm trying this with an edited/sideload ready version of FFIV 1.2.3 (which has both the .apk file of a few megabytes and the .obb of a few hundred megabytes), at least until I can pull the exact copy off my device. I'd really appreciate any insight. What do I need to open/extract the .obb and why is it not appearing with 7zip? Thanks.
I'm going to try and get another copy of the files from another source (pulled directly from my Nexus 7 or Nexus 4) onto my Windows PC etc...
Click to expand...
Click to collapse
Huh... I'm not sure how to help you too. Just a simple beginner. But using .zip or .rar worked for me. Just that the file names were all long and weird. Also, every file appears as a .file extension
open obb file
Hi,
did you tried to open *.obb using "jobb" application from Android SDK?

[Q] Extracting, editing, .obb files?

Hello all. I was wondering if anyone could give me some information on how to extract an .obb file so that one can edit the contents. In my other thread ( http://forum.xda-developers.com/showthread.php?t=2373834 ) where I was trying to figure out a way to activate the Japanese vocal track in Final Fantasy IV with the game's locale in the US/English. I've hit an impasse as I've been able to deduce that the Google play version of the game (which seems to have a 15mb .apk, and a 400+mb .obb ) retains the Japanese audio track but only plays it in conjunction with JP text if the Android locale/language is Japanese. Thus, I figure that somewhere in that .obb there will be the JP audio track file which I can copy over the English audio track file and thereby access Japanese audio w/ English text since SquareEnix didn't give us the option for some god-awful reason.
However, the only way this can work is if I can get into that .obb file! I saw links elsewhere on the forum suggesting that all I had to do was rename the .obb to a .zip or .rar, and then use 7zip or WinRAR to open it, but attempts with both programs and numerous file types (.zip, .rar , .tar etc..) all report that the file is not an archive and thus cannot be opened. This is different from the .apk file, which easily seems to (upon rename to zip) unveil its secrets with 7zip extraction. So, does anyone know a program or method necessary to unpack/extract/read/edit an .obb file besides the simple archive rename? Is there some Android development program or function?
I'd very much appreciate any insight into how to unpack/edit an .obb file! Thanks!
Anyone? Can't seem to find any data on this, especially anything sounding remotely reliable, on other sites...
RanceJustice said:
Anyone? Can't seem to find any data on this, especially anything sounding remotely reliable, on other sites...
Click to expand...
Click to collapse
Have you tried 7 zip?? I am also looking to extract it for in game music lol
jetbruceli said:
Have you tried 7 zip?? I am also looking to extract it for in game music lol
Click to expand...
Click to collapse
I have attempted to extract it with 7zip, but to no avail. It says it cannot extract it as an archive. I'd still love to figure out how to do so, to swap around the vocals, but sadly without unpacking the .obb somehow it doesn't seem possible. I am guessing that by the name "opaque binary blob", these are intended to be difficult to unpack/decrypt etc... though perhaps some are easier than others. Are .obb s created via some sort of encrypting process? compiling? both?
RanceJustice said:
I have attempted to extract it with 7zip, but to no avail. It says it cannot extract it as an archive. I'd still love to figure out how to do so, to swap around the vocals, but sadly without unpacking the .obb somehow it doesn't seem possible. I am guessing that by the name "opaque binary blob", these are intended to be difficult to unpack/decrypt etc... though perhaps some are easier than others. Are .obb s created via some sort of encrypting process? compiling? both?
Click to expand...
Click to collapse
Yeah they are encrypted because some open with 7zip like Aspault 8 and other likes NFS Most wanted they in the APK file.
Hi, did you ever find the solution to this problem? I myself am trying to open the same obb file(to fix the stupid "Load Captain" typo at the start). I have decompiled the apk but am at a loss as to what I should do next. I originally tried dumping the obb file using Jobb, but received a "magic key does not match" error, which leads me to believe it's not a standard archive. The only place I can think of looking is in the .so file, but I'm not sure if I have the patience to sift through all of it.... Keep us posted on any developments, thanks to anyone who can help!
---------- Post added at 04:51 PM ---------- Previous post was at 04:33 PM ----------
A quick search through the apk yields only one result to the string .obb, in the 'DLActivity.class' file.
Code:
static String a()
{
String str = DLActivity.class.getPackage().getName();
return Environment.getExternalStorageDirectory().getPath() + "/Android/obb/" + str + "/main." + 131 + "." + str + ".obb";
}
Now considering the actual name of the obb file is "main.131.com.square_enix.android_googleplay.FFIV_GP.obb" we seem to be on the right track...
I will keep experimenting, let's keep this thread alive!
try with "RAR for Android"
I even managed to extract obb from gta3 (1.2 GB)
@RanceJustice it's pointless to swap English audio with Japanese if you can't even understand it. If you can understand it then you should buy the Japanese version. IMO FF4 is better w/o any voices as both the ENG and JPN are medicore.
@jetbruceli the game uses AAC streamed audio nothing special, the music is pre-recorded and you can buy it for $7. You want Final Fantasy IV DS Original Soundtrack.
RAR for Android as recommended by @cojocaruflrn works!
Rename the file from .obb to .zip and open the file with winrar thats how you can extract the files from within it how to edit the files inside the .obb are a different question
Can I rename zip file to apk file,
any progress? i'm trying to decrypt .obb files from fifa16
It is possible
I see some videos on YT, editing .OBB files from GTASA, & they just use WinRAR!, but.. How?
youtu.be / 9paQDBMv8wQ
I could do it, just change .obb to .zip ON ANDROID, (Using some root explorer or WinRar) that's all, sorry for my english gg
Deathracelord said:
Hi, did you ever find the solution to this problem? I myself am trying to open the same obb file(to fix the stupid "Load Captain" typo at the start). I have decompiled the apk but am at a loss as to what I should do next. I originally tried dumping the obb file using Jobb, but received a "magic key does not match" error, which leads me to believe it's not a standard archive. The only place I can think of looking is in the .so file, but I'm not sure if I have the patience to sift through all of it.... Keep us posted on any developments, thanks to anyone who can help!
---------- Post added at 04:51 PM ---------- Previous post was at 04:33 PM ----------
A quick search through the apk yields only one result to the string .obb, in the 'DLActivity.class' file.
Code:
static String a()
{
String str = DLActivity.class.getPackage().getName();
return Environment.getExternalStorageDirectory().getPath() + "/Android/obb/" + str + "/main." + 131 + "." + str + ".obb";
}
Now considering the actual name of the obb file is "main.131.com.square_enix.android_googleplay.FFIV_GP.obb" we seem to be on the right track...
I will keep experimenting, let's keep this thread alive!
Click to expand...
Click to collapse
Were you able to unpack and repack the Final Fantasy OBB? I am trying to do the same.
rename it to. zip instead of obb.
Install zarchiver and es file explorer and do the cut,copy, paste,edit
Dark Knight Begins said:
rename it to. zip instead of obb.
Install zarchiver and es file explorer and do the cut,copy, paste,edit
Click to expand...
Click to collapse
That doesn't work for all OBB files, most of them use different compression methods, and I am not skilled enough to find out which compression method the one I am trying to unpack is using.
[email protected] said:
That doesn't work for all OBB files, most of them use different compression methods, and I am not skilled enough to find out which compression method the one I am trying to unpack is using.
Click to expand...
Click to collapse
I edited gta series, fifa 12(data),14 on that method.
What u wanna do?
Dark Knight Begins said:
I edited gta series, fifa 12(data),14 on that method.
What u wanna do?
Click to expand...
Click to collapse
Final Fantasy 5 OBB, I don't think SquareEnix uses the same compression method as ZIPs.
[email protected] said:
Final Fantasy 5 OBB, I don't think SquareEnix uses the same compression method as ZIPs.
Click to expand...
Click to collapse
maybe

After Editing Obb My game is not runing

i used winrar to edit obb files of GTA san andreas... i opened obb File & Delete the folder of Music because i want to make my game size low..
after deleting that folder i put the game in my android/obb & Start But its saying "you have not purchase this app"
is this right way to edit obb or there is another method ??
because i want to make my game size low by editing obb
How Can I patch Apk Please Help...??
ranjeetbuk said:
Click to expand...
Click to collapse
Yep as already said, we can't help you with patching an app as it is considered warez so I'm closing this one up
Regards
Sawdoctor

Can someone retrieve the original folder name for Food Fantasy?

I have a mod of Food Fantasy, which includes the folder that one can normally find only by rooting their phone, and would like to try something I found on YouTube that involves renaming it, so as to allow the game to connect to Google Play Games:
MOD Edit:- Links Removed
If someone reading this has already rooted their phone, please download the game, and then find the folder and give me its rightful name.

Categories

Resources