[Q] compile email.apk - Samsung Galaxy S (4G Model)

hey i was trying to compile my email.apk but keep getting errors sorry for the long post can anyone help me. this is what i am getting what have i done wrong.
C:\>cd "C:\Documents and Settings\belsmith\Desktop\Apktool"
C:\Documents and Settings\belsmith\Desktop\Apktool>apktool b email
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\belsmith\LOCALS~1\Temp\
APKTOOL5343843107761720866.tmp, -I, C:\Documents and Settings\belsmith\apktool\f
ramework\1.apk, -I, C:\Documents and Settings\belsmith\apktool\framework\2.apk,
-S, C:\Documents and Settings\belsmith\Desktop\Apktool\email\res, -M, C:\Documen
ts and Settings\belsmith\Desktop\Apktool\email\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\D
OCUME~1\belsmith\LOCALS~1\Temp\APKTOOL5343843107761720866.tmp, -I, C:\Documents
and Settings\belsmith\apktool\framework\1.apk, -I, C:\Documents and Settings\bel
smith\apktool\framework\2.apk, -S, C:\Documents and Settings\belsmith\Desktop\Ap
ktool\email\res, -M, C:\Documents and Settings\belsmith\Desktop\Apktool\email\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
aapt: warning: string 'account_settings_smime_import_certificate_title' has no d
efault translation in C:\Documents and Settings\belsmith\Desktop\Apktool\email\r
es; found: de es fr it ko
aapt: warning: string 'account_settings_smime_installed_certificates_list' has n
o default translation in C:\Documents and Settings\belsmith\Desktop\Apktool\emai
l\res; found: de es fr it ko
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-de\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-de\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-es\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-es\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-fr\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-fr\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-it\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-it\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-ko\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-ko\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool>

Hi, your post is very long.
I once failed to compile an apk due to duplication of a value in the resources string.xml. you might check that if you touched it.
Sent from me

Related

Hello! Need some help with apktool.

Hello! I'm new to the forum and a casual android modder. I've really enjoyed digging into the Android world and have learned a lot from the forum. I was working with apktool and ran into a bit of a problem. I searched and found a post indicating that the environmental variables had to be tweaked which I did but this did not resolve the problem.
Thanks in advance,
-Adam
Environmental variables:
PHP:
C:\>echo %PATH%
C:\DMI\WIN32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime Alternative\QTSystem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime Alternative\QTSystem\;C:\Program Files\ZipGenius 6\;C:\PROGRA~1\JPSoft\4dos; C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools
apktool commands (minus a few more lines of errors for length):
PHP:
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool d framework-res.apk
I: Loading resource table...
I: Decoding resources...
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_header_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/statusbar_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_close_on.9.png". Renaming it to *.png.
I: Copying assets and libs...
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_close_on.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_header_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\statusbar_background.9.png
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public entry identifier 0x1080252 entry index is larger than available symbols (index 594, total symbols 43).
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public symbol drawable/APKTOOL_DUMMY_0252 declared here is not defined.
.
.
.
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3340: error: Public symbol drawable/zz_stat_sys_signal_5_cdma declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\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:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
I also need some help with apktool. I'm trying to get into changing xml files on my Droid X. I've been able to successfully use the tool to decode apk files but i've heard that you can use it to decode xml files. Every time I try to do that though I get an error.
Included is a capture of the code I type in and the erros i'm getting with the xml file. I am trying to manipulate the simple eri.xml file that Verizon uses.
@adam-c
Could you upload original apk and zipped dir with decoded app? What is in these drawable-mdpi/status_bar_header_background.9.png, etc. files in decoded app? Are there both status_bar_header_background.9.png and status_bar_header_background.png (without ".9") files, but first one is empty or what?
@homes315
For now you can't decode single xml file - decode whole apk instead.
I have been searching for two days, and have tried everything I could find to figure this out, to no avail.
Could someone please help me get the apktool working on my computer?
when I enter apktool I get:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/object
From what I can tell I have my CLASSPATH and PATH set up correctly.
Any help would be greatly appreciated.
BTW, I am running Windows 7 64bit

Auto APK Tool

