Apktool recompiling error

Search This thread

Mikyno

Senior Member
Sep 1, 2012
1,406
1,611
Roma
Hi all guys. Hope someone can help me, cause I really don't know what to do. I read around but I didn't find anything that could solve my problem.
I want to modify SecSettings.apk from N8000 to edit a smali file. I follow these steps :

-Install framework-res.apk
-Install twframework-res.apk
-Decompile SecSettings.apk
-Modify .smali file
-Recompile. Here I get errors.

This is the log :


D:\DEVELOPING\one_click_signer\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\1.apk

D:\DEVELOPING\one_click_signer\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\2.apk

D:\DEVELOPING\one_click_signer\apktool>apktool d SecSettings.apk
I: Using Apktool 2.0.0-Beta7 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\2.apk
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\2.apk

I: Decoding values */* XMLs...
I: Loading resource table...
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\1.apk

W: Skipping "android" package group
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...

D:\DEVELOPING\one_click_signer\apktool>apktool b -f -d SecSettings
I: Using Apktool 2.0.0-Beta7 on SecSettings
I: Smaling...
I: Building resources...
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
aapt: warning: string 'accessibility_screen_magnification_summary' has no defaul
t translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found:
az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'answering_end_call_title_prev' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az bg ca c
s da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it
ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz
vi zh_CN zh_TW
aapt: warning: string 'category_printers' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'downloadable_dialog_popup_text_wifi' has no default trans
lation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az b
g ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in
is it ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk
ur uz vi zh_CN zh_TW
aapt: warning: string 'experimental_webview' has no default translation in D:\DE
VELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_AM ka_G
E
aapt: warning: string 'experimental_webview_summary' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'location_category_app_settings' has no default translatio
n in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'nfc_payment_ask' has no default translation in D:\DEVELOP
ING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'print_add_printer' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el e
n_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko
lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh
_TW
aapt: warning: string 'screen_rate' has no default translation in D:\DEVELOPING\
one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el en_PH e
n_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko lt lv
mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh_TW
aapt: warning: string 'screen_size_downscale_1' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_2' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_3' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'wifi_display_disconnect_text' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'wifi_display_disconnect_title' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wifi_display_paired_devices' has no default translation i
n D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy_
AM ka_GE
aapt: warning: string 'wifi_display_search_for_devices' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE
hy_AM ka_GE
aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
ation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et
_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_dis abled' h
as no default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \
res; found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off ' has no
default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res;
found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_status_available' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wimax_settings_summary' has no default translation in D:\
DEVELOPING\one_click_signer\apktool\SecSettings\re s; found: az_AZ
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea
\AppData\Local\Temp\brut_util_Jar_1856909593108704 239.tmp, p, --debug-mode, --fo
rced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-c
ode, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\T
emp\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framew
ork\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_cl
ick_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\S
ecSettings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:434)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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\Andrea\AppData\Local\Temp\brut_util_Jar_1 85690959310870
4239.tmp, p, --debug-mode, --forced-package-id, 1, --min-sdk-version, 19, --targ
et-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-N8000XXUDND5, -F,
C:\Users\Andrea\AppData\Local\Temp\APKTOOL79711057 94680974515.tmp, -0, arsc, -I,
C:\Users\Andrea\apktool\framework\1.apk, -I, C:\Users\Andrea\apktool\framework\
2.apk, -S, D:\DEVELOPING\one_click_signer\apktool\SecSettings \res, -M, D:\DEVELO
PING\one_click_signer\apktool\SecSettings\AndroidM anifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\A
ppData\Local\Temp\brut_util_Jar_185690959310870423 9.tmp, p, --debug-mode, --forc
ed-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-cod
e, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\Tem
p\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framewor
k\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_clic
k_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\Sec
Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:475)
... 6 more

D:\DEVELOPING\one_click_signer\apktool>

Can someone help me please?

Sorry if I asked in the wrong section
 

Ticklefish

Recognized Themer
Oct 27, 2011
6,773
8,627
Hampshire, UK
Hi all guys. Hope someone can help me, cause I really don't know what to do. I read around but I didn't find anything that could solve my problem.
I want to modify SecSettings.apk from N8000 to edit a smali file. I follow these steps :

-Install framework-res.apk
-Install twframework-res.apk
-Decompile SecSettings.apk
-Modify .smali file
-Recompile. Here I get errors.

This is the log :


D:\DEVELOPING\one_click_signer\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\1.apk

D:\DEVELOPING\one_click_signer\apktool>apktool if twframework-res.apk
I: Framework installed to: C:\Users\Andrea\apktool\framework\2.apk

D:\DEVELOPING\one_click_signer\apktool>apktool d SecSettings.apk
I: Using Apktool 2.0.0-Beta7 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Andrea\apktool\framework\2.apk
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\2.apk

I: Decoding values */* XMLs...
I: Loading resource table...
Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\1.apk

