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

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
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>
 
Last edited:

grgsiocl

Senior Member
Nov 9, 2009
2,891
4,546
0
Kurnool, Andhra Pradesh
@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!
 
Last edited:

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
@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!
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
 

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
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
 

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
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
 
Last edited: