I have modded my status bar in cm9 so its transparent but when i try to make it have center clock i get this
|24/07/2012 -- 15:09:39.00|
--------------------------------------------------------------------------
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)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:20: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.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\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
when im trying to compile the apk any ideas :/
Guide is here http://forum.xda-developers.com/showthread.php?t=1773930
Download the latest version of smali 1.3.3 from here and compile it manually.
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layo ut\status_bar.xml:20 ... could you show us the line 20 in this xml?
I thanked both and i fixed my errors in line 20 but now ive got this
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:29: error: Error parsing XML: mismatched tag
Which i have no idea about ?
+ .txt file is in .zip because i cant upload it ;/ + just realised i changed extension so its supposed to be .xml
try this: View attachment status_bar.zip
cyberking said:
try this: View attachment 1219507
Click to expand...
Click to collapse
Thanks + I did it and got transparent mod and center clock working after a bit but now there is no status bar and i cannot get it to come up anyone got any ideas ? it came up once :/ Really want to get it to work quite a few people want this
Managed to do it thanks to everyone who helped I thanked everyone :')
nice, so where was problem, i'm just curios
cyberking said:
nice, so where was problem, i'm just curios
Click to expand...
Click to collapse
Had one extra line in the status_bar.xml file + to get it to appear i had to reflash cm9 after full wipe then install the cm9 zip again just with different SystemUI.apk in it
dudeman1996 said:
Download the latest version of smali 1.3.3 from here and compile it manually.
Click to expand...
Click to collapse
Dude,
Is there any way to lock my mobile again....???
devilsdude said:
Dude,
Is there any way to lock my mobile again....???
Click to expand...
Click to collapse
What do you mean lock?
Sent from my HTC Wildfire S A510e using xda premium
Related
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
if you try just decompile and compile it
what happenned?
jimbobcox said:
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
Click to expand...
Click to collapse
Please post the log from your compiler.
pvy.
Will do when i get back on my laptop.
I will attemp decompile and compile without changes also.
Sent from my ST18i using XDA App
I have just decompiled the apk, i didn't make any changes and tried recompiling i got an error. Log as follows
---
|13/01/2012 -- 16:52:37.88|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedHome.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHome.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\JimBob\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Thanks in advance for any help!
SOLVED!
found solution here
http://forum.xda-developers.com/showthread.php?t=1276332
Sent from my ST18i using XDA App
Hello! Hello! I can not change Home.apk. I want to make three desktops and 4x5 apptray. If I build .apk I get the error:
Code:
C:\apk\Tools\..\Place_Files_Here\Home\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL792829079333190684.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -I, C:\Users\Admin\apktool\framework\2.apk, -S, C:\apk\Tools\..\Place_Files_Here\Home\res, -M, C:\apk\Tools\..\Place_Files_Here\Home\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\Admin\AppData\Local\Temp\APKTOOL792829079333190684.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -I, C:\Users\Admin\apktool\framework\2.apk, -S, C:\apk\Tools\..\Place_Files_Here\Home\res, -M, C:\apk\Tools\..\Place_Files_Here\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Home.apk from .431
Thanks!
Try this - http://forum.xda-developers.com/showthread.php?t=1759573
Grab aapt.exe from android sdk folder and place inside apktool. Apktool 1.4.3 has recompilation issues.
Sent from my LT18i using xda app-developers app
XperienceD said:
Try this - http://forum.xda-developers.com/showthread.php?t=1759573
Click to expand...
Click to collapse
Thank you, but after compiling (without changes or with changes) and installation (copy to system/app with rw-r-r-) phone doesn't start, stop on the logo Xperia.
7xGhost said:
Thank you, but after compiling (without changes or with changes) and installation (copy to system/app with rw-r-r-) phone doesn't start, stop on the logo Xperia.
Click to expand...
Click to collapse
After you're done compiling go to the builds folder copy the res folder & the arsc file, open the unmodded home.apk with a zip viewer like 7zip or winrar, delete the old res folder & arsc & replace it with the one on the build folder on where you compiled your modded home and that's it
Riyal said:
After you're done compiling go to the builds folder copy the res folder & the arsc file, open the unmodded home.apk with a zip viewer like 7zip or winrar, delete the old res folder & arsc & replace it with the one on the build folder on where you compiled your modded home and that's it
Click to expand...
Click to collapse
Thanks!! It's work!:laugh:
guys, i've been decompiling and compiling for some time now. and never got the compiling error. but today, i add some lines to an xml file in the apk. and while compiling, as it got to Building resources, it gave the following error, res/xml/settings_headers.xml. yes thats the file i added lines too. anyways, could anyone help me out here? :/ i tried reinstalling framework, got the new apktool.jar and aapt.exe. but still no luck, i checked the lines for any typing errors, but was unable to find any. help.
emwno said:
guys, i've been decompiling and compiling for some time now. and never got the compiling error. but today, i add some lines to an xml file in the apk. and while compiling, as it got to Building resources, it gave the following error, res/xml/settings_headers.xml. yes thats the file i added lines too. anyways, could anyone help me out here? :/ i tried reinstalling framework, got the new apktool.jar and aapt.exe. but still no luck, i checked the lines for any typing errors, but was unable to find any. help.
Click to expand...
Click to collapse
Maybe unicorns ate half your file...
Got some logs? the error that appears will tell you what is wrong. if you dont know what it is saying pop the log here and we can help. if there are hundreds of errors put them in CODE quotes
Code:
like this
or put the file here so we can see it might help too...
Pvy
pvyParts said:
Maybe unicorns ate half your file...
Got some logs? the error that appears will tell you what is wrong. if you dont know what it is saying pop the log here and we can help. if there are hundreds of errors put them in CODE quotes
Code:
like this
or put the file here so we can see it might help too...
Pvy
Click to expand...
Click to collapse
D: unicorns exist. i knew it!!.
anyways, here it is,
Code:
C:\apktool>apktool b settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\settings\res\xml\settings_headers.xml:19: error: Error parsing XML: m
ismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver
sion, 16, -F, C:\Users\Aashir\AppData\Local\Temp\APKTOOL7503268580718875465.tmp,
-I, C:\Users\Aashir\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M, C
:\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Aashir\AppData\Local\Temp\
APKTOOL7503268580718875465.tmp, -I, C:\Users\Aashir\apktool\framework\1.apk, -S,
C:\apktool\settings\res, -M, C:\apktool\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
emwno said:
D: unicorns exist. i knew it!!.
anyways, here it is,
Code:
C:\apktool>apktool b settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\settings\res\xml\settings_headers.xml:19: error: Error parsing XML: m
ismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver
sion, 16, -F, C:\Users\Aashir\AppData\Local\Temp\APKTOOL7503268580718875465.tmp,
-I, C:\Users\Aashir\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M, C
:\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Aashir\AppData\Local\Temp\
APKTOOL7503268580718875465.tmp, -I, C:\Users\Aashir\apktool\framework\1.apk, -S,
C:\apktool\settings\res, -M, C:\apktool\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
Click to expand...
Click to collapse
Line 19 mismatched tag
Sent from my Galaxy Nexus using xda premium
Hello everyone. Can someone please edit and compile this? I can decompile and edit file, but compiling always get me error. It is from Sphongle 21.5.13 rom. I would like full transparent incoming call screen. Any help would be pleasant.
Here is guide http://forum.xda-developers.com/showthread.php?t=1856517
Thank you.
http://d-h.st/7Rl
not sure how different that rom is from 4.1 roms but a easier method would be to just edit a 512x512 png that is completely transparent and readd it to the phone apk.
I will try it.
Dreggar said:
Hello everyone. Can someone please edit and compile this? I can decompile and edit file, but compiling always get me error. It is from Sphongle 21.5.13 rom. I would like full transparent incoming call screen. Any help would be pleasant.
Here is guide http://forum.xda-developers.com/showthread.php?t=1856517
Thank you.
Click to expand...
Click to collapse
what is the error that you get? its pretty simple guide. i will try. but you will have to test it.
ivanrvf said:
what is the error that you get? its pretty simple guide. i will try. but you will have to test it.
Click to expand...
Click to collapse
c:\Apktool>java -jar apktool.jar b Phone
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
c:\Apktool\Phone\res\values-de\strings.xml:170: error: Multiple substitutions sp
ecified in non-positional format; did you mean to add the formatted="false" attr
ibute?
c:\Apktool\Phone\res\values-de\strings.xml:171: error: Unexpected end tag string
c:\Apktool\Phone\res\values-es\strings.xml:170: error: Multiple substitutions sp
ecified in non-positional format; did you mean to add the formatted="false" attr
ibute?
c:\Apktool\Phone\res\values-es\strings.xml:171: error: Unexpected end tag string
c:\Apktool\Phone\res\values-es-rUS\strings.xml:173: error: Multiple substitution
s specified in non-positional format; did you mean to add the formatted="false"
attribute?
c:\Apktool\Phone\res\values-es-rUS\strings.xml:174: error: Unexpected end tag st
ring
c:\Apktool\Phone\res\values-it\strings.xml:170: error: Multiple substitutions sp
ecified in non-positional format; did you mean to add the formatted="false" attr
ibute?
c:\Apktool\Phone\res\values-it\strings.xml:171: error: Unexpected end tag string
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, D:\Temp\APKTOOL806675093492219433
9.tmp, -0, arsc, -I, C:\Users\Heidern\apktool\framework\1.apk, -S, c:\Apktool\Ph
one\res, -M, c:\Apktool\Phone\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, 17, --target-sdk-version, 17, -F, D:
\Temp\APKTOOL8066750934922194339.tmp, -0, arsc, -I, C:\Users\Heidern\apktool\fra
mework\1.apk, -S, c:\Apktool\Phone\res, -M, c:\Apktool\Phone\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, D:\Temp\APKTOOL8066750934922194339.
tmp, -0, arsc, -I, C:\Users\Heidern\apktool\framework\1.apk, -S, c:\Apktool\Phon
e\res, -M, c:\Apktool\Phone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Tried.. no luck!! Sorry
this might help: http://forum.xda-developers.com/showthread.php?t=2316070
ivanrvf said:
what is the error that you get? its pretty simple guide. i will try. but you will have to test it.
Click to expand...
Click to collapse
ivanrvf said:
Tried.. no luck!! Sorry
Click to expand...
Click to collapse
Damn. But thank you for trying.
Curtis1973 said:
not sure how different that rom is from 4.1 roms but a easier method would be to just edit a 512x512 png that is completely transparent and readd it to the phone apk.
Click to expand...
Click to collapse
Tried to edit phone.apk but after editing i had no signal.. I did something wrong.
i will look later at the app to see what it uses for the bg image. should be just a matter of making it transparent.
I have upload first time bad framework file. Now it should be right. Give it please another shot. :angel:
I have it now. Thanks for your help.
Dreggar said:
I have it now. Thanks for your help.
Click to expand...
Click to collapse
how did you do it?
ivanrvf said:
how did you do it?
Click to expand...
Click to collapse
I asked for help in OP. And one kind soul did it for me. His name is ..::WD40::..
Has anybody manage to recompile apks with apktool on 4.4? If so can you provide the link? Thanks in advance
Anybody?
F4M0U569 said:
Anybody?
Click to expand...
Click to collapse
Here is a thought maybe you should ask to have this moved to the Q&A section so it will get the proper views and in the right section for help... Jus Sayin'
F4M0U569 said:
Has anybody manage to recompile apks with apktool on 4.4? If so can you provide the link? Thanks in advance
Click to expand...
Click to collapse
Apktool working fine for me, android 4.4 decompiling and recompiling.
I'm not one for interpreting errors but if you post the log here then maybe someone can help you
Sent from my Nexus 4 using XDA Premium 4 mobile app
22sl22 said:
Apktool working fine for me, android 4.4 decompiling and recompiling.
I'm not one for interpreting errors but if you post the log here then maybe someone can help you
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
F4M0U569 said:
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
Click to expand...
Click to collapse
Here's the one I use: http://forum.xda-developers.com/showthread.php?t=1989533
But it looks like its not a problem with apk tool but rather the mod you are trying to do. Were you trying to mod mms or something ?
Sent from my Nexus 4 using XDA Premium 4 mobile app
22sl22 said:
Here's the one I use: http://forum.xda-developers.com/showthread.php?t=1989533
But it looks like its not a problem with apk tool but rather the mod you are trying to do. Were you trying to mod mms or something ?
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Still won't recompile with yours. Yes I'm editing some xmls and I can't think of anything that I did wrong
Hi
F4M0U569 said:
Could you share your apktool setup? Here is the log. I don't know which xml I screwed up
Code:
C:\Users\Dell\Desktop\JB 4.2>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dell\Desktop\JB 4.2>apktool b Mms
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc450
-mnc-1
invalid resource directory name: C:\Users\Dell\Desktop\JB 4.2\Mms\res/xml-mcc604
-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-ver
sion, 19, -F, C:\Users\Dell\AppData\Local\Temp\APKTOOL5539348833520971387.tmp, -
I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\Users\Dell\Desktop\JB 4.2\Mms\r
es, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Dell\AppData\Local\Temp\AP
KTOOL5539348833520971387.tmp, -I, C:\Users\Dell\apktool\framework\1.apk, -S, C:\
Users\Dell\Desktop\JB 4.2\Mms\res, -M, C:\Users\Dell\Desktop\JB 4.2\Mms\AndroidM
anifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Dell\Desktop\JB 4.2>]
Click to expand...
Click to collapse
Same problem here, resolved by:
Renaming the folders in the res as shown in the error from
xml-mcc450-mnc-1 to xml-mcc450-mnc1
xml-mcc604-mnc-1 to xml-mcc604-mnc1
Basically the last dash needs to be removed as when compiling doesn't like the 'dash' then number. I'm not sure what effect this may have but so far I've no issues at all after doing this for the framework-res.apk which has the same issue.
Regards
Phil
PhilipL said:
Hi
Same problem here, resolved by:
Renaming the folders in the res as shown in the error from
xml-mcc450-mnc-1 to xml-mcc450-mnc1
xml-mcc604-mnc-1 to xml-mcc604-mnc1
Basically the last dash needs to be removed as when compiling doesn't like the 'dash' then number. I'm not sure what effect this may have but so far I've no issues at all after doing this for the framework-res.apk which has the same issue.
Regards
Phil
Click to expand...
Click to collapse
Thanks it works! :good: