Git Product home page Git Product logo

brut.apktool's Introduction

brut.apktool's People

Contributors

arichnad avatar broo2s avatar burgerz avatar iamghost avatar ibotpeaches avatar kckrinke avatar kufikugel avatar miuirussia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brut.apktool's Issues

Building apktool

This issue has been on the google code website for 5 months now (http://code.google.com/p/android-apktool/issues/detail?id=284). There's a work around posted there, but the work around doesn't work, so maybe someone here has another one. I believe this is specific to nux-based development environments.

What steps will reproduce the problem?

  1. $ git clone git://github.com/brutall/brut.apktool.git apktool
  2. $ cd apktool
  3. $ mvn package

What is the expected output? What do you see instead?
Expected a successful build but the following output is generated:

Downloading: http://android-apktool.googlecode.com/svn/m2-releases/brut/apktool/smali/smali-pom/1.0-SNAPSHOT/smali-pom-1.0-SNAPSHOT.pom
[INFO] Unable to find resource 'brut.apktool.smali:smali-pom:pom:1.0-SNAPSHOT' in repository android-apktool.googlecode.com (http://android-apktool.googlecode.com/svn/m2-releases)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: brut.apktool.smali:smali:jar:${aversion}

Reason: Cannot find parent: brut.apktool.smali:smali-pom for project: brut.apktool.smali:smali:jar:${aversion} for project brut.apktool.smali:smali:jar:${aversion}

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Jun 11 21:20:37 PDT 2012
[INFO] Final Memory: 16M/39M
[INFO] ------------------------------------------------------------------------

K, so here is the workaround that was posted in google code Issue 284:

  1. Open the subdirectory "repository\brut\apktool" in your local maven repository. It is usually located in you user home directory in a directory named ".m2".
  2. Edit the following files:

smali\baksmali\1.3.0-brut6\baksmali-1.3.0-brut6.pom
smali\dexlib\1.3.0-brut6\dexlib-1.3.0-brut6.pom
smali\smali\1.3.0-brut6\smali-1.3.0-brut6.pom
smali\util\1.3.0-brut6\util-1.3.0-brut6.pom

in each of this files replace

"${aversion}" or "${version}" with
"1.3.0-brut6"

and 4 lines below in the element replace

"1.0-SNAPSHOT" with "1.0-brut1"

Afterwards the "mvn package" command will succeed.

Except that the build does not succeed, I get the same output. Seems like some other file is responsible for the faulty version tag but I don't know which one. Anybody?

Latest HTC ICS RUU's has problems compiling with flag errors

The HTC Sensation 4.0.3 rom's apps have problems compiling. I keep getting errors even without changes to the files.

Here's what I get when installing the framework apks:

W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR27

'package' attribute value is retrieved from wrong attribute in manifest file

I want to extract some details from the manifest file of a particular APK (http://www.freewarelovers.com/android/download/temp/1300052439_RealCalc_1.6.0.apk). Every attribute value I want is retrieved except for the 'package' attribute. When I attempt to retrieve this attribute's value I get the value of the 'versionCode' attribute instead. All the details which I extracted from other APKs' manifest files were fine. I looked at the manifest file which is causing the trouble and it had nothing remarkably different from the others. This is the piece of code I'm using to get the attribute's value:

axmlParser.getAttributeValue(null, "package");

confusing logic

I find some code snippet in ApkDecoder.java

JarFile jf = new JarFile(mApkFile.getAbsoluteFile());
            JarEntry je = jf.getJarEntry("resources.arsc");
            if (je != null) {
                int compression = je.getMethod();
                mCompressResources = (compression != ZipEntry.STORED)
                        && (compression == ZipEntry.DEFLATED);
            }
            jf.close();

as java define

public static final int DEFLATED
Added in API level 1
Zip entry state: Deflated.
Constant Value: 8 (0x00000008)
public static final int STORED
Added in API level 1
Zip entry state: Stored.
Constant Value: 0 (0x00000000)

possible output for above logic

input(compression's value) output(mCompressResources's value )
ZipEntry.STORED false
ZipEntry.DEFLATED true
Others value false

why not just use mCompressResources = (compression == ZipEntry.DEFLATED); which get the same result ?

Cant decompile APKs

for the whole apk(Nova_Launcher_2.0.1beta3)

I: Baksmaling...
This dex file has a link section, which is not supported. Ignoring.
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Index: 26998
, Size: 4737
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(Inst
ructionWithReference.java:79)
at org.jf.dexlib.Code.InstructionWithReference.(InstructionWithRef
erence.java:57)
at org.jf.dexlib.Code.Format.Instruction21c.(Instruction21c.java:6
3)
at org.jf.dexlib.Code.Format.Instruction21c.(Instruction21c.java:4
0)
at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Inst
ruction21c.java:112)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:82)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:77)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.(DexFile.java:431)
at org.jf.dexlib.DexFile.(DexFile.java:267)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:49)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:34)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:74)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.lang.IndexOutOfBoundsException: Index: 26998, Size: 4737
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
... 18 more
Error occured while retrieving the field_id_item item at index 26998
Error occured at code address 16
code_item @0x6e638