Hy all it's mee again :/
Today i try to add change ( http://review.cyanogenmod.com/#/c/25391/ ) i found this is in LatinIME.apk file then i download THIS AutoAPKTool and i do like this
1. Open AutoAPKTool.bat
2. Move the apk file whitch i want to edit in _INPUT_APK Folder
3. Press number 6 and drag the link of file in and press enter
4. Edit the Style.xml
5. Then again run the AutoAPKTool.bat
6. Press number 7 and drag the link of edited folder in
7. Then i get this error :/
[*] C:\Users\Nataça\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME
recompiling C:\Users\Nataça\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/drawable-xhdpi
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw600dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw600dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw768dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/values-sw768dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw600dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw600dp-land
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw768dp
invalid resource directory name: C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res/xml-sw768dp-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\NATAA~1\AppData\Local\Temp\APKTOOL4520095 777156111205.tmp, -I, C:\Users\Nataša\apktool\framework\1.apk, -S, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res, -M, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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\NATAA~1\AppData\Local\Temp\APKTOOL4520095 777156111205.tmp, -I, C:\Users\Nataša\apktool\framework\1.apk, -S, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\res, -M, C:\Users\Nataša\Desktop\xdaAutoAPKTool_V3.0.2\_INP UT_APK\LatinIME\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:191)
... 6 more
Unable to open '_INPUT_APK\LatinIME\dist\LatinIME.apk' as zip archive
Navedenega pogona ni mogoźe najti.
Click to expand...
Click to collapse
Can anyone tell me how to fix this ? :/
You seem to have a typo somewhere as the "_INP UT_APK" folder should not have a blank in it.

[SOLVED] Framework Wont compile. even without change, please help. im stumped

