[Q] MIUI port help needed from devs - Galaxy S II Q&A, Help & Troubleshooting

Please Refer the below link first to know what procedure i have followed.
http://forum.xda-developers.com/showthread.php?t=1479493
After running make command to make a ported zip file, got this error. Please tell me what about the error is and how can i fix that.
Code:
cp /home/jayasimha/thepatcher/miui/system/framework/framework-miui-res.apk .build/ZIP/system/framework/framework-miui-res.apk
build .build/framework-res.apk...
--------------------------------------------
cp -r framework-res .build
/home/jayasimha/thepatcher/tools/apktool b .build/framework-res .build/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'wifi_available' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
aapt: warning: string 'wifi_available_detailed' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
I: Building apk file...
cp apks-unsinged to zip dirs
cp .build/framework-res.apk .build/ZIP/system/framework/framework-res.apk
build .build/MIUISystemUI.apk...
--------------------------------------------
cp -r SystemUI .build
/home/jayasimha/thepatcher/tools/apktool b .build/SystemUI .build/MIUISystemUI.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
res/drawable-hdpi/status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res/drawable-hdpi/status_bar_background.9.png:0: Originally defined here.
/home/jayasimha/thepatcher/i9100G/.build/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
/home/jayasimha/thepatcher/i9100G/.build/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.build/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, /tmp/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [.build/MIUISystemUI.apk] Error 1

Related

[Q] UOT kitchen Help

Well, I'm trying to create a theme[Based On one from CM7], but each time i'm done uploading the androidian.apk[Name changed, duh], and go to the pickup, there's always an error.
Decompiling themer.apk UOT-01-14-10-34-3
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Compiling themer.apk UOT-01-14-10-34-3
W: Could not find sources
I: Building resources...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
/home/uotftp/port5/data/working_dir/UOT-01-14-10-34-3/th_dec/res/values/styles.xml:113: error: Error: Integer types not allowed (at 'android:measureWithLargestChild' with value '1').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5138942739872585286.tmp, -x, -I, /home/uotftp/apktool/framework/1.apk, -S, /home/uotftp/port5/data/working_dir/UOT-01-14-10-34-3/th_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-01-14-10-34-3/th_dec/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, /tmp/APKTOOL5138942739872585286.tmp, -x, -I, /home/uotftp/apktool/framework/1.apk, -S, /home/uotftp/port5/data/working_dir/UOT-01-14-10-34-3/th_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-01-14-10-34-3/th_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Anyone know where I went wrong? It's a bit generic, I know, so don't flame me either. Pweaashe.

[Q] modding question

Hey,
I am a noob (lol) and I have been trying to comile SystemUI apk but after decompiling I cannont recompile it as I get the following error:
apktool b SystemUI ~/Desktop/almostdone.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/layout-sw600dp
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/drawable-sw600dp-mdpi
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw600dp-port
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw720dp-port
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/drawable-sw720dp-mdpi
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw600dp
invalid resource directory name: /home/wahmed/Android/Danielle/ics/SystemUI/res/values-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1718396844567339264.tmp, -I, /home/wahmed/apktool/framework/1.apk, -S, /home/wahmed/Android/Danielle/ics/SystemUI/res, -M, /home/wahmed/Android/Danielle/ics/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, /tmp/APKTOOL1718396844567339264.tmp, -I, /home/wahmed/apktool/framework/1.apk, -S, /home/wahmed/Android/Danielle/ics/SystemUI/res, -M, /home/wahmed/Android/Danielle/ics/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Click to expand...
Click to collapse
Some help qould be appreciated! :crying:
PS: I am running ubuntu 12.10 beta and have openjdk 6 installed
have you performed:
Code:
java -jar apktool.jar if framework-res.apk
if that doesn't work, try a newer version of apktool.jar perhaps.. last time I checked was v1.5.0 by iBotPeaches.

APKTOOL - recompiling Xperia arc S's SystemUI error