for resources

I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1.
apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: layout/menu_button.xml
S: Could not decode file, replacing by FALSE value: layout/hotseat.xml
S: Could not decode file, replacing by FALSE value: layout/drawergroup_row.xml
S: Could not decode file, replacing by FALSE value: layout/workspace_screen.xml
S: Could not decode file, replacing by FALSE value: layout/lookout_dialog.xml
W: Could not decode attr value, using undecoded value instead: ns=, name=drawabl
e, value=0x00000001
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria
lizer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:
673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer
ializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
02)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:8
6)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:236
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)

ResFileDecoder is incorrectly parsing attributes for some APKs

As you can see below some of the attribute names are missing:

    <application ="@android:style/Theme.NoTitleBar" ="@com.margenelampson85.MusicBillboardTop100:string/app_name" ="@com.margenelampson85.MusicBillboardTop100:drawable/icon" ="orientation" ="true" ="true">
        <activity ="ZyAlUlOyFBtFPeJaoSTaHxcbnjdosjFs" />
        <activity ="gDCrrbXTuDJymJMfDNMaQOnZRCsaiKIo" />
        <activity ="kGFmEzGhiftSSyvFlwvZJvQmNRuxAJLL" />
        <activity ="rXTQEaZJuSBTnheKCdtXUGLMajnKUYZm" />
        <activity ="TdzUdjoVKhjRmTuqnslTeYUnlEijDufx" />
        <activity ="FrBOGwzNGrazMqMfBGjzAwLeFVIZafxG" />
        <activity ="YvdvVRbmRBZhneJTnjuKUypPhpQnNwKM" />

The above is the result of this decoding the following apk:
00fc1fb656155bde989ae0391041de5a41185e27 (I just named it as a .png, so github will let me upload it; it's a .zip)

This is a valid APK that installs.

Jeb also seems to handle it properly (although the attributes are not namespaced properly):

    <application allowBackup="true" configChanges="orientation" hardwareAccelerated="true" icon="@drawable/icon" label="@string/app_name" theme="@android:style/Theme.NoTitleBar">
        <activity name="ZyAlUlOyFBtFPeJaoSTaHxcbnjdosjFs" />
        <activity name="gDCrrbXTuDJymJMfDNMaQOnZRCsaiKIo" />
        <activity name="kGFmEzGhiftSSyvFlwvZJvQmNRuxAJLL" />
        <activity name="rXTQEaZJuSBTnheKCdtXUGLMajnKUYZm" />
        <activity name="TdzUdjoVKhjRmTuqnslTeYUnlEijDufx" />
        <activity name="FrBOGwzNGrazMqMfBGjzAwLeFVIZafxG" />
        <activity name="YvdvVRbmRBZhneJTnjuKUypPhpQnNwKM" />
        <activity name="NhNEjZvKZDYdnSrwmcrLsgSHXgvuQhmE" />
        <activity name="ZiyZEjYiicvauSnwjZPqSwnYSHOZUspT" />
        <activity name="OSgXRpfTKgoDuKMtzclWqjOYYOSrdMTR" />
        <activity name="aPwpVqZbECwppPPsbLIlAGjpzBtlvlQv" />

Cant decompile ICS APKs

I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Silver\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x00000000
S: Could not decode file, replacing by FALSE value: mipmap-xhdpi/ic_launcher_settings.png
S: Could not decode file, replacing by FALSE value: mipmap-hdpi/ic_launcher_settings.png
S: Could not decode file, replacing by FALSE value: mipmap-mdpi/ic_launcher_settings.png
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueFrom, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueTo, value=0x3f800000
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300e9
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

Compiling Error

it decomiles nicely.. then i make samll change in string.xml in my framework and when i compile it shows an error.
here is the log-


Thu 05/24/2012 -- 23:50:04.78

--2012-05-24 23:50:05-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... failed: The requested name is valid, but no data of the requested type was found. .
wget: unable to resolve host address `update.apkmultitool.com'
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
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, C:\Users\Atishay\AppData\Local\Temp\APKTOOL7091332561866353306.tmp, -x, -S, E:\apkkk\projects\framework-res.apk\res, -M, E:\apkkk\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Atishay\AppData\Local\Temp\APKTOOL7091332561866353306.tmp, -x, -S, E:\apkkk\projects\framework-res.apk\res, -M, E:\apkkk\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

Can't compile ICS packages

Getting error when *xhdpi folders present in the package using apktool 1.4.3:

E:\android-sdk\apktool\apk_manager_4.9\other>apktool b -f SystemUI
W: Could not find sources
I: Building resources...
invalid resource directory name: E:\android-sdk\apktool\apk_manager_4.9\other\SystemUI\res/drawable-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vano\A
ppData\Local\Temp\APKTOOL1822773242991317666.tmp, -I, C:\Users\Vano\apktool\framework\1.apk, -I, C:\Users\Vano\apktool\framework\2.apk, -S,
E:\android-sdk\apktool\apk_manager_4.9\other\SystemUI\res, -M, E:\android-sdk\apktool\apk_manager_4.9\other\SystemUI\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vano\AppData\Local\Temp\APKTOOL1822773242991317666.tmp,
 -I, C:\Users\Vano\apktool\framework\1.apk, -I, C:\Users\Vano\apktool\framework\2.apk, -S, E:\android-sdk\apktool\apk_manager_4.9\other\Syst
emUI\res, -M, E:\android-sdk\apktool\apk_manager_4.9\other\SystemUI\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
        ... 6 more

Can't decompile Google Music


Fri 12/23/2011 -- 9:46:24.32

--2011-12-23 09:46:24-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 216.172.99.21
Connecting to update.apkmultitool.com (update.apkmultitool.com)|216.172.99.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

 0K                                                       100% 1.68M=0s

2011-12-23 09:46:24 (1.68 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)
Could Not Find C:\Users\Young\Desktop\HTC\APK_Multi-Tool\Apk_Multi-Tool\place-apk-here-for-modding../place-apk-here-for-modding/signedcom.google.android.music.apk
Could Not Find C:\Users\Young\Desktop\HTC\APK_Multi-Tool\Apk_Multi-Tool\place-apk-here-for-modding../place-apk-here-for-modding/unsignedcom.google.android.music.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Young\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f333333
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f333333
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
I: Decoding values_/_ XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101031f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

Problem with Musicplayer.apk (Touchwiz)

hi i have problem with decompilin (touchwiz) Musicplayer.apk on android 2.3.5 stock

this is the error i get:

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
Nao foi poss¡vel localizar C:\Users\gions\Desktop\ApkMultiTool\place-apk-here-for-modding../place-apk-here-for-modding/signedMusicPlayer.apk
Nao foi poss¡vel localizar C:\Users\gions\Desktop\ApkMultiTool\place-apk-here-for-modding../place-apk-here-for-modding/unsignedMusicPlayer.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\gions\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\gions\apktool\framework\2.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060042
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003b
I: Decoding values_/_ XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01060042
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

Can't compile latest youtube 2.3.4

decompiling works,but compiling failes.
error log:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\drawable\btn_tab_default.9.png
libpng error: Read Error
ERROR: Failure processing PNG image G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\drawable\btn_tab_selected.9.png
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:22: error: Public symbol drawable/add_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:57: error: Public symbol drawable/add_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:58: error: Public symbol drawable/add_selected declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:59: error: Public symbol drawable/alert_error declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:60: error: Public symbol drawable/appwidget_inner_focus_l declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:61: error: Public symbol drawable/appwidget_inner_press_l declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:23: error: Public symbol drawable/avatar_border declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:24: error: Public symbol drawable/avatar_missing declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:62: error: Public symbol drawable/bg_contextual_above declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:63: error: Public symbol drawable/bg_contextual_below declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:64: error: Public symbol drawable/bg_stack_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:65: error: Public symbol drawable/bg_vidcontrol declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:66: error: Public symbol drawable/bg_vidcontrol_full declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:67: error: Public symbol drawable/btn_cc_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:68: error: Public symbol drawable/btn_cc_off_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:69: error: Public symbol drawable/btn_cc_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:70: error: Public symbol drawable/btn_cc_on_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:71: error: Public symbol drawable/btn_default_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:72: error: Public symbol drawable/btn_default_selected declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:73: error: Public symbol drawable/btn_hq_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:74: error: Public symbol drawable/btn_hq_off_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:75: error: Public symbol drawable/btn_hq_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:76: error: Public symbol drawable/btn_hq_on_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:77: error: Public symbol drawable/btn_logo_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:78: error: Public symbol drawable/btn_logo_selected declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:25: error: Public symbol drawable/btn_tab_default declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:26: error: Public symbol drawable/btn_tab_selected declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:27: error: Public symbol drawable/btn_widget_logo declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:28: error: Public symbol drawable/button_background declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:29: error: Public symbol drawable/cancel_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:30: error: Public symbol drawable/capture_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:31: error: Public symbol drawable/contextual_menu_anchor declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:32: error: Public symbol drawable/copy_url_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:79: error: Public symbol drawable/corner_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:80: error: Public symbol drawable/corner_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:81: error: Public symbol drawable/corner_pressed declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:33: error: Public symbol drawable/delete_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:34: error: Public symbol drawable/dislike_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:35: error: Public symbol drawable/edit_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:36: error: Public symbol drawable/favorite_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:37: error: Public symbol drawable/flag_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:82: error: Public symbol drawable/header declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:83: error: Public symbol drawable/header_divider declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:84: error: Public symbol drawable/ic_3d declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:85: error: Public symbol drawable/ic_3d_promo declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:86: error: Public symbol drawable/ic_activity_comment declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:87: error: Public symbol drawable/ic_activity_favorite declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:88: error: Public symbol drawable/ic_activity_friend declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:89: error: Public symbol drawable/ic_activity_like declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:90: error: Public symbol drawable/ic_activity_shared declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:91: error: Public symbol drawable/ic_activity_subscribe declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:92: error: Public symbol drawable/ic_activity_upload declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:93: error: Public symbol drawable/ic_add_playlist declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:94: error: Public symbol drawable/ic_add_playlist_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:95: error: Public symbol drawable/ic_add_to declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:96: error: Public symbol drawable/ic_add_to_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:97: error: Public symbol drawable/ic_add_to_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:98: error: Public symbol drawable/ic_cancel declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:99: error: Public symbol drawable/ic_cancel_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:183: error: Public symbol drawable/ic_context_menu declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:100: error: Public symbol drawable/ic_copy_link declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:101: error: Public symbol drawable/ic_copy_link_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:102: error: Public symbol drawable/ic_delete declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:103: error: Public symbol drawable/ic_delete_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:104: error: Public symbol drawable/ic_dislike declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:105: error: Public symbol drawable/ic_dislike_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:106: error: Public symbol drawable/ic_dislike_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:107: error: Public symbol drawable/ic_edit declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:108: error: Public symbol drawable/ic_edit_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:109: error: Public symbol drawable/ic_favorite declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:110: error: Public symbol drawable/ic_favorite_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:111: error: Public symbol drawable/ic_flag declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:112: error: Public symbol drawable/ic_flag_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:113: error: Public symbol drawable/ic_hd declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:114: error: Public symbol drawable/ic_launcher_youtube declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:115: error: Public symbol drawable/ic_like declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:116: error: Public symbol drawable/ic_like_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:117: error: Public symbol drawable/ic_like_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:118: error: Public symbol drawable/ic_list_add_new_dark declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:119: error: Public symbol drawable/ic_list_add_new_light declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:120: error: Public symbol drawable/ic_list_favorite_dark declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:121: error: Public symbol drawable/ic_list_favorite_light declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:122: error: Public symbol drawable/ic_list_watch_later_dark declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:123: error: Public symbol drawable/ic_list_watch_later_light declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:124: error: Public symbol drawable/ic_menu_browse declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:125: error: Public symbol drawable/ic_menu_capture_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:126: error: Public symbol drawable/ic_menu_capture_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:127: error: Public symbol drawable/ic_menu_home declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:128: error: Public symbol drawable/ic_menu_my_channel declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:129: error: Public symbol drawable/ic_menu_search_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:130: error: Public symbol drawable/ic_menu_search_normal declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:131: error: Public symbol drawable/ic_more declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:132: error: Public symbol drawable/ic_more_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:133: error: Public symbol drawable/ic_more_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:134: error: Public symbol drawable/ic_music declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:135: error: Public symbol drawable/ic_music_promo declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:136: error: Public symbol drawable/ic_no_thumb declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:137: error: Public symbol drawable/ic_now_playing declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:138: error: Public symbol drawable/ic_plusone_small_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:139: error: Public symbol drawable/ic_plusone_small_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:140: error: Public symbol drawable/ic_plusone_standard_error declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:141: error: Public symbol drawable/ic_plusone_standard_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:142: error: Public symbol drawable/ic_plusone_standard_off_blank declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:143: error: Public symbol drawable/ic_plusone_standard_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:144: error: Public symbol drawable/ic_plusone_standard_on_blank declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:38: error: Public symbol drawable/ic_searchable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:145: error: Public symbol drawable/ic_share declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:146: error: Public symbol drawable/ic_share_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:147: error: Public symbol drawable/ic_share_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:148: error: Public symbol drawable/ic_unavailable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:149: error: Public symbol drawable/ic_unfavorite declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:150: error: Public symbol drawable/ic_unfavorite_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:151: error: Public symbol drawable/ic_upload declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:152: error: Public symbol drawable/ic_vidcontrol_cc_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:153: error: Public symbol drawable/ic_vidcontrol_cc_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:154: error: Public symbol drawable/ic_vidcontrol_fullscreen_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:155: error: Public symbol drawable/ic_vidcontrol_fullscreen_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:156: error: Public symbol drawable/ic_vidcontrol_fullscreenoff declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:157: error: Public symbol drawable/ic_vidcontrol_fullscreenon declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:158: error: Public symbol drawable/ic_vidcontrol_hq_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:159: error: Public symbol drawable/ic_vidcontrol_hq_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:160: error: Public symbol drawable/ic_vidcontrol_next declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:161: error: Public symbol drawable/ic_vidcontrol_next_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:162: error: Public symbol drawable/ic_vidcontrol_pause declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:163: error: Public symbol drawable/ic_vidcontrol_play declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:164: error: Public symbol drawable/ic_vidcontrol_play_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:165: error: Public symbol drawable/ic_vidcontrol_prev declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:166: error: Public symbol drawable/ic_vidcontrol_prev_disabled declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:167: error: Public symbol drawable/ic_vidcontrol_reload declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:168: error: Public symbol drawable/ic_yt_locked declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:169: error: Public symbol drawable/ic_yt_unlocked declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:39: error: Public symbol drawable/like_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:170: error: Public symbol drawable/logo declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:40: error: Public symbol drawable/more_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:41: error: Public symbol drawable/player_cc declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:42: error: Public symbol drawable/player_fullscreen declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:43: error: Public symbol drawable/player_hq declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:44: error: Public symbol drawable/player_next declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:45: error: Public symbol drawable/player_play declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:46: error: Public symbol drawable/player_prev declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:47: error: Public symbol drawable/player_replay declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:171: error: Public symbol drawable/player_replay_focus declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:172: error: Public symbol drawable/player_replay_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:48: error: Public symbol drawable/plus1_button_background declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:173: error: Public symbol drawable/plus1_button_background_off declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:174: error: Public symbol drawable/plus1_button_background_on declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:175: error: Public symbol drawable/promo_bubble declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:176: error: Public symbol drawable/promo_flick declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:177: error: Public symbol drawable/promo_rotate declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:49: error: Public symbol drawable/save_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:178: error: Public symbol drawable/scrubber_knob declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:50: error: Public symbol drawable/search_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:51: error: Public symbol drawable/share_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:52: error: Public symbol drawable/tab_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:53: error: Public symbol drawable/unfavorite_drawable declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:54: error: Public symbol drawable/upload_progress_bar declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:179: error: Public symbol drawable/vevo_overlay declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:180: error: Public symbol drawable/video_frame declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:181: error: Public symbol drawable/video_hud_center declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:55: error: Public symbol drawable/widget_divider declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:56: error: Public symbol drawable/widget_left_highlight declared here is not defined.
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res\values\public.xml:182: error: Public symbol drawable/yt_widget_background declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Paul\AppData\Local\Temp\APKTOOL1886333206759682039.tmp, -I, C:\Users\Paul\apktool\framework\1.apk, -S, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res, -M, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Paul\AppData\Local\Temp\APKTOOL1886333206759682039.tmp, -I, C:\Users\Paul\apktool\framework\1.apk, -S, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\res, -M, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\Youtube.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

I only changed some hex color codes,that's all.nothing fancy yet (smali editing,transparency hacks,...).

compiling youtube 2.1.6 was fine,worked like a charm.

can't decompile latest market/jelly bean market

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
G:\HANDY\progs\Apk_Manager_5.0.2\place-apk-here-for-modding../place-apk-here-for-modding/signedJB_Play_Store.apk konnte nicht gefunden werden
G:\HANDY\progs\Apk_Manager_5.0.2\place-apk-here-for-modding../place-apk-here-for-modding/unsignedJB_Play_Store.apk konnte nicht gefunden werden
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Paul\apktool\framework\1.apk
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.lang.String.replace(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.escapeXmlChars(ResXmlEncoders.java:29)
at brut.androlib.res.decoder.StringBlock.getHTML(StringBlock.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:222)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:209)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:177)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResources.java:81)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:72)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:94)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

Cannot Decompile S6 Themestore app

I was trying to decompile Themestore from Galaxy S6 and was prompted with below error:

I: Using Apktool 2.0.0-RC4 on ThemeStore_3xh.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\User\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010104ce
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:581)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:344)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:133)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

However, removing first "resources.arsc" in the apk file works.
Here is the link for the framework and the apk file: https://www.dropbox.com/sh/b44xhfqr47tuhz3/AADPcGykGVNQLBECxCZPf_mZa?dl=0

Why not close the file in the end of brut.androlib.src.SmaliBuilder.buildFile(..)?

Hi Brutall,

Thanks for your great job.

I've encountered the java.io.FileNotFoundException (Too many open files) when I use apktool to build lots of smali files for a large apk file in a resource restricted environment.

The real problem is:

Why not close the file (input stream) in the end of brut.androlib.src.SmaliBuilder.buildFile(..)? If there are lots of smali files to build, not closing the opened files will cause java.io.FileNotFoundException (Too many open files) in the middle of SmaliBuilder.build(..).

Looking forward to your reply.

Thanks.

Yours sincerely,

Min Cai

Cannot decompile TouchPal Contact

When I decompile TouchPal Contact apk, it fails.

Here is the apk:

http://uploading.com/files/get/6b987b27/tc.apk

Exception Log:
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResStringValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
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:64)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:98)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:102)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:169)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:114)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)

can not compile .apk

i am using apk Multi-tools v.1.0.2, and i can't compiling any apk with this tools.

this my log :

11/04/2012 -- 20:04:24,81

--2012-04-11 20:04:25-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

 0K                                                       100% 2,42M=0s

2012-04-11 20:04:26 (2,42 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\AFan10\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
I: Done.
I: Copying assets and libs...
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, C:\Users\AFan10\AppData\Local\Temp\APKTOOL8442704672734560504.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL8442704672734560504.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

11/04/2012 -- 20:10:21,18

--2012-04-11 20:10:21-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

 0K                                                       100% 2,52M=0s

2012-04-11 20:10:24 (2,52 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
I: Checking whether sources has changed...
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, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1873634948308619802.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1873634948308619802.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

11/04/2012 -- 20:11:33,71

--2012-04-11 20:11:33-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

 0K                                                       100% 2,58M=0s

2012-04-11 20:11:37 (2,58 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\AFan10\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
I: Done.
I: Copying assets and libs...
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, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1780028430672962525.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1780028430672962525.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

Can't compile latest android phone.apk (jvu,taken from samsung galaxy i9000)

this is my error log:

G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res\values-es-rUS\strings.xml:205: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res\values-es-rUS\strings.xml:206: error: Unexpected end tag string
aapt: warning: string 'alert_updating_title' has no default translation in G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res; found: fr
aapt: warning: string 'empty_list' has no default translation in G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res; found: fr
aapt: warning: string 'more' has no default translation in G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res; found: fr
aapt: warning: string 'start_webex' has no default translation in G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res; found: bg cs da de el es et fi fr ga hr hu is it kk ko lt lv mk nl no pl pt ro ru sk sl sr sv tr uk
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Paul\AppData\Local\Temp\APKTOOL8318042528261242709.tmp, -I, C:\Users\Paul\apktool\framework\1.apk, -I, C:\Users\Paul\apktool\framework\2.apk, -S, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res, -M, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Paul\AppData\Local\Temp\APKTOOL8318042528261242709.tmp, -I, C:\Users\Paul\apktool\framework\1.apk, -I, C:\Users\Paul\apktool\framework\2.apk, -S, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\res, -M, G:\HANDY\progs\Apk_Manager_5.0.2\other..\projects\STOCK_Phone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

APKMT Alpha2 decompile systemui.apk for 4.0.2

When i use the apk multi tool to decompile the 4.0.2 systemui.apk it error's out after "test" and when i look into my project folder i am left with only smali here is the log from the error

java version "1.7.0"

Java(TM) SE Runtime Environment (build 1.7.0-b147)

Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

Could Not Find C:\Users\mikeyinid\Desktop\GS2\Apk_Manager_5.0.2\place-apk-here-for-modding../place-apk-here-for-modding/signedSystemUI.apk

Could Not Find C:\Users\mikeyinid\Desktop\GS2\Apk_Manager_5.0.2\place-apk-here-for-modding../place-apk-here-for-modding/unsignedSystemUI.apk

I: Baksmaling...

I: Loading resource table...

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13

    at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)

    at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)

    at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

    at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)

    at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)

    at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)

    at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)

    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)

    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)

    at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)

    at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)

    at brut.androlib.Androlib.getResTable(Androlib.java:44)

    at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)

    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)

    at brut.apktool.Main.cmdDecode(Main.java:120)

    at brut.apktool.Main.main(Main.java:57)

Cannot decode M Preview 2 resources.arsc

Figured I'll report this.

Tried TeleService and framework-res from the Nexus 9 ( volantis ) M Preview 2 both produce the same results ... Output below. Looks like the format has changed a little

java -Xmx256M -jar /android/bin/apktool.jar -v -d d -f TeleService.apk
Jul 10, 2015 12:36:46 PM brut.androlib.ApkDecoder decode
INFO: Using Apktool 2.0.0 on TeleService.apk
Jul 10, 2015 12:36:46 PM brut.androlib.res.AndrolibResources loadMainPkg
INFO: Loading resource table...
Jul 10, 2015 12:36:46 PM brut.androlib.res.decoder.ARSCDecoder readConfigFlags
FINE: Config flags size > 48, but exceeding bytes are all zero, so it should be ok.
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:538)
    at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
    at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
    at brut.androlib.Androlib.getResTable(Androlib.java:64)
    at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:209)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
    at brut.apktool.Main.cmdDecode(Main.java:165)
    at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000001
    at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
    at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
    at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
    at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189)
    at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
    at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:114)
    at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
    ... 8 more

Can't compile any apk

Apk Multi-Tools 1.0.2 is installed on root folder of Android SDK. My system is Gingerbread 2.3.6
any apk as a result of this error

Error log:

31/01/2012 -- 15:35:27,03

--2012-01-31 15:35:27-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

 0K                                                       100% 1,47M=0s

2012-01-31 15:35:27 (1,47 MB/s) - `apkver.txt' saved [152/152]

Sottodirectory o file projects gi… esistente.
Sottodirectory o file place-apk-here-for-modding gi… esistente.
Sottodirectory o file place-ogg-here gi… esistente.
Sottodirectory o file place-apk-here-to-batch-optimize gi… esistente.
Sottodirectory o file place-apk-here-for-signing gi… esistente.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
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, C:\Users\garf02\AppData\Local\Temp\APKTOOL2281681947679875093.tmp, -I, C:\Users\garf02\apktool\framework\1.apk, -I, C:\Users\garf02\apktool\framework\2.apk, -S, J:\android-sdk\projects\Browser.apk\res, -M, J:\android-sdk\projects\Browser.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\garf02\AppData\Local\Temp\APKTOOL2281681947679875093.tmp, -I, C:\Users\garf02\apktool\framework\1.apk, -I, C:\Users\garf02\apktool\framework\2.apk, -S, J:\android-sdk\projects\Browser.apk\res, -M, J:\android-sdk\projects\Browser.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, Impossibile trovare il file specificato
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, Impossibile trovare il file specificato
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.