[Q] Apktool Error Compiling.

Kendosis

Senior Member
May 5, 2009
137
41
0
New York
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows>apktool if c:\A1\SystemUI.apk
I: Framework installed to: C:\Users\Shaquille\apktool\framework\127.apk

C:\Windows>apktool d c:\A1\SystemUI.apk
I: Using Apktool 2.0.0-Beta7 on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Shaquille\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...

C:\Windows>apktool b c:\Windows\SystemUI C:\A1\SystemUI2.apk
I: Using Apktool 2.0.0-Beta7 on SystemUI
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
c:\Windows\SystemUI\res\layout\powersaver_and_battery_layout.xml:6: error: Error
: No resource found that matches the given name (at 'style' with value '@com.htc
:style/list_primary_m').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\SHAQUI
~1\AppData\Local\Temp\brut_util_Jar_6592240642828505595.tmp, p, --forced-package
-id, 127, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, -
-version-name, 4.1.2-eng..20130418.210438, -F, C:\Users\SHAQUI~1\AppData\Local\T
emp\APKTOOL3486564733048346615.tmp, -0, arsc, -I, C:\Users\Shaquille\apktool\fra
mework\1.apk, -S, c:\Windows\SystemUI\res, -M, c:\Windows\SystemUI\AndroidManife
st.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        at brut.androlib.Androlib.buildResources(Androlib.java:362)
        at brut.androlib.Androlib.build(Androlib.java:285)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [C:\Users\SHAQUI~1\AppData\Local\Temp\brut_util_Jar_6592240642828
505595.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-ver
sion, 16, --version-code, 16, --version-name, 4.1.2-eng..20130418.210438, -F, C:
\Users\SHAQUI~1\AppData\Local\Temp\APKTOOL3486564733048346615.tmp, -0, arsc, -I,
 C:\Users\Shaquille\apktool\framework\1.apk, -S, c:\Windows\SystemUI\res, -M, c:
\Windows\SystemUI\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\SHAQUI~1
\AppData\Local\Temp\brut_util_Jar_6592240642828505595.tmp, p, --forced-package-i
d, 127, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --v
ersion-name, 4.1.2-eng..20130418.210438, -F, C:\Users\SHAQUI~1\AppData\Local\Tem
p\APKTOOL3486564733048346615.tmp, -0, arsc, -I, C:\Users\Shaquille\apktool\frame
work\1.apk, -S, c:\Windows\SystemUI\res, -M, c:\Windows\SystemUI\AndroidManifest
.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
        ... 6 more

C:\Windows>
Any idea what's causing this error? I've tried every version of apktool I could find none worked. This is the raw systemui I haven't made any changes I just decompiled it (which works fine) and then recompiled. I'm using stock rom on the HTC First if that matters.

All I'm trying to do is hide the carrier label in the pull down notification bar and I've been going through hell -__-

P.S everything other system apk decompiles and recompiles perfectly I'm only having problems with the systemui.



Anyone willing to help a brother out the stock systemui and framework files are below.

SystemUI:
https://www.dropbox.com/s/o52uidc0tlewo0v/SystemUI.rar

Framwork-res:
https://www.dropbox.com/s/ytjnz83duxbfl85/framework-res.rar