Closed GoogleCodeExporter closed 9 years ago
ibotpeaches@raganok:~/Downloads/Apktool/Bug649$ apktool d
"Contacts_4.1.2-T699UVBMC5.apk"
I: Using Apktool 2.0.0-a7b06f-SNAPSHOT on Contacts_4.1.2-T699UVBMC5.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug649$
Could not duplicate on latest master.
Original comment by connor.tumbleson
on 30 Jun 2014 at 12:44
Hi!
I clone apktool from git repository, build it and try decompile my
Contacts_4.1.2-T699UVBMC5.apk on my Windows machine.
I have same problem :( What's wrong?
C:\Users\Vadim\Desktop\android-apktool>gradlew clean
Building SNAPSHOT (master): a7b06f
The TaskContainer.add() method has been deprecated and is scheduled to be
removed in Gradle 2.0. Please use the create()
method instead.
:clean
:brut.apktool:clean
:brut.apktool.smali:clean
:brut.j.common:clean
:brut.j.dir:clean
:brut.j.util:clean
:brut.apktool.smali:baksmali:clean
:brut.apktool.smali:dexlib2:clean
:brut.apktool.smali:smali:clean
:brut.apktool.smali:util:clean
:brut.apktool:apktool-cli:clean
:brut.apktool:apktool-lib:clean
:brut.apktool.smali:dexlib2:accessorTestGenerator:clean
BUILD SUCCESSFUL
Total time: 2 mins 2.796 secs
C:\Users\Vadim\Desktop\android-apktool>
C:\Users\Vadim\Desktop\android-apktool>
C:\Users\Vadim\Desktop\android-apktool>java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
C:\Users\Vadim\Desktop\android-apktool>gradlew build fatJar
Building SNAPSHOT (master): a7b06f
The TaskContainer.add() method has been deprecated and is scheduled to be
removed in Gradle 2.0. Please use the create()
method instead.
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
:brut.apktool:compileJava UP-TO-DATE
:brut.apktool:processResources UP-TO-DATE
:brut.apktool:classes UP-TO-DATE
:brut.apktool:jar
:brut.apktool:assemble
:brut.apktool:compileTestJava UP-TO-DATE
:brut.apktool:processTestResources UP-TO-DATE
:brut.apktool:testClasses UP-TO-DATE
:brut.apktool:test UP-TO-DATE
:brut.apktool:check UP-TO-DATE
:brut.apktool:build
:brut.apktool.smali:compileJava UP-TO-DATE
:brut.apktool.smali:processResources UP-TO-DATE
:brut.apktool.smali:classes UP-TO-DATE
:brut.apktool.smali:jar
:brut.apktool.smali:assemble
:brut.apktool.smali:compileTestJava UP-TO-DATE
:brut.apktool.smali:processTestResources UP-TO-DATE
:brut.apktool.smali:testClasses UP-TO-DATE
:brut.apktool.smali:test UP-TO-DATE
:brut.apktool.smali:check UP-TO-DATE
:brut.apktool.smali:build
:brut.j.common:compileJava
:brut.j.common:processResources UP-TO-DATE
:brut.j.common:classes
:brut.j.common:jar
:brut.j.common:assemble
:brut.j.common:compileTestJava UP-TO-DATE
:brut.j.common:processTestResources UP-TO-DATE
:brut.j.common:testClasses UP-TO-DATE
:brut.j.common:test UP-TO-DATE
:brut.j.common:check UP-TO-DATE
:brut.j.common:build
:brut.j.util:compileJava
Note:
C:\Users\Vadim\Desktop\android-apktool\brut.j.util\src\main\java\brut\util\Duo.j
ava uses unchecked or unsafe opera
tions.
Note: Recompile with -Xlint:unchecked for details.
:brut.j.util:processResources UP-TO-DATE
:brut.j.util:classes
:brut.j.util:jar
:brut.j.dir:compileJava
:brut.j.dir:processResources UP-TO-DATE
:brut.j.dir:classes
:brut.j.dir:jar
:brut.j.dir:assemble
:brut.j.dir:compileTestJava UP-TO-DATE
:brut.j.dir:processTestResources UP-TO-DATE
:brut.j.dir:testClasses UP-TO-DATE
:brut.j.dir:test UP-TO-DATE
:brut.j.dir:check UP-TO-DATE
:brut.j.dir:build
:brut.j.util:assemble
:brut.j.util:compileTestJava UP-TO-DATE
:brut.j.util:processTestResources UP-TO-DATE
:brut.j.util:testClasses UP-TO-DATE
:brut.j.util:test UP-TO-DATE
:brut.j.util:check UP-TO-DATE
:brut.j.util:build
:brut.apktool.smali:util:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:brut.apktool.smali:util:processResources UP-TO-DATE
:brut.apktool.smali:util:classes
:brut.apktool.smali:util:jar
:brut.apktool.smali:dexlib2:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:brut.apktool.smali:dexlib2:processResources UP-TO-DATE
:brut.apktool.smali:dexlib2:classes
:brut.apktool.smali:dexlib2:jar
:brut.apktool.smali:baksmali:compileJava
:brut.apktool.smali:baksmali:processResources
:brut.apktool.smali:baksmali:classes
:brut.apktool.smali:baksmali:jar
:brut.apktool.smali:baksmali:assemble
:brut.apktool.smali:baksmali:compileTestJava
:brut.apktool.smali:baksmali:processTestResources
:brut.apktool.smali:baksmali:testClasses
:brut.apktool.smali:baksmali:test
:brut.apktool.smali:baksmali:check
:brut.apktool.smali:baksmali:build
:brut.apktool.smali:dexlib2:assemble
:brut.apktool.smali:dexlib2:compileTestJava
:brut.apktool.smali:dexlib2:processTestResources UP-TO-DATE
:brut.apktool.smali:dexlib2:testClasses
:brut.apktool.smali:dexlib2:test
:brut.apktool.smali:dexlib2:check
:brut.apktool.smali:dexlib2:build
:brut.apktool.smali:smali:generateJflexSource
:brut.apktool.smali:smali:generateParserAntlrSource
:brut.apktool.smali:smali:generateTreeWalkerAntlrSource
:brut.apktool.smali:smali:compileJava
:brut.apktool.smali:smali:processResources
:brut.apktool.smali:smali:classes
:brut.apktool.smali:smali:jar
:brut.apktool.smali:smali:assemble
:brut.apktool.smali:smali:generateTestAntlrSource
:brut.apktool.smali:smali:compileTestJava
:brut.apktool.smali:smali:processTestResources
:brut.apktool.smali:smali:testClasses
:brut.apktool.smali:smali:test
:brut.apktool.smali:smali:check
:brut.apktool.smali:smali:build
:brut.apktool.smali:util:assemble
:brut.apktool.smali:util:compileTestJava
:brut.apktool.smali:util:processTestResources UP-TO-DATE
:brut.apktool.smali:util:testClasses
:brut.apktool.smali:util:test
:brut.apktool.smali:util:check
:brut.apktool.smali:util:build
:brut.apktool:apktool-lib:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:brut.apktool:apktool-lib:processResources
:brut.apktool:apktool-lib:classes
:brut.apktool:apktool-lib:jar
:brut.apktool:apktool-cli:compileJava
:brut.apktool:apktool-cli:processResources UP-TO-DATE
:brut.apktool:apktool-cli:classes
:brut.apktool:apktool-cli:jar
:brut.apktool:apktool-cli:assemble
:brut.apktool:apktool-cli:compileTestJava UP-TO-DATE
:brut.apktool:apktool-cli:processTestResources UP-TO-DATE
:brut.apktool:apktool-cli:testClasses UP-TO-DATE
:brut.apktool:apktool-cli:test UP-TO-DATE
:brut.apktool:apktool-cli:check UP-TO-DATE
:brut.apktool:apktool-cli:build
:brut.apktool:apktool-lib:assemble
:brut.apktool:apktool-lib:compileTestJava
:brut.apktool:apktool-lib:processTestResources
:brut.apktool:apktool-lib:testClasses
:brut.apktool:apktool-lib:test
:brut.apktool:apktool-lib:check
:brut.apktool:apktool-lib:build
:brut.apktool.smali:dexlib2:accessorTestGenerator:compileJava
:brut.apktool.smali:dexlib2:accessorTestGenerator:processResources
:brut.apktool.smali:dexlib2:accessorTestGenerator:classes
:brut.apktool.smali:dexlib2:accessorTestGenerator:jar
:brut.apktool.smali:dexlib2:accessorTestGenerator:assemble
:brut.apktool.smali:dexlib2:accessorTestGenerator:compileTestJava UP-TO-DATE
:brut.apktool.smali:dexlib2:accessorTestGenerator:processTestResources
UP-TO-DATE
:brut.apktool.smali:dexlib2:accessorTestGenerator:testClasses UP-TO-DATE
:brut.apktool.smali:dexlib2:accessorTestGenerator:test UP-TO-DATE
:brut.apktool.smali:dexlib2:accessorTestGenerator:check UP-TO-DATE
:brut.apktool.smali:dexlib2:accessorTestGenerator:build
:brut.apktool:apktool-cli:fatJarPrepareFiles
:brut.apktool:apktool-cli:fatJar
BUILD SUCCESSFUL
Total time: 8 mins 23.858 secs
C:\Users\Vadim\Desktop\android-apktool>copy
brut.apktool\apktool-cli\build\libs\apktool-cli.jar .\scripts\windows\apktoo
l.jar
Скопировано файлов: 1.
C:\Users\Vadim\Desktop\android-apktool>copy ..\Contacts_4.1.2-T699UVBMC5.apk
.\scripts\windows
Заменить .\scripts\windows\Contacts_4.1.2-T699UVBMC5.apk [Yes (да)/No
(нет)/All (все)]: Y
Скопировано файлов: 1.
C:\Users\Vadim\Desktop\android-apktool>cd scripts
C:\Users\Vadim\Desktop\android-apktool\scripts>java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
C:\Users\Vadim\Desktop\android-apktool\scripts>cd windows
C:\Users\Vadim\Desktop\android-apktool\scripts\windows>apktool.bat
Apktool v2.0.0-a7b06f-SNAPSHOT - a tool for reengineering Android apk files
with smali v2.0.3-a7b06f16-dirty and baksmali v2.0.3-a7b06f16-dirty
Copyright 2010 Ryszard Wi┼Ыniewski <brut.alll@gmail.com>
Updated by Connor Tumbleson <connor.tumbleson@gmail.com>
usage: apktool
-advance,--advanced prints advance information.
-version,--version prints the version then exits
usage: apktool if|install-framework [options] <framework.apk>
-p,--frame-path <dir> Stores framework files into <dir>.
-t,--tag <tag> Tag frameworks using <tag>.
usage: apktool d[ecode] [options] <file_apk>
-f,--force Force delete destination directory.
-o,--output <dir> The name of folder that gets written. Default is apk.out
-p,--frame-path <dir> Uses framework files located in <dir>.
-r,--no-res Do not decode resources.
-s,--no-src Do not decode sources.
-t,--frame-tag <tag> Uses framework files tagged by <tag>.
usage: apktool b[uild] [options] <app_path>
-f,--force-all Skip changes detection and build all files.
-o,--output <dir> The name of apk that gets written. Default is dist/name.apk
-p,--frame-path <dir> Uses framework files located in <dir>.
For additional info, see: http://code.google.com/p/android-apktool/
For smali/baksmali info, see: http://code.google.com/p/smali/
C:\Users\Vadim\Desktop\android-apktool\scripts\windows>apktool.bat d
Contacts_4.1.2-T699UVBMC5.apk
I: Using Apktool 2.0.0-a7b06f-SNAPSHOT on Contacts_4.1.2-T699UVBMC5.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Vadim\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
W: Could not decode attr value, using undecoded value instead: ns=android,
name=contentDescription, value=0x01040674
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01040674
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:41)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:307)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:119)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:115)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
C:\Users\Vadim\Desktop\android-apktool\scripts\windows>
Original comment by ka7a8.ru...@gmail.com
on 8 Jul 2014 at 5:42
Try deleting the file at `$HOME/apktool/framework/1.apk` and try again.
Original comment by connor.tumbleson
on 8 Jul 2014 at 5:44
I deleteв this file and tried decomplile my apk again. I have same result. May
be it depends on the version OS (Windows 8) or system language (i have russian
windows) or version of JDK? I attach my builded "apktool.jar". May be on
another OS doesn't have this problem.
Original comment by ka7a8.ru...@gmail.com
on 9 Jul 2014 at 4:05
Max size of attach 10MB my apktool.jar - 12MB.
External link: https://yadi.sk/d/vxWfQXYRWHXRo
Original comment by ka7a8.ru...@gmail.com
on 9 Jul 2014 at 4:09
Original issue reported on code.google.com by
ka7a8.ru...@gmail.com
on 26 Jun 2014 at 9:23Attachments: