Hello xda-developers!
I'm new to Android hacking, but I have a general background in programming...
I've been modding an application recently, unpacked the .apk file, done my changes and repacked it, signed it and everything works well...But when I run the program, and the program wants to play an mp3 file, which was located in res/raw before packing the .apk file, it gives an error: "Can't load audio file."...What is the possible cause of this problem and how to solve it? Are the IDs of the raw resource files changed everytime I unpack and repack the .apk file or what?
Thanks in advance...
Edit: Issue fixed by unpacking and repacking using Apktool instead of WinZip.
Related
please i have come across a lot of these zipped android application files that when i unzip them on the laptop i cant find any apk file therein i only find some folders with the name
lib
META-INF
and then some files with these names
AndroidManifest
classes.dex
resources.arsc
please can someone explain to me how i can install such zip files
Hello sir, I have the same problem.
What is the solution, please ?
mortallkombat said:
please i have come across a lot of these zipped android application files that when i unzip them on the laptop i cant find any apk file therein i only find some folders with the name
lib
META-INF
and then some files with these names
AndroidManifest
classes.dex
resources.arsc
please can someone explain to me how i can install such zip files
Click to expand...
Click to collapse
An APK file by nature is a ZIP file. The reported files/folders make up an APK file.
Read also here:
Structure of an Android App Binary (.apk)
Structure of an Android App Binary (.apk)
www.appdome.com
To install the APK replace file's extension "ZIP" by "APK".
Hello thank you sir,
but the problem I have exactly, is, when I download a zip file from github, your mentioned method wouldn't work.
Maybe you have another solution
Hi Developpers !!
I'm in an urgent need of help !!!
The thing is i have this app .APK that i want to modify,
I open it with winrar, navigate to the file i want to modify (Bitmap image in my case) then i copy it into the Desktop, modify it,
and then put it back in the rar archive without modifying the name or anything.
Then when i try to install (on Agent bluestacks) it it dosen't work !!
There's an Eroor
INSTALL PARSE FAILED INCONSISTENT CERTIFICATES
I watched some turorial on How to Edit image resources inside an android APK file and i did a new signature and it's allways the same error
I really need your help on replacing the file...
PS I uploaded the file .APK and the image i want to replace
Boom_vic said:
and then put it back in the rar archive without modifying the name or anything.
Click to expand...
Click to collapse
That's the problem, you need to sign it first. - http://forum.xda-developers.com/showthread.php?t=2069287
Thanks so much !! I will try this now
Hi
I followed your Topic, i was able to decompile it...but i can't recompile it
can you please do it for me ? cuz i'm in a hurry i need it by Wednesday..
You just have to replace the train480x320.png
in \res\drawable with the same image that i have uploaded with the rar file and sign it..
That would be perfect
thanks in advance
I make this thread just for beginner like me
If you facing a problem compile some .apk after modifying one or more of *.9.png and get so many error log in apktool, so you can't build it properly.
This is based on my own experience, this is usually caused because you edit *.9.png using an image processing program such as Photoshop and you renamed that *.png to *.9.png [ like I did ] and it is a mistake.
Change the image named *.9.png to become *.png only, then apktool will build your .apk without any error logs.
BUT, for notice... only file with extension *.9.png that can work properly
This is a free tool that might can help you make *.9.png in easy way for time saving :good:
Just drag n drop your edited *.png from photoshop into this window's tool.
After finished editing, save it. And build your .apk with no error log :victory:
NOTE : Before installing this tool, you need Java installed on your windows
Thanks to the creator of this tool :highfive:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.
Hello guys,
I am modding an apk to bypass an update check.
I have this outdated APK that functions fine since the URL and query and site address remains same but whenever it checks for and update it crashes. The thing is the developer made it topnotch but since then left and his site was recently taken down so check update query crashes it totally. What I need to do is update just the one function where it brings up the GUI after start. Otherwise it keeps saying download update or crashes randomly at time of starting up.
Now I have been browsing for a day or two for all the tutorials and right now I`m hell lot of confused. I have downloaded many tools and dependencies but I dont know how to proceed. I will tell you guys what I have and what I need.
I have de-compiled the APK using "dex2jar", I had a .JAR file which I decomplied using JD-GUI-Windows now after saving source I have .ZIP file in which I made the necessary editing. Next I downlaoded APKTool.JAR and extracted resource files and XML files that can be read in text editor. Along with some .SMALI files.
Now I am not familier with SMALI language at all and editing in it seems rather complicated and on the other side I have the .JAR file that decomlied all the classes just fine.
MY QUESTION IS:
How do I recompile the files I have ? I have the main coding extraced using dex2jar so in java format and JD-Gui to in .ZIP files, and resources/XML files also decoded using APKTools. What do I do next to recompile the APK ?
In short I have plain text based java source code and plain text XML and other resource file. How do I recompile it ?