|
ReportingIssues
Info on how to report and issue
Featured I get plenty of issue reports not related to apktool at all. People use my tool, but they don't know, how to edit XMLs, install or sign apks, etc. It's funny to me that they go for hard way of reengineering if they don't even know, how to work with app sources... So... if you get some errors from apktool when decoding or building apk, then most probably this is a bug of apktool and you should report it. But if you have succeeded at decoding and building, but app doesn't work on your device, then I suggest you doing some tests:
Interesting thing is that I don't remember even one real situation, when apktool has rebuilt apk without errors, but app didn't work on a device. But I got a lot of such reports, each of them was invalid so far. |
► Sign in to add a comment
And if its a system app, make sure to copy the meta-inf folder from the original apk into ur modified apk.
I'm using APKTOOL 1.3.1 attempting to edit the framework-res file for many purposes. Animations, themeing, network name. I get thrown pages of errors just trying the tool. Below is a brief of what covers about 2 scroll pages in terminal I typed apktool d framework-res.apk then apktool b framework-res no editing at all just decompile and recompile. In using Ubuntu 10.0
/home/dreamsforgotten/AMS/framework-res/res/values/public.xml:2677: error: Public symbol drawable/zz_stat_sys_signal_flightmode declared here is not defined. /home/dreamsforgotten/AMS/framework-res/res/values/public.xml:2678: error: Public symbol drawable/zz_stat_sys_signal_null declared here is not defined. /home/dreamsforgotten/AMS/framework-res/res/values/public.xml:2679: error: Public symbol drawable/zz_stat_sys_tty_mode declared here is not defined.
resourse file android:id="@id/xxx" is error,that is android:id="@+id/xxx"
I simply tried to decompile and build apk without making any changes and this is what I get: I: Copying assets and libs... treken@linuxmint ~ $ apktool b Launcher2 I: Checking whether sources has changed... I: Smaling... I: Checking whether resources has changed... I: Building resources... Exception in thread "main" brut.androlib.AndrolibException?: brut.common.BrutException?: could not exec command: [aapt, p, -F, /tmp/APKTOOL7569633204993908504.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/AndroidManifest?.xml]
Caused by: brut.common.BrutException?: could not exec command: [aapt, p, -F, /tmp/APKTOOL7569633204993908504.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/AndroidManifest?.xml] Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied treken@linuxmint ~ $I get the following error when I try to recompile my app's unchanged apk file:
I: Checking whether sources has changed... I: Smaling... Exception in thread "main" java.lang.NullPointerException?
:119)My app was made in App Inventor, which requires me to modify the android_manifest.xml before I can submit it into the market. Unfortunately, I don't have any option to do it before the app gets compiled in the first place, so I used apktool to decompile it, mod the xml and recompile it in order to submit it to the market. I get the same error regardless if I made changes to the xml or left it untouched.
I get no errors from apktool, but on my Droid 2 I get "Application not installed" even without changing a thing in "Digital Speedometer"
Tried to reverse Google Maps: I: Baksmaling... I: Loading resource table... Exception in thread "main" brut.androlib.AndrolibException?: Multiple resources: spec=0x7f090033 dimen/da_destination_act ivity_btn_size, config=-v13
Maybe it is just some kind of protection?
I use apktool 1.4.1 to decode this apk file and failed. (http://softfile.3g.qq.com:8080/msoft/179/1104/41730/qqbrowser2.7(android)_build0175.apk)
the error desp is:
I: Baksmaling... I: Loading resource table... I: Loaded. I: Loading resource table from file: C:\Documents and Settings\me\apktoo l\framework\1.apk I: Loaded. I: Decoding file-resources... I: Decoding values/ XMLs... Exception in thread "main" java.lang.StringIndexOutOfBoundsException?: String ind ex out of range: 29
esXmlEncoders.java:165) tions(ResXmlEncoders?.java:138) sStringValue.java:63) esScalarValue.java:65) ces.java:264) )If you get a "Application not installed" error you can use "ZipSigner? 2" on your phone to sign your app. This should fix the problem.