Need help with recompiling SystemUI - Sony Xperia P, U, Sola, Go

Hi guys i've problem with recompiling system apk using apktool. I want to remove battery percentage and i succed to decompile sytemui.apk and then i edited status_bar.xml. But when i want to recompiling, i get this error message
C:\apktool>apktool b sytemui SytemUI-new.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool\sytemui\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\apktool\sytemui\res/layout-sw600dp
invalid resource directory name: C:\apktool\sytemui\res/values-sw600dp
invalid resource directory name: C:\apktool\sytemui\res/values-sw600dp-port
invalid resource directory name: C:\apktool\sytemui\res/values-sw720dp
invalid resource directory name: C:\apktool\sytemui\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\MUHAMM~1\AppData\Local\Tem
p\APKTOOL5827614113126593031.tmp, -I, C:\Users\Muhammad Khusnul\apktool\framewor
k\1.apk, -S, C:\apktool\sytemui\res, -M, C:\apktool\sytemui\AndroidManifest.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\MUHAMM~1\AppData\Local\Temp\APKTOOL5827614113126593031.tmp, -I, C:\Users\Mu
hammad Khusnul\apktool\framework\1.apk, -S, C:\apktool\sytemui\res, -M, C:\apkto
ol\sytemui\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
Could someone help me please how to solve this problem ? or could someone remove battery percentage from my systemui, please?

Its system not sytem.
Sent from my Xperia S

Yes the spelling is wrong... And use new aapt and apktool...
Sent from my LT22i using Tapatalk 2

shmoejoe said:
Its system not sytem.
Sent from my Xperia S
Click to expand...
Click to collapse
I know it should be systemui. But "sytemui" is the folder name that contain decompiled SystemUI
techno-np said:
Yes the spelling is wrong... And use new aapt and apktool...
Sent from my LT22i using Tapatalk 2
Click to expand...
Click to collapse
Could you give me the link, please?
Sent from my ST25i using xda app-developers app

Related

