lxdvs / apk2gold

CLI tool for decompiling Android apps to Java. It does resources! It does Java! Its real easy!
662 stars 109 forks source link

Reassociated 0 R.* references in 0 files #8

Open kolipass opened 10 years ago

lxdvs commented 10 years ago

What apk reassociated 0 references?

kolipass commented 10 years ago

Hello word.apk and anyone else. I tested in the apk: http://deutschquest.6931.ru/app-debug.apk Before update jd-core-java:

bash-4.2$ ./apk2gold app-debug.apk 
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/kolipass/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.12
dex2jar app-debug.apk -> app-debug_dex2jar.jar
Done.
Converting .class files to java...
Decompiled 245 classes
Processing: app-debug/src/word/hello/com/myapplication/R.java
Reassociated 0 R.* references in 0 files

After update jd-core-java to 1.2:

bash-4.2$ ./apk2gold app-debug.apk 
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/kolipass/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.12
dex2jar app-debug.apk -> app-debug_dex2jar.jar
Done.
Converting .class files to java...
java.lang.IndexOutOfBoundsException: Index: 13, Size: 13
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at jd.fI.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.af.b(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.i.a(Unknown Source)
    at jd.ide.intellij.JavaDecompiler.decompile(Native Method)
    at jd.core.Decompiler.decompile(Decompiler.java:47)
    at jd.core.Decompiler.decompileToDir(Decompiler.java:56)
    at jd.core.Main.main(Main.java:16)
java.lang.RuntimeException: Empty catch block
    at jd.fI.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.af.b(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.i.a(Unknown Source)
    at jd.ide.intellij.JavaDecompiler.decompile(Native Method)
    at jd.core.Decompiler.decompile(Decompiler.java:47)
    at jd.core.Decompiler.decompileToDir(Decompiler.java:56)
    at jd.core.Main.main(Main.java:16)
java.lang.RuntimeException: Empty catch block
    at jd.fI.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.af.b(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.i.a(Unknown Source)
    at jd.ide.intellij.JavaDecompiler.decompile(Native Method)
    at jd.core.Decompiler.decompile(Decompiler.java:47)
    at jd.core.Decompiler.decompileToDir(Decompiler.java:56)
    at jd.core.Main.main(Main.java:16)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.remove(ArrayList.java:474)
    at jd.fE.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.af.b(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.i.a(Unknown Source)
    at jd.ide.intellij.JavaDecompiler.decompile(Native Method)
    at jd.core.Decompiler.decompile(Decompiler.java:47)
    at jd.core.Decompiler.decompileToDir(Decompiler.java:56)
    at jd.core.Main.main(Main.java:16)
java.lang.IndexOutOfBoundsException: Index: 14, Size: 14
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at jd.fI.a(Unknown Source)
    at jd.fI.a(Unknown Source)
    at jd.af.b(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.af.a(Unknown Source)
    at jd.i.a(Unknown Source)
    at jd.ide.intellij.JavaDecompiler.decompile(Native Method)
    at jd.core.Decompiler.decompile(Decompiler.java:47)
    at jd.core.Decompiler.decompileToDir(Decompiler.java:56)
    at jd.core.Main.main(Main.java:16)
Decompiled 245 classes
Processing: app-debug/src/word/hello/com/myapplication/R.java
Reassociated 22 R.* references in 2 files