W: Skipping "android" package group
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...

D:\DEVELOPING\one_click_signer\apktool>apktool b -f -d SecSettings
I: Using Apktool 2.0.0-Beta7 on SecSettings
I: Smaling...
I: Building resources...
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
r: Error: No resource found that matches the given name (at 'resource' with valu
e '@drawable/assistant_menu_icon_messages_search').
aapt: warning: string 'accessibility_screen_magnification_summary' has no defaul
t translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found:
az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'answering_end_call_title_prev' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az bg ca c
s da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it
ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz
vi zh_CN zh_TW
aapt: warning: string 'category_printers' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'downloadable_dialog_popup_text_wifi' has no default trans
lation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az b
g ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in
is it ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk
ur uz vi zh_CN zh_TW
aapt: warning: string 'experimental_webview' has no default translation in D:\DE
VELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_AM ka_G
E
aapt: warning: string 'experimental_webview_summary' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'location_category_app_settings' has no default translatio
n in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
aapt: warning: string 'nfc_payment_ask' has no default translation in D:\DEVELOP
ING\one_click_signer\apktool\SecSettings\res; found: az_AZ
aapt: warning: string 'print_add_printer' has no default translation in D:\DEVEL
OPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el e
n_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko
lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh
_TW
aapt: warning: string 'screen_rate' has no default translation in D:\DEVELOPING\
one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el en_PH e
n_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko lt lv
mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh_TW
aapt: warning: string 'screen_size_downscale_1' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_2' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'screen_size_downscale_3' has no default translation in D:
\DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
_CN zh_TW
aapt: warning: string 'wifi_display_disconnect_text' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
_AM ka_GE
aapt: warning: string 'wifi_display_disconnect_title' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wifi_display_paired_devices' has no default translation i
n D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy_
AM ka_GE
aapt: warning: string 'wifi_display_search_for_devices' has no default translati
on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE
hy_AM ka_GE
aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
ation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et
_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_dis abled' h
as no default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \
res; found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off ' has no
default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res;
found: az_AZ et_EE hy_AM ka_GE
aapt: warning: string 'wifi_display_status_available' has no default translation
in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
y_AM ka_GE
aapt: warning: string 'wimax_settings_summary' has no default translation in D:\
DEVELOPING\one_click_signer\apktool\SecSettings\re s; found: az_AZ
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea
\AppData\Local\Temp\brut_util_Jar_1856909593108704 239.tmp, p, --debug-mode, --fo
rced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-c
ode, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\T
emp\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framew
ork\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_cl
ick_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\S
ecSettings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:434)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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\Andrea\AppData\Local\Temp\brut_util_Jar_1 85690959310870
4239.tmp, p, --debug-mode, --forced-package-id, 1, --min-sdk-version, 19, --targ
et-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-N8000XXUDND5, -F,
C:\Users\Andrea\AppData\Local\Temp\APKTOOL79711057 94680974515.tmp, -0, arsc, -I,
C:\Users\Andrea\apktool\framework\1.apk, -I, C:\Users\Andrea\apktool\framework\
2.apk, -S, D:\DEVELOPING\one_click_signer\apktool\SecSettings \res, -M, D:\DEVELO
PING\one_click_signer\apktool\SecSettings\AndroidM anifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\A
ppData\Local\Temp\brut_util_Jar_185690959310870423 9.tmp, p, --debug-mode, --forc
ed-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-cod
e, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\Tem
p\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framewor
k\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_clic
k_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\Sec
Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:475)
... 6 more

D:\DEVELOPING\one_click_signer\apktool>


Can someone help me please?

Sorry if I asked in the wrong section

Here's your actual error:

Code:
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: error: Error: No resource found that matches the given name (at 'resource' with value '@drawable/assistant_menu_icon_messages_search').

Everything else is just warnings. They're worth paying attention to but they won't stop your apk from recompiling.

Have a look at the third line of assistant.xml. There's a call for a drawable resource there which doesn't actually exist...
 
  • Like
Reactions: Mikyno

Mikyno

Senior Member
Sep 1, 2012
1,406
1,611
Roma
Here's your actual error:

Code:
D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: error: Error: No resource found that matches the given name (at 'resource' with value '@drawable/assistant_menu_icon_messages_search').

Everything else is just warnings. They're worth paying attention to but they won't stop your apk from recompiling.

Have a look at the third line of assistant.xml. There's a call for a drawable resource there which doesn't actually exist...
Thanks for your suggestion man! I solved this error by adding a file with the same name and it works fine :D . But I didn't managed to unlock AirCommand feature built in SecSettings.apk of N8000. I know that maybe you can't help me but asking doesn't cost anything :D I have to modify a smali file to make the apk show a setting to enable AirCommand (Samsung feature). I am pretty sure it is only disabled so I have to find where I have to modify the strings. A dev told me to delete removepreference feature but that didn't work or I didn't do it in the right way. Can you give me some advices ?
 
  • Like
Reactions: Ticklefish

Ticklefish

Recognized Themer
Oct 27, 2011
6,773
8,627
Hampshire, UK
Thanks for your suggestion man! I solved this error by adding a file with the same name and it works fine :D . But I didn't managed to unlock AirCommand feature built in SecSettings.apk of N8000. I know that maybe you can't help me but asking doesn't cost anything :D I have to modify a smali file to make the apk show a setting to enable AirCommand (Samsung feature). I am pretty sure it is only disabled so I have to find where I have to modify the strings. A dev told me to delete removepreference feature but that didn't work or I didn't do it in the right way. Can you give me some advices ?

I would...but I can't, no. I don't know much about smali and I don't have a modern Samsung device to experiment with. Sorry. :(

Sent from my C6603 using Tapatalk
 
  • Like
Reactions: Mikyno

Mikyno

Senior Member
Sep 1, 2012
1,406
1,611
Roma
I would...but I can't, no. I don't know much about smali and I don't have a modern Samsung device to experiment with. Sorry. :(

Sent from my C6603 using Tapatalk

Thanks man. I managed to do what I want. Now i am very near to complete the work :D

Inviato dal mio GT-N7100 utilizzando Tapatalk
 

dvash01

Member
Oct 1, 2017
10
1
Can you explain

Thanks for your suggestion man! I solved this error by adding a file with the same name and it works fine :D . But I didn't managed to unlock AirCommand feature built in SecSettings.apk of N8000. I know that maybe you can't help me but asking doesn't cost anything :D I have to modify a smali file to make the apk show a setting to enable AirCommand (Samsung feature). I am pretty sure it is only disabled so I have to find where I have to modify the strings. A dev told me to delete removepreference feature but that didn't work or I didn't do it in the right way. Can you give me some advices ?