[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.

[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.

[Q] Decompile SemcPhone.apk

Hey guys,
can anyone try decompiling SemcPhone.apk with apktool or any other tool then recompile ? If it works, please send the me appropriate aapt and apktool Ive been trying for ages but I keep getting silly errors due to '/' and '\' both appearing in address of 4 folders I tried deleting them to compile but then, I lose dialler functionality in apk :/
And I know its been done before so Im just wondering how the compiling was done I tried quite a few versions of aapt and all and so far, nothing worked Let me know at the earliest if you get it working cause I really want to decompile that apk :fingers-crossed:
Thanks in Advance
Cheers
I've had exact same this issue for a loong time. I've tried versions apktool and apkmanager. Any framework dependant apk ( SystemUI works fine I think ).
After decompiling, and trying to recompile, those same 4 directory name problems occur. Latest try is apktool 1.5.1. If anyone can help solve this, please post. Neectron may be able to help.
Even Im hoping someone will come up with a solution soon Its definitely possible because a friend of mine did compile SemcPhone for my rom but I didnt come across this error till after he left So Im in the lurch as well
Lets hope for the best And thanks for bumping the topic
Cheers
Can you copy and paste the error here?.I'll take a look.
This is what I had. Not sure if it's the same as Min3r
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res/values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\SURAJK~1\AppData\Local\Temp\APKTOOL1654663731666785591.tmp, -I, C:\Users\Surajkumar\apktool\framework\1.apk, -I, C:\Users\Surajkumar\apktool\framework\2.apk, -S, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res, -M, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.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\SURAJK~1\AppData\Local\Temp\APKTOOL1654663731666785591.tmp, -I, C:\Users\Surajkumar\apktool\framework\1.apk, -I, C:\Users\Surajkumar\apktool\framework\2.apk, -S, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\res, -M, C:\AndroidRomCooking\apkmanager\other\..\projects\SemcPhone_orig.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Delete those folders and try?
Exact same error I get Google Search said the issue was due to outdated aapt but I tried pretty much every aapt I could find and no luck I then deleted the file and after a few Plurals.xml fixes, I got it to compile but the apk will be corrupt and create FCs when you try to make/receive calls
Hope we can finally be able to compile that darn file soon
Hey neectron, do you know where the index of folders.etc is ? There has to be an xml file which contains list of values folders right ? I think it might be a syntax or formatting error there causing the issue. Unfortunately, I dont know the apk file structure so well so I cant do it myself
Min3r said:
Hey neectron, do you know where the index of folders.etc is ? There has to be an xml file which contains list of values folders right ? I think it might be a syntax or formatting error there causing the issue. Unfortunately, I dont know the apk file structure so well so I cant do it myself
Click to expand...
Click to collapse
I think AndroidManifest.xml manages that,but there won't be any index.
The mcc454-mnc1000 etc.are used to support different carriers.
Google AndroidManifest you will get clearer explanation.
same problem.Any ideia?
Install additional framework files
Sent from my ST25i using xda app-developers app
I can perfectly do this!
Andrewasth said:
Install additional framework files
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
which ones and how?
I only managed to install framework-res.apk
Me‎ said:
which ones and how?
I only managed to install framework-res.apk
Click to expand...
Click to collapse
systemui and semcgeneric one from the framework folder
same way
apktool if xxx.apk
bonjour j'ai un soucis , impossible de compiler SemcPhone.apk
j'ai des erreurs alors que j'ai apporté trois petite modifications et si je ne modifie rien ca me marque les mêmes erreur
Code:
C:\apktool>apktool d SemcPhone.apk SemcPhone
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Dada\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\Dada\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
C:\apktool>apktool b SemcPhone
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rCN
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rHK
invalid resource directory name: C:\apktool\SemcPhone\res/values-mcc454-mnc-1-zh
-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Dada\AppData\Local\Temp\
APKTOOL937899277147708100.tmp, -I, C:\Users\Dada\apktool\framework\1.apk, -I, C:
\Users\Dada\apktool\framework\2.apk, -S, C:\apktool\SemcPhone\res, -M, C:\apktoo
l\SemcPhone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Dada\AppData\Local\Temp\APKTOOL937899277147708100.tmp, -I, C:\Users\Dada\
apktool\framework\1.apk, -I, C:\Users\Dada\apktool\framework\2.apk, -S, C:\apkto
ol\SemcPhone\res, -M, C:\apktool\SemcPhone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dada\AppData\Local\Temp\AP
KTOOL937899277147708100.tmp, -I, C:\Users\Dada\apktool\framework\1.apk, -I, C:\U
sers\Dada\apktool\framework\2.apk, -S, C:\apktool\SemcPhone\res, -M, C:\apktool\
SemcPhone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
HELP ME ¨PLEASE

[Q] Systemui Compile Error

Hi guys, I'm trying to compile the Systemui.apk but it's happening this error.
Code:
C:\android\apktool>apktool b music system-new.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Can someone help me? Any solution? Android 4.2.2
joaog18 said:
Hi guys, I'm trying to compile the Systemui.apk but it's happening this error.
Code:
C:\android\apktool>apktool b music system-new.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Can someone help me? Any solution? Android 4.2.2
Click to expand...
Click to collapse
you have b music, is that where you decompiled the systemui to?
bobfrantic said:
you have b music, is that where you decompiled the systemui to?
Click to expand...
Click to collapse
Inside the music folder has the systemui files.
joaog18 said:
Inside the music folder has the systemui files.
Click to expand...
Click to collapse
you got the error because it couldn't find apktool.yml in the folder. so was just wondering if that is where it was decompiled to or did you move some files to music?
HTML:
bobfrantic said:
you got the error because it couldn't find apktool.yml in the folder. so was just wondering if that is where it was decompiled to or did you move some files to music?
Click to expand...
Click to collapse
I descompile it to this folder. In fact, inside has no file .yml
joaog18 said:
HTML:
I descompile it to this folder. In fact, inside has no file .yml
Click to expand...
Click to collapse
curious cause that file is generated by apktool upon the decompiling of the apk.
bobfrantic said:
curious cause that file is generated by apktool upon the decompiling of the apk.
Click to expand...
Click to collapse
But was not generated.
I decompile again:
Code:
C:\android\apktool>apktool if systemui.apk
I: Framework installed to: C:\Users\Rafael\apktool\framework\127.apk
C:\android\apktool>apktool d systemui.apk system
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Rafael\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionCode, value=0x00000011
I: Loading resource table from file: C:\Users\Rafael\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionName, value=0x00000020
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
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.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
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)
joaog18 said:
But was not generated.
I decompile again:
Code:
C:\android\apktool>apktool if systemui.apk
I: Framework installed to: C:\Users\Rafael\apktool\framework\127.apk
C:\android\apktool>apktool d systemui.apk system
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Rafael\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionCode, value=0x00000011
I: Loading resource table from file: C:\Users\Rafael\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionName, value=0x00000020
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
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.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
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)
Click to expand...
Click to collapse
You need to apktool if framework from CM, not the systemUI.
http://forum.xda-developers.com/showthread.php?t=1891686
Read a little before you continue.
shut_down said:
You need to apktool if framework from CM, not the systemUI.
http://forum.xda-developers.com/showthread.php?t=1891686
Read a little before you continue.
Click to expand...
Click to collapse
Thanks, now begat the file .yml. I'll create the mod, if der error I come back here in the topic!
shut_down said:
You need to apktool if framework from CM, not the systemUI.
http://forum.xda-developers.com/showthread.php?t=1891686
Read a little before you continue.
Click to expand...
Click to collapse
Ocurred:
Code:
C:\android\apktool>apktool b system systemui-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apktool\system\res/drawable-sw600dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/drawable-sw720dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/layout-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw380dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-la
nd
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-po
rt
invalid resource directory name: C:\android\apktool\system\res/values-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Tem
p\APKTOOL6539097856508465154.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framewor
k\1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\Androi
dManifest.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, 17, --target-sdk-version, 17, -F, C:
\Users\Rafael\AppData\Local\Temp\APKTOOL6539097856508465154.tmp, -0, arsc, -I, C
:\Users\Rafael\apktool\framework\1.apk, -S, C:\android\apktool\system\res, -M, C
:\android\apktool\system\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, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Temp\
APKTOOL6539097856508465154.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framework\
1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
joaog18 said:
Ocurred:
Code:
C:\android\apktool>apktool b system systemui-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apktool\system\res/drawable-sw600dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/drawable-sw720dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/layout-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw380dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-la
nd
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-po
rt
invalid resource directory name: C:\android\apktool\system\res/values-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Tem
p\APKTOOL6539097856508465154.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framewor
k\1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\Androi
dManifest.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, 17, --target-sdk-version, 17, -F, C:
\Users\Rafael\AppData\Local\Temp\APKTOOL6539097856508465154.tmp, -0, arsc, -I, C
:\Users\Rafael\apktool\framework\1.apk, -S, C:\android\apktool\system\res, -M, C
:\android\apktool\system\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, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Temp\
APKTOOL6539097856508465154.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framework\
1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Click to expand...
Click to collapse
invalid resource directory name: C:\android\apktool\system\res/drawable-sw600dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/drawable-sw720dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/layout-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw380dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-la
nd
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-po
rt
invalid resource directory name: C:\android\apktool\system\res/values-sw720dp
You meesed up with folders and stuff you put there. I am not sure, but those are there and not connected to anything, or you have it somewhere but those folders are missing. I am not expirienced that much in this, but htat is a problem.
shut_down said:
invalid resource directory name: C:\android\apktool\system\res/drawable-sw600dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/drawable-sw720dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/layout-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw380dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-la
nd
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-po
rt
invalid resource directory name: C:\android\apktool\system\res/values-sw720dp
You meesed up with folders and stuff you put there. I am not sure, but those are there and not connected to anything, or you have it somewhere but those folders are missing. I am not expirienced that much in this, but htat is a problem.
Click to expand...
Click to collapse
I will do it again, I'm trying to make transparent the status bar and change the icons.
joaog18 said:
I will do it again, I'm trying to make transparent the status bar and change the icons.
Click to expand...
Click to collapse
You need icons with original size for our phone. It can't be bigger or smaller.
shut_down said:
You need icons with original size for our phone. It can't be bigger or smaller.
Click to expand...
Click to collapse
Icons is 18x27 size. Which folder? Just replace that ever changes?
joaog18 said:
Icons is 18x27 size. Which folder? Just replace that ever changes?
Click to expand...
Click to collapse
Find image you want to change, and replace it with the one that is same size.
shut_down said:
Find image you want to change, and replace it with the one that is same size.
Click to expand...
Click to collapse
I'm following this tutorial: http://forum.xda-developers.com/showthread.php?t=2234355
shut_down said:
Find image you want to change, and replace it with the one that is same size.
Click to expand...
Click to collapse
Error:
Code:
C:\android\apktool>apktool b system systemui-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apktool\system\res/drawable-sw600dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/drawable-sw720dp-
hdpi
invalid resource directory name: C:\android\apktool\system\res/layout-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw380dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-la
nd
invalid resource directory name: C:\android\apktool\system\res/values-sw600dp-po
rt
invalid resource directory name: C:\android\apktool\system\res/values-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Tem
p\APKTOOL5222874421006062552.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framewor
k\1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\Androi
dManifest.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, 17, --target-sdk-version, 17, -F, C:
\Users\Rafael\AppData\Local\Temp\APKTOOL5222874421006062552.tmp, -0, arsc, -I, C
:\Users\Rafael\apktool\framework\1.apk, -S, C:\android\apktool\system\res, -M, C
:\android\apktool\system\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, 17, --target-sdk-version, 17, -F, C:\Users\Rafael\AppData\Local\Temp\
APKTOOL5222874421006062552.tmp, -0, arsc, -I, C:\Users\Rafael\apktool\framework\
1.apk, -S, C:\android\apktool\system\res, -M, C:\android\apktool\system\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
I can't change anything in SystemUI.apk, can't compile.
I just changed the "/res/values/drawables.xml"
I can't change anything in SystemUI.apk it gives error. Descompile and compiled now and haven't changed anything, gave the same error.
joaog18 said:
I can't change anything in SystemUI.apk it gives error. Descompile and compiled now and haven't changed anything, gave the same error.
Click to expand...
Click to collapse
STEP 1 - Install JAVA
http://forum.xda-developers.com/showthread.php?t=2213985
Set path to java too.
http://forum.xda-developers.com/showthread.php?t=1892932

Can' t recompiling framework-res

Hi, I searched all internet, but I still don't know why I can't recompile my framework-res.apk
I can decompile it, but only via newest APKTool, other ways getting error.
And recompiling ... I just tried decompile and recompile it, do nothing and it don't work.... I want change language in my phone to polish, it is Kiphone 5s, phone is great, but I can't recompile my translated xml file, because it don' work. It doesn't matter if I use changed files or stock files. Please help me with this.
My log, tried recompiling stock decompiled files ...
[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/drawable-ldrtl-hdpi
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/mipmap-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\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\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Nie moľna odnale«† dysku.
@Amcio
Try to use the GUI APK Tool for decompiling/recompiling APKs
@eduds
Hi, much thanks for reply, but it still not work ... Are yo have any ideas ? Maybe I will send you file ?
It is log:
2013-12-21
17:31:02,45
Decompiling..
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080301 drawable/ic_ab_back_holo_dark, config=-hdpi
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:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
@Amcio
Try to decompile and recompile right after, without change anything.
Sent from my GT-I9070 using XDA Premium 4 mobile app

Categories

Resources