[Android Software Development] anukilimanoor:
I cant able to compile framework-res.apk from new samsung 4.2.2 leak for s3.

Tried to compile without even a single modification but still getting the error.

D:\WORK\ME7>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'default_audio_route_name_hdmi' has no default translation
in D:\WORK\ME7\framework-res\res; found: en_GB es
aapt: warning: string 'default_permission_group' has no default translation in D
:\WORK\ME7\framework-res\res; found: en_GB es
aapt: warning: string 'perms_hide' has no default translation in D:\WORK\ME7\fra
mework-res\res; found: en_GB es
aapt: warning: string 'perms_show_all' has no default translation in D:\WORK\ME7
\framework-res\res; found: en_GB es
aapt: warning: string 'ss_clear_default_hint_msg' has no default translation in
D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_ES es_
US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko lo lt
lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr uk u
r uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_all' has no default translation
in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_ES
es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko l
o lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr
uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_applicationmanager' has no defa
ult translation in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de
el en_PH es_ES es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja k
a kk km kn ko lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr
sv ta te th tr uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_more' has no default translatio
n in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_E
S es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko
lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr
uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_settings' has no default transl
ation in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH
es_ES es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn
ko lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te t
h tr uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'webkit_module' has no default translation in D:\WORK\ME7\
framework-res\res; found: de es_ES fr it pl ru
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_password_landscape.xml:22:
error: Error: No resource found that matches the given name (at 'layout' with va
lue [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_password_portrait.xml:22: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_tab_unlock.xml:23: error: E
rror: No resource found that matches the given name (at 'layout' with value '@la
yout/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:17: err
or: Error: No resource found that matches the given name (at 'layout' with value
[MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:23: err
or: Error: No resource found that matches the given name (at 'layout' with value
[MENTION=651413]layo[/MENTION]ut/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\Anu\AppData\Local\Temp\A
PKTOOL1840773331223232042.tmp, -x, -S, D:\WORK\ME7\framework-res\res, -M, D:\WOR
K\ME7\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
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\Anu\AppData\Local\Temp\APKTOOL1840773331223232042.tmp, -x, -S, D:\WORK\ME
7\framework-res\res, -M, D:\WORK\ME7\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 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\Anu\AppData\Local\Temp\APK
TOOL1840773331223232042.tmp, -x, -S, D:\WORK\ME7\framework-res\res, -M, D:\WORK\
ME7\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:347)
... 6 more

D:\WORK\ME7>apktool d framework-res.apk
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...

D:\WORK\ME7>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_password_landscape.xml:22:
error: Error: No resource found that matches the given name (at 'layout' with va
lue [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_password_portrait.xml:22: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_tab_unlock.xml:23: error: E
rror: No resource found that matches the given name (at 'layout' with value '@la
yout/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:17: err
or: Error: No resource found that matches the given name (at 'layout' with value
[MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e [MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
D:\WORK\ME7\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:23: err
or: Error: No resource found that matches the given name (at 'layout' with value
[MENTION=651413]layo[/MENTION]ut/keyguard_transport_control').
Exception in thread "main" aapt: warning: string 'default_audio_route_name_hdmi'
has no default translation in D:\WORK\ME7\framework-res\res; found: en_GB es
aapt: warning: string 'default_permission_group' has no default translation in D
:\WORK\ME7\framework-res\res; found: en_GB es
aapt: warning: string 'perms_hide' has no default translation in D:\WORK\ME7\fra
mework-res\res; found: en_GB es
aapt: warning: string 'perms_show_all' has no default translation in D:\WORK\ME7
\framework-res\res; found: en_GB es
aapt: warning: string 'ss_clear_default_hint_msg' has no default translation in
D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_ES es_
US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko lo lt
lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr uk u
r uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_all' has no default translation
in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_ES
es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko l
o lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr
uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_applicationmanager' has no defa
ult translation in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de
el en_PH es_ES es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja k
a kk km kn ko lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr
sv ta te th tr uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_more' has no default translatio
n in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH es_E
S es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn ko
lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te th tr
uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'ss_clear_default_hint_msg_settings' has no default transl
ation in D:\WORK\ME7\framework-res\res; found: ar az bg bn ca cs da de el en_PH
es_ES es_US et eu fa fi fr fr_CA ga gl gu hi hr hu hy in is it iw ja ka kk km kn
ko lo lt lv mk ml mr ms my nb nl pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta te t
h tr uk ur uz vi zh_CN zh_HK zh_SG zh_TW
aapt: warning: string 'webkit_module' has no default translation in D:\WORK\ME7\
framework-res\res; found: de es_ES fr it pl ru
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-s
dk-version, 17, -F, C:\Users\Anu\AppData\Local\Temp\APKTOOL125324194880181437.tm
p, -x, -S, D:\WORK\ME7\framework-res\res, -M, D:\WORK\ME7\framework-res\AndroidM
anifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
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\Anu\AppData\Local\Temp\APKTOOL125324194880181437.tmp, -x, -S, D:\WORK\ME7
\framework-res\res, -M, D:\WORK\ME7\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 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\Anu\AppData\Local\Temp\APK
TOOL125324194880181437.tmp, -x, -S, D:\WORK\ME7\framework-res\res, -M, D:\WORK\M
E7\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:347)
... 6 more

EDIT: Got solution

Edited all these files and added + before @ layout/keyguard_transport_control ie +@ layout/keyguard_transport_control

Now it is working...