SOLVED
ok i did it kinda
i deleted anything that had to do with these lines
in all the values folders (about 50)
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item> @grgsiocl
in the values folders. and kept deleting any line that got in my way *apktoool gave me other new errors* , this is un usable *it wont boot your device* but it compiles and decompiles without problems, after your done, just transfer the
edited files to the original apk with winrar. and use "store" for compression method
i spent like 4 hours on that. thats sad, anyways,
heres the link http://d-h.st/1qE
ok i have the latest apktool and aapt for api 17
its the framework-res.apk deodexed
i get this error
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Work here\Compile\framework-res\res/drawable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F.....
heres the full thing
Code:
C:\Work here\Compile>apktool b "C:\Work here\Compile\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Work here\Compile\framework-res\res/drawable
-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Tem
p\APKTOOL2695060268938746519.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framewo
rk-res\res, -M, C:\Work here\Compile\framework-res\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, C:
\Users\SALMAN\AppData\Local\Temp\APKTOOL2695060268938746519.tmp, -x, -0, arsc, -
S, C:\Work here\Compile\framework-res\res, -M, C:\Work here\Compile\framework-re
s\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Temp\
APKTOOL2695060268938746519.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framework
-res\res, -M, C:\Work here\Compile\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Work here\Compile>
@op copy the drawable-ldrtl-hdpi somewhere and delete the folder from decompile directory and then compile back. After compiling, again copy back that folder. Another solution is , push the framework2 as well and then try compiling back. Also plurals needs to be corrected! OR UPDATE the aapt file to the latest from the android sdk
edit: ideleted entire layout folder before decompiling and after compiling back, i again placed that folder in decompiled apk. I need to check whether it really it works or not by taking backup!
Take a look here http://forum.xda-developers.com/showthread.php?t=2259308
grgsiocl said:
@op copy the drawable-ldrtl-hdpi somewhere and delete the folder from decompile directory and then compile back. After compiling, again copy back that folder. Another solution is , push the framework2 as well and then try compiling back. Also plurals needs to be corrected!
Click to expand...
Click to collapse
ok thank you so much, its building now. but then i get this error after awhile. i had to also delete "values-ldrtl-hdpi" Folder
and that folder you mentioned. i googled that ldrtl-hdpi and it turns out there no such thing mentioned about it :silly:
thats weird all i found was this post right here. anyways this is the error
Code:
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_password_landscape
.xml:22: error: Error: No resource found that matches the given name (at 'layout
' with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_password_portrait.
xml:22: error: Error: No resource found that matches the given name (at 'layout'
with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_tab_unlock.xml:23:
error: Error: No resource found that matches the given name (at 'layout' with v
alue '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_tab_unlock_land.xm
l:17: error: Error: No resource found that matches the given name (at 'layout' w
ith value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_unlock_landscape.x
ml:18: error: Error: No resource found that matches the given name (at 'layout'
with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_unlock_portrait.xm
l:23: error: Error: No resource found that matches the given name (at 'layout' w
ith value '@layout/keyguard_transport_control').
aapt: warning: string 'default_audio_route_name_hdmi' has no default translation
in C:\Work here\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'default_permission_group' has no default translation in C
:\Work here\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'perms_hide' has no default translation in C:\Work here\Co
mpile\framework-res\res; found: en_GB es
aapt: warning: string 'perms_show_all' has no default translation in C:\Work her
e\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'securekeypad_restrict' has no default translation in C:\W
ork here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg' has no default translation in
C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_all' has no default translation
in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_applicationmanager' has no defa
ult translation in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_more' has no default translatio
n in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_settings' has no default transl
ation in C:\Work here\Compile\framework-res\res; found: zh_CN
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Tem
p\APKTOOL7074233155691749137.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framewo
rk-res\res, -M, C:\Work here\Compile\framework-res\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, C:
\Users\SALMAN\AppData\Local\Temp\APKTOOL7074233155691749137.tmp, -x, -0, arsc, -
S, C:\Work here\Compile\framework-res\res, -M, C:\Work here\Compile\framework-re
s\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Temp\
APKTOOL7074233155691749137.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framework
-res\res, -M, C:\Work here\Compile\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Work here\Compile>
@grgsiocl
@op i will check in a while on my computer as i see it is not finding the resources. I will get back to you!
the "values-ldrtl-hdpi" includes 1 file called "drawables.xml"
and inside it is
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item>
</resources>
@grgsiocl
ok i did it kinda
i deleted anything that had to do with these lines
in all the values folders (about 50)
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item>
@grgsiocl
in the values folders. and kept deleting any line that got in my way *apktoool gave me other new errors* , this is un usable *it wont boot your device* but it compiles and decompiles without problems, after your done, just transfer the
edited files to the original apk with winrar. and use "store" for compression method
i spent like 4 hours on that. thats sad, anyways,
heres the link http://d-h.st/1qE

[Q] No matter what I do I get UOT Kitchen SHTF error

Hello everyone
I'm really at my wit's end with the UOT Kitchen here. I've uploaded 3 different Framework-res.apk and SystemUI.apk from the different ROMS available for my phone (LG Optimus Slider running 2.3.4) and I get the SHTF error each time. I've never had any trouble with UOTK before, granted it was about a year ago that I used it last. Did something change with it?
So I installed Xposed (for Gingerbread) thinking it would work better. Nope. When I try to install the UOT apk it won't install and spits out an error message about "Not being able to parse"
I've never had a problem using the UOTK before. Could somebody please tell me what's going wrong?
Error log: UOT-10-04-19-41-1-SHTF.txt
Decompiling framework-res.apk UOT-10-04-19-41-1
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-10-04-19-41-1
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Compiling framework-res.apk UOT-10-04-19-41-1
W: Could not find sources
I: Building resources...
aapt: /lib/libz.so.1: no version information available (required by aapt)
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-ko/strings.xml:689: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-ko/strings.xml:691: error: Unexpected end tag string
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-zh-rCN/strings.xml:689: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
/home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res/values-zh-rCN/strings.xml:691: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/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, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/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, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL5382109605747588451.tmp, -x, -S, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-10-04-19-41-1/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

[Q] recompile problem framework-res.apk (4.2.2 jb) apk

i have apktool and all software for apktool i do decompile framework-res.apk working perfectly but i m also recompile apk it's send this error
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'headset_pin_recognition' has no default translation in C:
\apktool\framework-res\res; found: zh_CN
C:\apktool\framework-res\res\layout\keyguard_screen_password_landscape.xml:21: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_password_portrait.xml:21: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock.xml:22: error: Er
ror: No resource found that matches the given name (at 'layout' with value '@lay
out/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:16: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: err
or: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:20: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\T
emp\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:
\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\VINODK~1\AppData\Local\Temp\APKTOOL5014567853137649274.tmp, -x, -S, C:\ap
ktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\Tem
p\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:\a
pktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
what should i do plz help
thanks in advanced
at first you have wrong posted,it shall be in Q/A section,now the second,did you install the framework res before?when not do it and it shall work than.
hey bro sorry because when i posting this i have only permission in this section Sorry i was always tried it but getting this error
Did you change any files in the APK package?? If you send me the framework, may be I will be able to help.
Problem Solved
thanks for helping me problem has solved i did add + in the error of xmls this is working greate

Categories

Resources