apk tool error - Galaxy Grand Duos i9082 Q&A, Help & Troubleshootin

hi all i use apktool for edit secsetting.apk
i decompile successfully
but when try to compile apk it give me this error
C:\Users\MeDoZ\apk>apktool b -f -d SecSettings
I: Using Apktool 2.0.0-Beta7 on SecSettings
I: Smaling...
I: Building resources...
C:\Users\MeDoZ\apk\SecSettings\res\values\public.xml:7210: error: Public symbol
string/battry_style_summary declared here is not defined.
C:\Users\MeDoZ\apk\SecSettings\res\values\public.xml:7209: error: Public symbol
string/battry_style_title declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\MeDoZ\
AppData\Local\Temp\brut_util_Jar_674533178003000298.tmp, p, --debug-mode, --forc
ed-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-c
ode, 17, --version-name, 4.2.2-I9082XXUBMK3, -F, C:\Users\MeDoZ\AppData\Local\Te
mp\APKTOOL3831050047354612033.tmp, -0, arsc, -I, C:\Users\MeDoZ\apktool\framewor
k\1.apk, -I, C:\Users\MeDoZ\apktool\framework\2.apk, -S, C:\Users\MeDoZ\apk\SecS
ettings\res, -M, C:\Users\MeDoZ\apk\SecSettings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\MeDoZ\AppData\Local\Temp\brut_util_Jar_6745331780030002
98.tmp, p, --debug-mode, --forced-package-id, 127, --min-sdk-version, 17, --targ
et-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-I9082XXUBMK3, -F,
C:\Users\MeDoZ\AppData\Local\Temp\APKTOOL3831050047354612033.tmp, -0, arsc, -I,
C:\Users\MeDoZ\apktool\framework\1.apk, -I, C:\Users\MeDoZ\apktool\framework\2.a
pk, -S, C:\Users\MeDoZ\apk\SecSettings\res, -M, C:\Users\MeDoZ\apk\SecSettings\A
ndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\MeDoZ\Ap
pData\Local\Temp\brut_util_Jar_674533178003000298.tmp, p, --debug-mode, --forced
-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-cod
e, 17, --version-name, 4.2.2-I9082XXUBMK3, -F, C:\Users\MeDoZ\AppData\Local\Temp
\APKTOOL3831050047354612033.tmp, -0, arsc, -I, C:\Users\MeDoZ\apktool\framework\
1.apk, -I, C:\Users\MeDoZ\apktool\framework\2.apk, -S, C:\Users\MeDoZ\apk\SecSet
tings\res, -M, C:\Users\MeDoZ\apk\SecSettings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
its happen when i compile secsetting.apk or systemui.apk
i install java ans android sdk and framwork.res and twframwork but not fix
any solution
sorry for bad english

i also have this prblm ! WHAT TO DO ANY SOLution ? u got any stuff ?

Sharique244777 said:
i also have this prblm ! WHAT TO DO ANY SOLution ? u got any stuff ?
Click to expand...
Click to collapse
Do 1 thing.. Open your original apk with 7zip/winrar.. Jus drag two files i.e AndroidManifest.xml and resource.arsc in d decompiled folder... Replace if it ask for the same... Then start compiling...
Hit Thanks if it helped you
Sent from my GT-I9082 using Tapatalk

Related

Modding Phone.apk

Ok I have the newest apktool 1.5.2 I have installed framework-res.apk and com.htc.resources.apk but get warnings seems this is normal. I decompile Phone.apk and then tried recompiling it without making changes trying to troubleshoot the issue and I get these error's any help please.
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\APK\phone\res/drawable-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/drawable-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL827132729019243
5011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\
Users\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\p
hone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Lo
cal\Temp\APKTOOL8271327290192435011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\a
pktool\framework\1.apk, -I, C:\Users\Jason CCCE LLC\apktool\framework\2.apk, -S,
c:\APK\phone\res, -M, c:\APK\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, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL82713272901924350
11.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\Us
ers\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\pho
ne\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Try upgrading your aapt binary with the latest one.
Riyal said:
Try upgrading your aapt binary with the latest one.
Click to expand...
Click to collapse
I have to no avail.
The_new_user said:
I have to no avail.
Click to expand...
Click to collapse
Have you tried with framework-res.apk from api14 or api16? It should work.
There's a BUG of Phone.apk.
You can't recompile it unless you fix that bug.
(But I don't know how to fix it. :目)

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

APK recompile error

Howdy all. I posted this in the general Q&A sub forum over a month ago and never got a reply. Just looking for an update (or better apk decompiler/recompiler) so I will not get these errors. I've already tried APK Manager, Apk multitool, and Eclipse that came with the Android SDK. I'm all outta ideas.
radji said:
Howdy all. Speak slowly and in small words...I'm not fluent in android.
I am retheming a mail app (as I've done about a dozen times before). This time during recompile, it spits out the value/dimension/string not allowed error. Is there an update to get around this? The only XML I edited in the whole app is the app name in the strings.
Code:
C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res\values-v17\styles.xml:8: error: Error: Dimension types not allowed (at 'android:textUnderlineColor' with value '8.0dip').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\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, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\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, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
Questions and Help issues go in Q&A and Help section
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator

[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