[SOLVED] Framework Wont compile. even without change, please help. im stumped - Galaxy S 4 Themes and Apps

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

Related

[Q] compile email.apk

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

[Q] Help with Miui Patchrom!

Hi!
I've been working on a Miui ROM for the Wildfire S. I am using MiCode Patchrom. I'm having some problems—can you help me?
Here's the log: (under Mac OS X Lion)
>>> Install framework resources for apktool...
install framework-miui-res.apk
/Users/Paul/patchrom/tools/apktool --quiet if /Users/Paul/patchrom/miui/system/framework/framework-miui-res.apk
unzip >/dev/null CM9_modpunk.zip "system/framework/*.apk" -d out
install out/system/framework//framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
/Users/Paul/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/Users/Paul/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
(skipping hidden file '/Users/Paul/patchrom/marvel/out/framework-res/res/.DS_Store')
invalid resource directory name: /Users/Paul/patchrom/marvel/out/framework-res/res/drawable-xmdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/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, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/framework-res.apk] Error 1
So, what gives? I've tried changing the PATH, updating ApkTool, etc…, and most of the questions about this on forums aren't very helpful.
Thanks!
Also—I'm building Miui v4

Need Help Changing Home Screen Grid On HTC Blinkfeed Launcher

I need some help changing the home screen grid size of the Blinkfeed launcher ported for AOSP based ROM's. I have created a seperate thread for the HTC One S here. The original thread is here.
The grid size in the launcher is currently 4 x 4 but it is too spaced out vertically (see attached pic). So what I want to do is change the prism.apk to reduce the vertical spacing for 4 x 4 and create a separate zip with a 4 x 5 grid size.
I understand the files that need changing are integers.xml and dimens.xml in prism.apk
The problem I am having is that I am unable to compile the prism.apk. I have tried using APKTool and Virtuous 10 Studio and get the same following error:
C:\Android\APK Tool\prismblack\res\values\styles.xml:2868: error: Error: No reso
urce found that matches the given name: attr 'android:searchViewEditQuery'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\
APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:
\Android\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidMani
fest.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, 19, --target-sdk-version, 19, -F, C:
\Users\Ross\AppData\Local\Temp\APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\
apktool\framework\1.apk, -S, C:\Android\APK Tool\prismblack\res, -M, C:\Android\
APK Tool\prismblack\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, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\AP
KTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:\A
ndroid\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
I get this error without even changing any of the values, just decompiling, then compiling the prism.apk again. I have tried updating the APKTool version, updating the aapt.exe file, reinstalling Android SDK. The launcher only works on android 4.4 so I've updated the SDK to the newest version, still get the same errors.
Does anyone have any ideas how I can get this to compile or can anyone try to compile this on their system to see if its the file itself?
Also, does anyone have the values that I need to change the dimens.xml file to, so it fit's correctly on the One S? Otherwise its trial and error.
@Flashalot @rc420head @grorg - All help would be greatly appreciated.
Blinkfeed Launcher
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvZ2NaV2w4Z2ZQSUE/edit?usp=sharing
Prismblack.apk
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvSkM2VlpCampWb2c/edit?usp=sharing
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Flashalot said:
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Click to expand...
Click to collapse
Legend. That was it, added the framework and it compiled correctly. :good:
The app drawer grid size I'm not bothered about, its more the homescreen. The guides I have looked at don't mention editing smali files so I'll try with just integers.xml and dimens.xml and see what happens.
One quick question, do you know if the values I need to change in dimens.xml will be the same with all devices with hdpi resolution or will they be specific to the ville?
Edit: Tried all the guides/tutorials, nothing changes, must have to change the smali files as well.

[Q] i can't recompile framework-res

i can decompile and recompile systemui.apk
i can decompile framework-res.apk but i can't recompile framework-res
this log :
D:\android\APKTool\APKTool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\android\APKTool\APKTool\framework-res\res/dr
awable-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\user\AppData\Local\Temp\
APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\fra
mework-res\res, -M, D:\android\APKTool\APKTool\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\user\AppData\Local\Temp\APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S,
D:\android\APKTool\APKTool\framework-res\res, -M, D:\android\APKTool\APKTool\fr
amework-res\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\user\AppData\Local\Temp\AP
KTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\frame
work-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
i think i wrong edit my framework-res.apk but i try decompile and no edit ,its same cannot recompile framework-res
sorry to my english
friend try this
hi friend i think there is ssomething error in the apktool
i have posted a link below
:cyclops: http://forum.xda-developers.com/showpost.php?p=43353411&postcount=54:cyclops:
download that version
unzip that file to a specific folder ther you open comand prompt by shift+right click
in that first type
step-1
apktool if framework-res.apk (here xxxxxx.apk is your desired apk file)
step-2(decompile)
apktool d xxxxxxx.apk
step-3(recompile)
apktool b -f -d xxxxxxx
you find the recompiled apk in xxxxxx/dist folder open it with winrar or 7zip .now open original apk file with 7zip or winrar and drag and drop
META-INF and resource files there give the compression level as (store) and sign it(important)
step-4(sign)
java -jar signapk.jar testkey.x509.pem testkey.pk8 xxxxxxx.apk xxxxxxx_signed.apk
step-5(zipalign)
zipalign -fv 4 xxxxxxxx.apk xxxxxxxx-new.apk
to zip align you must install android sdk software in that go to tools/ there you search for (draw9patch.bat) and (zipalign.exe)
copy that two files and paste in C:\windows\paste it
hit thanks if i helped

[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