Apktool problems - Android Q&A, Help & Troubleshooting

I used apktool to decompile the whatsapp apk but as soon as I try to recompile (with or without changes), I get a lot of errors..
Sent from my GT-I9070 using XDA Premium 4 mobile app

Exact error? Have you tried searching?

GermainZ said:
Exact error? Have you tried searching?
Click to expand...
Click to collapse
Hello, attached is a screenshot of the exact error I've encountered. I tried searching but no relevant answers were found.

RazaVakil7995 said:
Hello, attached is a screenshot of the exact error I've encountered. I tried searching but no relevant answers were found.
Click to expand...
Click to collapse
You didn't attach anything.. Make sure that you have your frameworks installed via apktool before recompiling.. best thing to do is copy/paste your cmd prompt of the apktool process of it trying to compile.. then we will go from there

Sorry the screenshot I took wasn't getting uploaded because it was in bmp format. Actually when I decompiled and recompiled flappy bird's apk it works. I used myappsharer to send whatsapp but I sent the flappy bird's apk natively through file manager. Can this be the reason for it not working
Sent from my GT-I9070 using XDA Premium 4 mobile app

RazaVakil7995 said:
Sorry the screenshot I took wasn't getting uploaded because it was in bmp format. Actually when I decompiled and recompiled flappy bird's apk it works. I used myappsharer to send whatsapp but I sent the flappy bird's apk natively through file manager. Can this be the reason for it not working
Sent from my GT-I9070 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Could be.. Try just pulling it from your sdcard or wherever you downloaded it too..

Related

I can't download .apk anymore!

I have unknown sources checked in settings but when I try to download a apk it says content not supported.... Why?
xriderx66 said:
I have unknown sources checked in settings but when I try to download a apk it says content not supported.... Why?
Click to expand...
Click to collapse
Same here.
Sent from my SGH-T959 using XDA App
Btw on bionix 1.2.1, worked fine on 1.2
Sent from my SGH-T959 using XDA App
I'm on axura.. Worked before too
Bump. Any help?
Sent from my SGH-T959 using XDA App
It might be that the apk file is corrupted or it is not really an apk file. I have instances where android told me that content is not supported while downloading an apk file as it is in the .bin file format. All I did is just to download and change the fipe type to apk to make it work.
Sent from my HTC Desire using XDA App
itachi1706 said:
It might be that the apk file is corrupted or it is not really an apk file. I have instances where android told me that content is not supported while downloading an apk file as it is in the .bin file format. All I did is just to download and change the fipe type to apk to make it work.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
It wont dl at all from xda. I can dl images from internet?
Sent from my SGH-T959 using XDA App
Went back to deodexed kb1. Works again?? Idk.
Sent from my SGH-T959 using XDA App
I've had nothing but trouble transferring apk's through any browser on android, bluetooth, or even link in a text message.
But rename the extension to '.jpg' or some other regularly sent extension and it works almost everytime.
Frustrating work around, but a work around none-the-less.
https://market.android.com/details?id=com.hwkrbbt.downloadall&feature=search_result
xriderx66 said:
I have unknown sources checked in settings but when I try to download a apk it says content not supported.... Why?
Click to expand...
Click to collapse
Use a different browser besides the stock one. Try dolphin or miren browser.
Sent from my SGH-T959 using XDA Premium App
OLD thread buddy
xriderx66 said:
OLD thread buddy
Click to expand...
Click to collapse
True... but one thing nobody told you, was...
Go to Astro (file Manager), and go to it's preferences (menu > More), there is an option to Enable Browser Downloads.
THIS is what most places recommend, including the latest SwiftKey Beta.
or google download crutch, it will let you download anything on your phone. least it used to on my g1. never had a problem d/l'ing anything on my vibrant.
xriderx66 said:
OLD thread buddy
Click to expand...
Click to collapse
I noticed that now but someone updated it before me and I didn't see the dates.
Sent from my HTC HD2 using XDA Premium App

Reader app

Does anyone know if it would be possible to rip the Reader app from the flyer for use on other devices?
Sent from my Xoom using XDA Premium App
baggy247 said:
Does anyone know if it would be possible to rip the Reader app from the flyer for use on other devices?
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Testing the .apk and the .odex on my evo...we'll see if it works haha
EDIT: It didn't install..maybe it could be that I am using CyanogenMod7...
Here are the apps if someone wants to play with them.
Shigster said:
Testing the .apk and the .odex on my evo...we'll see if it works haha
EDIT: It didn't install..maybe it could be that I am using CyanogenMod7...
Here are the apps if someone wants to play with them.
Click to expand...
Click to collapse
Hmm I'd imagine in would need to be modded to work with non sense roms =/
Sent from my Xoom using XDA Premium App
How did you try to install it? Did you just "run" the apk from the sdcard?
That won't work. Because of the odex file.
You could de-odex the app and try to install it again.
More infos about de-odexing here: http://code.google.com/p/smali/wiki/DeodexInstructions
nickiberli said:
How did you try to install it? Did you just "run" the apk from the sdcard?
That won't work. Because of the odex file.
You could de-odex the app and try to install it again.
More infos about de-odexing here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I placed the apps in the system/app folder and restarted....I don't have a need for it but I made them available for those who want to mess around with them =P

modifying the Mms.apk

hiho, i'm working on apks etc atm...
everything works til now (extended power menu etc)
but now i wanted to change some things in the mms.apk
i decompiled, didnt change anything, compiled again and its not working... i did this with apktool, and signed it afterwards, and also tryed without signing.
also i tried apk manager, but not working as well...
why? :s
i've got the same problem... someone knows sth about it? maybe someone can post his experiences?
Bump? :/
Sent from my GT-I9100 using XDA App
Cloud2F said:
hiho, i'm working on apks etc atm...
everything works til now (extended power menu etc)
but now i wanted to change some things in the mms.apk
i decompiled, didnt change anything, compiled again and its not working... i did this with apktool, and signed it afterwards, and also tryed without signing.
also i tried apk manager, but not working as well...
why? :s
Click to expand...
Click to collapse
[URL="http://forum.xda-developers.com/showthread.php?t=1113854"[/URL]
[MOD][GUIDE] Mms.apk with Sent time/"Unlimited" Contacts adding//No MMS Convert
Sent from my GT-I9100 using XDA Premium App
Yea ty. That does not answer my question... I want to do it myself, and i did it just like its said there but its not working. I think the compression is the reason...........
Sent from my GT-I9100 using XDA App
found a way with apktool and apkmanager... just edit with apktool and sign with apkmanager, for those, who need the info... can be closed, ty

Recompile apks

Everywhere i look redirects to apkmanager.. Which is not working for me.. Can someone tell me the manual way to recompile an apk.. Or an alternative to apk manager.
Sent from my SPH-D710 using XDA Premium App
http://apkmultitool.com/
Here is a really good tool for APK files and more!
easy to use and set up.
Start recompiling APK's right away!
redbaron2005 said:
http://apkmultitool.com/
Here is a really good tool for APK files and more!
easy to use and set up.
Start recompiling APK's right away!
Click to expand...
Click to collapse
Facepalm... That is apkmanager. sigh...
Sent from my SPH-D710 using XDA Premium App
voredroid said:
Facepalm... That is apkmanager. sigh...
Sent from my SPH-D710 using XDA Premium App
Click to expand...
Click to collapse
it has apkmanager in it...
It's not apkmanager...
I gone through this a few times... trust me.
Download it, install it, put it in the same folder as your Android SDK, thats IT launch the .bat file.
redbaron2005 said:
it has apkmanager in it...
It's not apkmanager...
I gone through this a few times... trust me.
Download it, install it, put it in the same folder as your Android SDK, thats IT launch the .bat file.
Click to expand...
Click to collapse
Ok i didnt have it in the sdk folder.. Ill try that.. Ty
Sent from my SPH-D710 using XDA Premium App
Ok so that fixed the ADB not found issue thank you for that... my issue with it not compiling/decompiling was I was trying to use an odexed apk.. live and learn right... thanks for your help..
No problem anytime, I'm glad I was able to help.

Apktool help

Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.
stealo said:
Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.
Click to expand...
Click to collapse
Its an APKtool issue, emmm I got alot of errors using apk manager and apktool, I dont know whats the problem and still didnt find a solution. Everytime I use it I have to have errors... and its annoying
I could do many stuff if it would work !!
do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app
stealo said:
do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343
Sun90 said:
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343
Click to expand...
Click to collapse
cheers.
i saw that this mornong. i got sweet [email protected]#k all done at work today. playin around with all that stuff. ive switched back to cm9 stable. still got issues with the xml's, a door knob probably knows more than me though.
Sent from my GT-I9100 using xda app-developers app

Categories

Resources