I have the same problem
Can you explain what you did?
What file did you add with what name
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi all guys. Hope someone can help me, cause I really don't know what to do. I read around but I didn't find anything that could solve my problem.
    I want to modify SecSettings.apk from N8000 to edit a smali file. I follow these steps :

    -Install framework-res.apk
    -Install twframework-res.apk
    -Decompile SecSettings.apk
    -Modify .smali file
    -Recompile. Here I get errors.

    This is the log :


    D:\DEVELOPING\one_click_signer\apktool>apktool if framework-res.apk
    I: Framework installed to: C:\Users\Andrea\apktool\framework\1.apk

    D:\DEVELOPING\one_click_signer\apktool>apktool if twframework-res.apk
    I: Framework installed to: C:\Users\Andrea\apktool\framework\2.apk

    D:\DEVELOPING\one_click_signer\apktool>apktool d SecSettings.apk
    I: Using Apktool 2.0.0-Beta7 on SecSettings.apk
    I: Loading resource table...
    W: Skipping "android" package group
    I: Decoding AndroidManifest.xml with resources...
    I: Loading resource table from file: C:\Users\Andrea\apktool\framework\1.apk
    I: Regular manifest package...
    I: Decoding file-resources...
    I: Loading resource table from file: C:\Users\Andrea\apktool\framework\2.apk
    Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\2.apk

    I: Decoding values */* XMLs...
    I: Loading resource table...
    Cleaning up unclosed ZipFile for archive C:\Users\Andrea\apktool\framework\1.apk

    W: Skipping "android" package group
    I: Baksmaling...
    I: Copying assets and libs...
    I: Copying unknown files/dir...
    I: Copying original files...

    D:\DEVELOPING\one_click_signer\apktool>apktool b -f -d SecSettings
    I: Using Apktool 2.0.0-Beta7 on SecSettings
    I: Smaling...
    I: Building resources...
    D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: erro
    r: Error: No resource found that matches the given name (at 'resource' with valu
    e '@drawable/assistant_menu_icon_messages_search').
    aapt: warning: string 'accessibility_screen_magnification_summary' has no defaul
    t translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found:
    az_AZ et_EE hy_AM ka_GE
    aapt: warning: string 'answering_end_call_title_prev' has no default translation
    in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az bg ca c
    s da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it
    ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz
    vi zh_CN zh_TW
    aapt: warning: string 'category_printers' has no default translation in D:\DEVEL
    OPING\one_click_signer\apktool\SecSettings\res; found: az_AZ
    aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
    on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
    aapt: warning: string 'downloadable_dialog_popup_text_wifi' has no default trans
    lation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: ar az b
    g ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in
    is it ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk
    ur uz vi zh_CN zh_TW
    aapt: warning: string 'experimental_webview' has no default translation in D:\DE
    VELOPING\one_click_signer\apktool\SecSettings\res; found: az_AZ et_EE hy_AM ka_G
    E
    aapt: warning: string 'experimental_webview_summary' has no default translation
    in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
    _AM ka_GE
    aapt: warning: string 'location_category_app_settings' has no default translatio
    n in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ
    aapt: warning: string 'nfc_payment_ask' has no default translation in D:\DEVELOP
    ING\one_click_signer\apktool\SecSettings\res; found: az_AZ
    aapt: warning: string 'print_add_printer' has no default translation in D:\DEVEL
    OPING\one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el e
    n_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko
    lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh
    _TW
    aapt: warning: string 'screen_rate' has no default translation in D:\DEVELOPING\
    one_click_signer\apktool\SecSettings\res; found: ar az bg ca cs da de el en_PH e
    n_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka kk ko lt lv
    mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh_CN zh_TW
    aapt: warning: string 'screen_size_downscale_1' has no default translation in D:
    \DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
    e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
    kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
    _CN zh_TW
    aapt: warning: string 'screen_size_downscale_2' has no default translation in D:
    \DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
    e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
    kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
    _CN zh_TW
    aapt: warning: string 'screen_size_downscale_3' has no default translation in D:
    \DEVELOPING\one_click_signer\apktool\SecSettings\r es; found: ar az bg ca cs da d
    e el en_PH en_US es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it ja ka
    kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tl tr uk ur uz vi zh
    _CN zh_TW
    aapt: warning: string 'wifi_display_disconnect_text' has no default translation
    in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy
    _AM ka_GE
    aapt: warning: string 'wifi_display_disconnect_title' has no default translation
    in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
    y_AM ka_GE
    aapt: warning: string 'wifi_display_paired_devices' has no default translation i
    n D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE hy_
    AM ka_GE
    aapt: warning: string 'wifi_display_search_for_devices' has no default translati
    on in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE
    hy_AM ka_GE
    aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
    ation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et
    _EE hy_AM ka_GE
    aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_dis abled' h
    as no default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \
    res; found: az_AZ et_EE hy_AM ka_GE
    aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off ' has no
    default translation in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res;
    found: az_AZ et_EE hy_AM ka_GE
    aapt: warning: string 'wifi_display_status_available' has no default translation
    in D:\DEVELOPING\one_click_signer\apktool\SecSettings \res; found: az_AZ et_EE h
    y_AM ka_GE
    aapt: warning: string 'wimax_settings_summary' has no default translation in D:\
    DEVELOPING\one_click_signer\apktool\SecSettings\re s; found: az_AZ
    Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
    ibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea
    \AppData\Local\Temp\brut_util_Jar_1856909593108704 239.tmp, p, --debug-mode, --fo
    rced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-c
    ode, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\T
    emp\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framew
    ork\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_cl
    ick_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\S
    ecSettings\AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib .java:434)
    at brut.androlib.Androlib.buildResources(Androlib.jav a: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\Andrea\AppData\Local\Temp\brut_util_Jar_1 85690959310870
    4239.tmp, p, --debug-mode, --forced-package-id, 1, --min-sdk-version, 19, --targ
    et-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-N8000XXUDND5, -F,
    C:\Users\Andrea\AppData\Local\Temp\APKTOOL79711057 94680974515.tmp, -0, arsc, -I,
    C:\Users\Andrea\apktool\framework\1.apk, -I, C:\Users\Andrea\apktool\framework\
    2.apk, -S, D:\DEVELOPING\one_click_signer\apktool\SecSettings \res, -M, D:\DEVELO
    PING\one_click_signer\apktool\SecSettings\AndroidM anifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
    a:481)
    at brut.androlib.Androlib.buildResourcesFull(Androlib .java:415)
    ... 5 more
    Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\A
    ppData\Local\Temp\brut_util_Jar_185690959310870423 9.tmp, p, --debug-mode, --forc
    ed-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-cod
    e, 19, --version-name, 4.4.2-N8000XXUDND5, -F, C:\Users\Andrea\AppData\Local\Tem
    p\APKTOOL7971105794680974515.tmp, -0, arsc, -I, C:\Users\Andrea\apktool\framewor
    k\1.apk, -I, C:\Users\Andrea\apktool\framework\2.apk, -S, D:\DEVELOPING\one_clic
    k_signer\apktool\SecSettings\res, -M, D:\DEVELOPING\one_click_signer\apktool\Sec
    Settings\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
    a:475)
    ... 6 more

    D:\DEVELOPING\one_click_signer\apktool>


    Can someone help me please?

    Sorry if I asked in the wrong section

    Here's your actual error:

    Code:
    D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: error: Error: No resource found that matches the given name (at 'resource' with value '@drawable/assistant_menu_icon_messages_search').

    Everything else is just warnings. They're worth paying attention to but they won't stop your apk from recompiling.

    Have a look at the third line of assistant.xml. There's a call for a drawable resource there which doesn't actually exist...
    1
    Here's your actual error:

    Code:
    D:\DEVELOPING\one_click_signer\apktool\SecSettings \res\xml\assistant.xml:3: error: Error: No resource found that matches the given name (at 'resource' with value '@drawable/assistant_menu_icon_messages_search').

    Everything else is just warnings. They're worth paying attention to but they won't stop your apk from recompiling.

    Have a look at the third line of assistant.xml. There's a call for a drawable resource there which doesn't actually exist...
    Thanks for your suggestion man! I solved this error by adding a file with the same name and it works fine :D . But I didn't managed to unlock AirCommand feature built in SecSettings.apk of N8000. I know that maybe you can't help me but asking doesn't cost anything :D I have to modify a smali file to make the apk show a setting to enable AirCommand (Samsung feature). I am pretty sure it is only disabled so I have to find where I have to modify the strings. A dev told me to delete removepreference feature but that didn't work or I didn't do it in the right way. Can you give me some advices ?
    1
    Thanks for your suggestion man! I solved this error by adding a file with the same name and it works fine :D . But I didn't managed to unlock AirCommand feature built in SecSettings.apk of N8000. I know that maybe you can't help me but asking doesn't cost anything :D I have to modify a smali file to make the apk show a setting to enable AirCommand (Samsung feature). I am pretty sure it is only disabled so I have to find where I have to modify the strings. A dev told me to delete removepreference feature but that didn't work or I didn't do it in the right way. Can you give me some advices ?

    I would...but I can't, no. I don't know much about smali and I don't have a modern Samsung device to experiment with. Sorry. :(

    Sent from my C6603 using Tapatalk