Modding Phone.apk - One (M7) Themes and Apps

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

Related

Problem with ICS task switcher

I am not allowed to post in the dev forums since my 10 post threshold has not been reached.
I tired following the instructions in the thread
[HOW TO] [GUIDE] Add ICS/Jellybean like Task Switcher....[update] but im getting the following error
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 10 more
DiGtal said:
I am not allowed to post in the dev forums since my 10 post threshold has not been reached.
I tired following the instructions in the thread
[HOW TO] [GUIDE] Add ICS/Jellybean like Task Switcher....[update] but im getting the following error
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 10 more
Click to expand...
Click to collapse
ur aapt.exe is corrupt or not there
Im using linux(Ubuntu 12.04).
How do i get that in linux?
In windows, I have aapt.exe.

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

apk tool error

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

[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