I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich ROM. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
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: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Re:Error
Getting same error :crying: how u solved it...pls help me
maxio1998 said:
I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich ROM. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
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: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
Try to install other resource apk or change the apktool version
Firstly, Make sure you have aapt in your path.
Secondly, Find out are there any other resource apk in directory system/framework, if exist, install them using:
"apktool if system/framework/SemcGenericUxpRes.apk" for example.
If still does not work, try to change the version of apktool. The newest is 1.5.2, but version 1.4.1 seems to work well.
maxio1998 said:
I had been looking before for the same thread I created, but I hadn't found so I created this one. I want to mod some apps for my Jelly Sandwich ROM. Decompiling goes well, but recompiling - error!
This what I exactly do:
apktool if framework-res.apk (success)
apktool d SystemUI.apk (success)
apktool b SystemUI.apk (error)
This is what I get after recompiling command:
Code:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
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: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
dostŕpu)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
... 8 more
Even without changing anything, apktool doesn't recompile my apk.
I have tried to recompile on two PCs - both of them have latest Java software installed.
-----------------EDIT------------------------
I got something like that once also:
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/drawab
le-sw600dp-hdpi
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/layout
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw600dp-port
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp
invalid resource directory name: C:\Users\JA\Desktop\apktool\SystemUI\res/values
-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JA\AppData\Local\Temp\APKT
OOL5816768975862364769.tmp, -I, C:\Users\JA\apktool\framework\1.apk, -S, C:\User
s\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\JA\Desktop\apktool\SystemUI\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\JA\AppData\Local\Temp\APKTOOL5816768975862364769.tmp, -I, C:\Users\JA\apkto
ol\framework\1.apk, -S, C:\Users\JA\Desktop\apktool\SystemUI\res, -M, C:\Users\J
A\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
abanduan said:
Secondly, Find out are there any other resource apk in directory system/framework, if exist, install them using:
"apktool if system/framework/SemcGenericUxpRes.apk" for example.
Click to expand...
Click to collapse
+1
...Sent from Zed
i am also having alot of Errors :/
installing framework is good
decompiling also good
recompiling just dusnt happen

[Q] Recompiling apk

Hi.
I need help.. When I try recompile SystemUI.apk I get this error:
Code:
C:\android\apk tool>apktool b test SystemUI1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apk tool\test\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\android\apk tool\test\res/drawable-sw720dp-hdpi
invalid resource directory name: C:\android\apk tool\test\res/layout-sw600dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw600dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw600dp-port
invalid resource directory name: C:\android\apk tool\test\res/values-sw720dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL377918059572126641.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apk tool\test\res, -M, C:\androi
d\apk tool\test\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\Martin\AppData\Local\Temp\APKTOOL377918059572126641.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apk tool\test\res, -M, C:\android\apk tool\test\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Thanks for advices
At a guess, it looks like you haven't installed any resource files. And you might be using an old version of apktool.
Try Tickle My Android..
Sent from my SK17i using xda premium
Ticklefish said:
At a guess, it looks like you haven't installed any resource files. And you might be using an old version of apktool.
Try Tickle My Android..
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Thanks. And how i install resource files?
Sent from my U8800 using xda app-developers app

			
				
You need update the "aapt". You can download lastest aapt at the attachments. Replace this file with your aapt.exe file
forumber2 said:
You need update the "aapt". You can download lastest aapt at the attachments. Replace this file with your aapt.exe file
Click to expand...
Click to collapse
Thanks. But I got new error :crying:
Code:
C:\android\apktool>apktool b test new.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
res\drawable-hdpi\status_bar_close_on.png:0: error: Resource entry status_bar_close_on is already defined.
res\drawable-hdpi\status_bar_close_on.9.png:0: Originally defined here.
res\drawable-hdpi\status_bar_hr.png:0: error: Resource entry status_bar_hr is already defined.
res\drawable-hdpi\status_bar_hr.9.png:0: Originally defined here.
C:\android\apktool\test\res\layout\status_bar_expanded.xml:12: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/notification_header_bg2').
C:\android\apktool\test\res\layout\status_bar_expanded.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/notification_header_bg2').
C:\android\apktool\test\res\layout\status_bar_expanded.xml:13: error: Error: No resource found that matches the given name (at 'minHeight' with value '@dimen/notification_panel_widget_height').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL5457996143886151145.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apktool\test\res, -M, C:\androi
d\apktool\test\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\Martin\AppData\Local\Temp\APKTOOL5457996143886151145.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apktool\test\res, -M, C:\android\apktool\test\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
My money is on old version .
Sent from my HTC One X using xda premium
S.a.M.e.R_d said:
My money is on old version .
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
My money is on somebody taking a shortcut when doing some modding on this apk.
It's complaining that there are duplicate png's in the apk. Two of these will need to be deleted before you try and recompile. Which two depends on the images themselves. Have a look at them and delete the two you don't want.
There's also an error that says you're missing an image file called notification_header_bg and you're missing a dimension. Sort all this out and you should be able to recompile without any problems.

Compiling APK problem

Code:
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool if framework-res.apk
I: Framework installed to: C:\Users\David\apktool\framework\1.apk
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool d Home.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\2.apk
I: Loaded.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool b Home Home.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:21:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:29:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:3: error: Error retrieving parent for item: No resource found that matches the
given name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:45:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:53:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:24: error: Error retrieving parent for item: No resource found that matches th
e given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp
\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\
1.apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\An
droid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apkt
ool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\David\AppData\Local\Temp\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:
\Users\David\apktool\framework\1.apk, -I, C:\Users\David\apktool\framework\2.apk
, -S, C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res, -M, C:\Users\D
avid\Desktop\Android Tools\apktool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp\A
PKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\1.
apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\Andr
oid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apktoo
l1.5.2\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Here is the log. as you can see the framework is installed but I still get some problem in the values

Categories

Resources