[Q] Eclipse Exports Incomplete APK Files - Android Q&A, Help & Troubleshooting

It's been a while since I last did any Android development, but it used to work fine. Now I haven't changed anything I can remember on my computer since then, but suddenly eclipse has stopped exporting Android .apk files correctly. I still have one of the old files that was exported correctly, but now when I export a file (even if it's just a blank new project) it is missing all resources and the AndroidManifest file. I have tried deleting and reinstalling eclipse and the Android SDK, but this hasn't helped.
If I change the APK to .zip and open it, the files I have now are classes.dex, and a folder called META-INF with CERT.RSA, CERT.SF, and MANIFEST.MF inside. If I do the same with my old .apk, I have these as well as resources.arsc, AndroidManifest.XML, a res folder, and an assets folder.
Any advice would be appreciated, as I've been staring at this trying to fix it for a few days now. Thanks!

Related

[Solved] smali changes not compiling

I don't know if I'm doing something wrong or missing a step but I'm trying to get my status bar transparent following this guide
http://forum.xda-developers.com/showthread.php?t=1523703
I'm using wanams apk manager, I make the changes to the statusbar.smali file and the xml files, I compile and it doesn't work on my phone, so I decompiled the modified apk, and the changes to the xml files went through but the smali files go back to the originals.
when compiling I use yes on Is this a system apk, yes to copy additional files, go to keep, delete resources.arsc and finish.
It happens with any smali file when I compile, I use notepad++ to edit the files.
Solved: So what I ended up doing since my xml files were saving but my smali files weren't, kindof a noob so I didn't realize that when compiling it asks to copy over files and the classes.dex file was overwriting all my changes to the smali files, so I compiled and when it asks to delete files from the keep folder I took the classes.dex from that folder, decompiled it seperatly made the changes to the smali files there. I still deleted my resources.arsc, then I finished making the apk opened the apk and replaced the classes.dex there with my modified one. pushed to my phone and everything works perfectly.
I don't know how it works for other files but try applying the same method somehow; When decompiling and recompiling framework-res.apk, there is a resources.arsc file that is created and placed inside a build folder under the original decompiled folder. Drag that resources.arsc to the NEW apk file you have, and it will work.
I assume you're decompiling a .jar file so maybe it's a classes.dex file. If there is a newly compiled one under some build folder, try placing it into the new .jar file. Make sure the compression method is STORE, or 0 if it's a scale. Try out some combos until it works out.
liinko said:
Solved: So what I ended up doing since my xml files were saving but my smali files weren't, kindof a noob so I didn't realize that when compiling it asks to copy over files and the classes.dex file was overwriting all my changes to the smali files, so I compiled and when it asks to delete files from the keep folder I took the classes.dex from that folder, decompiled it seperatly made the changes to the smali files there. I still deleted my resources.arsc, then I finished making the apk opened the apk and replaced the classes.dex there with my modified one. pushed to my phone and everything works perfectly.
Click to expand...
Click to collapse
Just delete the classes.dex from keep folder and press enter in apk manager menu.. and you're done
?
systemui with smali
in the whole forum not an any solution for compiling with smali

[Q] Modifying APK question

I have attempted numerous times to change the Online, Offline, Away, and Busy presence files in the Google Talk app. This images are located in the assets folder. Although I replace them, recompile and resign, my modified images do not show. I still see the original images. If I view the contents of the APK, they are there in the assets folder. Am I missing something?

[Q] editing .so file

Howdy.
I'm trying to modify a .so file (libflashplayer.so), but have run into a few problems:
I first tried editing the file after it was installed from an .apk. This appears to work at first, but the edited file is quickly replaced with the original.
I then tried editing the file in the .apk package. This causes the package to fail to install (I'm guessing because the md5 in the certificates no longer matches)
Aldo tried moving a folder with the .so files from the .apk (com.adobe.flashplayer-1 which is what is created when the .apk installs correctly) directly into /data/app-lib/.The directory was created successfully but appears to be immediately deleted.
Is there a way to accomplish what I'm trying to do? If so how?
Other possibly relevant info:
My device is rooted
I did not write the code for anything in the .apk, I got it from a link on xda (pretty dubious i know but I couldn't find another option)
I'm using cyanogenmod 10.2 (based on android 4.2 I believe).
I'm editing the file with a hex editor to change a a few characters ("AND" to "WIN")

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

[JB]Xperia Sola 6.2.A.1.100 SemcPhone.apk Compile

Hi there,
I am using 6.2.A.1.100 Rom from DeathZeroFX on my Xperia Sola and I want to change the semcphone.apk caller image size.
I am using APK MultiTool v5.5.7 but although I am able to decompile it with no errors when I try to compile it, it keeps running forever. I have "installed" framework-res.apk, semcgeneric....apk and from folder (system/app) the systemui.apk.
I tried Apk MultiTool v4 and I got the same error with this http://forum.xda-developers.com/xperia-u/issues/decompile-semcphone-apk-t2118131.
All I want to do is change a value inside res/layout/somc_incallscreen_large.xml.
Even if I make no change same thing happens (v5.5.7) does not give me any error just keeps running..
In the decompiled)apk folder I get a new folder called "build" and inside there is only the classes.dex nothing else!
Searching the web does not say anything particular except for old aapt.exe version
I am desperate I even tried to compile the helloworld.apk (found on web which (de)/compiles with no problem) and just add my res folder but of course that could not happen.
Any suggestions?Or even another tool?I need to edit those @#$% android binary xmls..
Bingo
Despite being desperate, I used APK Studio and after decompiling I modified some of the xml, plus with the help of the previously decompiled java classes and the help of notepad++ I changed the corresponding code inside smali files and then build it. After that I copy pasted the edited files (from the apk) into the original one without signing and yeahaa happy reverse engineering..If I sign them with APK Multitool it will crash..(Though it is not clear if it should be signed again (for me crashes), somewhere says that by restoring the original META-INF and Manifest.xml will do the job (which does for me since the final apk is the original just with modified classes.dex).
I have a semcphone.apk with callers image (scaled down a little bit) instead of being cropped.
The last alternative was editing binary files through notepad++ hex editor which is a no go..

Categories

Resources