Transparent incoming call screen - HTC One V

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

Related

CM9 Mods Help Kinda

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

Apk recompile error - HELP

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

[Q]settings_headers.xml [Still Need help]

so i wanted to know how to add text under a headder i created , how would i do that
so i added this under the strings.xml
<string name="header_category_advanced">Credits</string>
and then this under public.xml
<public type="string" name="header_category_advanced" id="0x7f0b0658" />
but i have no idea what to add to the setting_headers.xml , what would i add because i wanted to know how to add a name and then a reason underneath
and yess i will include your name in my credits
Also i get this Error, how would i fix it? because i would like to Recompile without silly errors (yes i did install the frameworks before hand Decompiling)
[email protected]:~$ cd adt
[email protected]:~/adt$ cd apk
[email protected]:~/adt/apk$ ls
framework-res.apk SemcGenericUxpRes.apk Settings Settings.apk
[email protected]:~/adt/apk$ apktool b -f -d Settings
I: Smaling...
I: Building resources...
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2132: error: Resource entry author_header is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2130: Originally defined here.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2133: error: Resource entry author_name is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2131: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:~/adt/apk$
Envious_Data said:
so im trying to add a credits item to the about phone menu in the settings and i can seem to figure out how , ive looked at tutorials alot of them are useless to me due to my horrible interpretation skills (can hardly call them skills)
could someone directly , and spesificly explain how i add a new menu , with a credits item with credits
im sure with just the information on how to make menu, sub menu/item and etc, i will be able to make others
im also going to try and add the white balance settings apk
any help would be apreciated, ill add your name to the credits of my ROM... in the menu you helped me create
Click to expand...
Click to collapse
Hi there,
Please use this guide - http://forum.xda-developers.com/showpost.php?p=37296483&postcount=3
to add Headers [options] in your settings.apk. Then if I were you then I would create a very simple app in Eclipse which would only contain some TextViews to display the credits and change the target class in settings.apk to the MainActivity of the credits app [the one which has to be made in Eclipse]. That should hopefully do it
Regards,
abcdjdj
thank you
so since im not going to be making the app in eclipse im hoping to maybe add the data within the settings apk
thanks for your help and your name will be put in my credits
Envious_Data said:
so i wanted to know how to add text under a headder i created , how would i do that
so i added this under the strings.xml
<string name="header_category_advanced">Credits</string>
and then this under public.xml
<public type="string" name="header_category_advanced" id="0x7f0b0658" />
but i have no idea what to add to the setting_headers.xml , what would i add because i wanted to know how to add a name and then a reason underneath
and yess i will include your name in my credits
Also i get this Error, how would i fix it? because i would like to Recompile without silly errors (yes i did install the frameworks before hand Decompiling)
[email protected]:~$ cd adt
[email protected]:~/adt$ cd apk
[email protected]:~/adt/apk$ ls
framework-res.apk SemcGenericUxpRes.apk Settings Settings.apk
[email protected]:~/adt/apk$ apktool b -f -d Settings
I: Smaling...
I: Building resources...
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2132: error: Resource entry author_header is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2130: Originally defined here.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2133: error: Resource entry author_name is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2131: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:~/adt/apk$
Click to expand...
Click to collapse
No need to manually add the id in public.xml. Just add the string and recompile
ok
abcdjdj said:
No need to manually add the id in public.xml. Just add the string and recompile
Click to expand...
Click to collapse
that explains that , but could you please explain how i would get around the Recompiling issue?
ps thanks again
thanks , Issue sorted out , turns out that for some reason my aapt had gone missing

Apktool for kitkat 4.4

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:

[HELP]I cant add JB animations to my GB

i cant add JB animations to GB. theirs hundreds of tuts i followed and they dont work when i compile my apk i get the following error
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool>apktool b framework-res
I: Using Apktool 2.0.0-Beta9 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDA
RKM~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-i
d, 1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --ver
sion-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL2680947754549401
578.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-
res\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\
AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
at brut.androlib.Androlib.buildResources(Androlib.java:363)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\brut_util_Jar_683405974500036
5220.tmp, p, --forced-package-id, 1, --min-sdk-version, 10, --target-sdk-version
, 10, --version-code, 10, --version-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS
~1\Temp\APKTOOL2680947754549401578.tmp, -x, -S, C:\Documents and Settings\XDarkM
ario\Desktop\ApkTool\framework-res\res, -M, C:\Documents and Settings\XDarkMario
\Desktop\ApkTool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDARK
M~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-id,
1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --versi
on-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL268094775454940157
8.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-re
s\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:464)
... 6 more
Here:
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
As you can see, something is wrong in the first line of the .xml. look for "invalid tokens" such as commas or symbols that should not be where they are.
I've been looking into how to fix these errors lately and I ran into this awesome xml plugin for notepad ++ it can detect script errors. Ill give this another shot
R800Q

Categories

Resources