[Android Q&A, Help & Troubleshooting] gandolf007:
hi everyone

I want to decompile the Settings.apk of the Lenovo A3300-GV with 4.4.2 Android version

My Steps :

1. i install the framework-res.apk

2. i decompile the Settings.apk

after Recompile comes the Error: (without any change)

C:\Users\Afshinpc\Desktop\apktool>apktool b settings
I: Using Apktool 2.0.0-RC2 on settings
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
warning: string 'AGPS_CAUSE_BAD_PUSH_CONTENT' has no default translation.
warning: string 'AGPS_CAUSE_NETWORK_CREATE_FAIL' has no default translation.
warning: string 'AGPS_CAUSE_NETWORK_DISCONN' has no default translation.
warning: string 'AGPS_CAUSE_NOT_SUPPORTED' has no default translation.
warning: string 'AGPS_CAUSE_NO_POSITION' has no default translation.
warning: string 'AGPS_CAUSE_NO_RESOURCE' has no default translation.
warning: string 'AGPS_CAUSE_REMOTE_ABORT' has no default translation.
warning: string 'AGPS_CAUSE_REMOTE_MSG_ERROR' has no default translation.
warning: string 'AGPS_CAUSE_REQ_NOT_ACCEPTED' has no default translation.
warning: string 'AGPS_CAUSE_TIMER_EXPIRY' has no default translation.
warning: string 'AGPS_CAUSE_TLS_AUTH_FAIL' has no default translation.
warning: string 'AGPS_CAUSE_USER_AGREE' has no default translation.
warning: string 'AGPS_CAUSE_USER_DENY' has no default translation.
warning: string 'AGPS_EM_POS_FIXED' has no default translation.
warning: string 'AGPS_EM_RECV_SI_REQ' has no default translation.
warning: string 'AgpsHelp_Category' has no default translation.
warning: string 'EM_NotifyDialog_title' has no default translation.
warning: string 'MobileNetwork_Category' has no default translation.
warning: string 'MobileNetwork_DataConn_off' has no default translation.
warning: string 'MobileNetwork_SIM_Active' has no default translation.
warning: string 'MobileNetwork_off_Summary' has no default translation.
warning: string 'MobileNetwork_on_Summary' has no default translation.
warning: string 'Network_Initiate' has no default translation.
warning: string 'Network_Initiate_Summary_off' has no default translation.
warning: string 'Network_Initiate_Summary_on' has no default translation.
warning: string 'Network_Local_and_Roaming_Summary' has no default translation.
warning: string 'Network_Only_Local_Summary' has no default translation.
warning: string 'Network_Roaming_dialog_content' has no default translation.
warning: string 'Network_Roaming_dialog_title' has no default translation.
warning: string 'Network_Used' has no default translation.
warning: string 'USER_RESPONSE_TIMEOUT' has no default translation.
warning: string 'WiFiNetwork_on_title' has no default translation.
warning: string 'about_agps_message' has no default translation.
warning: string 'about_agps_title' has no default translation.
warning: string 'agps_disable_on_reboot' has no default translation.
warning: string 'agps_disable_on_reboot_summary' has no default translation.
warning: string 'agps_enable_confirm' has no default translation.
warning: string 'agps_enable_confirm_allow' has no default translation.
warning: string 'agps_enable_confirm_deny' has no default translation.
warning: string 'agps_enable_confirm_title' has no default translation.
warning: string 'agps_profile_SLP_address_editbox_title' has no default translat
ion.
warning: string 'agps_profile_select' has no default translation.
warning: string 'agps_settings_enable' has no default translation.
warning: string 'agps_settings_enable_off' has no default translation.
warning: string 'agps_settings_enable_on' has no default translation.
warning: string 'agps_settings_eng_enable' has no default translation.
warning: string 'agps_settings_eng_summary' has no default translation.
warning: string 'agps_settings_title' has no default translation.
warning: string 'agps_str_error' has no default translation.
warning: string 'all_settings_title' has no default translation.
warning: string 'audio_profile_bes_loudness_summary' has no default translation.

warning: string 'audio_profile_bes_loudness_title' has no default translation.
warning: string 'cell_broadcast_settings_summary' has no default translation.
warning: string 'close' has no default translation.
warning: string 'common_settings_title' has no default translation.
warning: string 'confirm_title' has no default translation.
warning: string 'dtmf_tone_enable_title_summery' has no default translation.
warning: string 'epo_about_message' has no default translation.
warning: string 'epo_about_title' has no default translation.
warning: string 'epo_auto_download_summary' has no default translation.
warning: string 'epo_auto_download_title' has no default translation.
warning: string 'epo_cancel_download' has no default translation.
warning: string 'epo_download' has no default translation.
warning: string 'epo_download_time_summary' has no default translation.
warning: string 'epo_download_time_title' has no default translation.
warning: string 'epo_enable_confirm_allow' has no default translation.
warning: string 'epo_enable_confirm_deny' has no default translation.
warning: string 'epo_enable_confirm_message' has no default translation.
warning: string 'epo_enable_confirm_title' has no default translation.
warning: string 'epo_enable_summary' has no default translation.
warning: string 'epo_enable_title' has no default translation.
warning: string 'epo_entrance_summary' has no default translation.
warning: string 'epo_entrance_title' has no default translation.
warning: string 'epo_err_update_failed' has no default translation.
warning: string 'epo_error_dialog_title' has no default translation.
warning: string 'epo_error_no_activite_network' has no default translation.
warning: string 'epo_expire_time_summary' has no default translation.
warning: string 'epo_expire_time_title' has no default translation.
warning: string 'epo_info_title' has no default translation.
warning: string 'epo_ok_btn' has no default translation.
warning: string 'epo_start_time_summary' has no default translation.
warning: string 'epo_start_time_title' has no default translation.
warning: string 'epo_status_starting' has no default translation.
warning: string 'epo_status_stopping' has no default translation.
warning: string 'epo_warning_dialog_message' has no default translation.
warning: string 'epo_warning_dialog_title' has no default translation.
warning: string 'eth_conf_perf_title' has no default translation.
warning: string 'experimental_webview' has no default translation.
warning: string 'experimental_webview_summary' has no default translation.
warning: string 'haptic_feedback_enable_title_summery' has no default translatio
n.
warning: string 'hq_audio_profile_settings' has no default translation.
warning: string 'hq_customize_profile_settings' has no default translation.
warning: string 'lenovo_legal_info' has no default translation.
warning: string 'lock_sounds_enable_title_summery' has no default translation.
warning: string 'next_not_remind' has no default translation.
warning: string 'nfc_payment_ask' has no default translation.
warning: string 'open' has no default translation.
warning: string 'open_data_confirm_title' has no default translation.
warning: string 'open_data_conn_confirm_msg' has no default translation.
warning: string 'openairplane' has no default translation.
warning: string 'port_title' has no default translation.
warning: string 'print_services_title' has no default translation.
warning: string 'sound_effects_enable_title_summery' has no default translation.

warning: string 'summary_font_state_default' has no default translation.
warning: string 'title_font_style' has no default translation.
warning: string 'tls_summary_off' has no default translation.
warning: string 'tls_summary_on' has no default translation.
warning: string 'turn_wifi_to_wlan' has no default translation.
warning: string 'wifi_display_available_devices' has no default translation.
warning: string 'wifi_display_disconnect_text' has no default translation.
warning: string 'wifi_display_disconnect_title' has no default translation.
warning: string 'wifi_display_paired_devices' has no default translation.
warning: string 'wifi_display_search_for_devices' has no default translation.
warning: string 'wifi_display_searching_for_devices' has no default translation.

warning: string 'wifi_display_settings_empty_list_wifi_display_disabled' has no
default translation.
warning: string 'wifi_display_settings_empty_list_wifi_display_off'Exception in
thread "main" has no default translation.
warning: string 'wifi_display_status_available' has no default translation.
warning: string 'wifi_display_summary_disabled' has no default translation.
warning: string 'wifi_display_summary_off' has no default translation.
warning: string 'wifi_display_summary_on' has no default translation.
warning: string 'wimax_settings_summary' has no default translation.
C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\preference_header_switch_i
tem.xml:11: error: Error: No resource found that matches the given name (at 'sty
le' with value '@com.mediatek:style/ImageSwitch').

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\preference_nfc.xml:11: err
or: Error: No resource found that matches the given name (at 'style' with value
'@com.mediatek:style/ImageSwitch').

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\preference_sim_info.xml:13
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@com.mediatek:style/ImageSwitch').

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\preference_sim_info_enable
r.xml:15: error: Error: No resource found that matches the given name (at 'style
' with value '@com.mediatek:style/ImageSwitch').

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\sim_widget_view.xml:5: err
or: Error: No resource found that matches the given name (at 'style' with value
'@com.mediatek:style/ImageSwitch').

C:\Users\Afshinpc\Desktop\apktool\settings\res\layout\wifi_switch_for_oobe.xml:7
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@com.mediatek:style/ImageSwitch').

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec command: [C:\Users\Afshinpc\AppData\Local\Temp\brut_
util_Jar_5016118610004880897.tmp, p, --forced-package-id, 127, --min-sdk-version
, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2, -F, C
:\Users\Afshinpc\AppData\Local\Temp\APKTOOL5964521346204536231.tmp, -0, arsc, -I
, C:\Users\Afshinpc\apktool\framework\1.apk, -S, C:\Users\Afshinpc\Desktop\apkto
ol\settings\res, -M, C:\Users\Afshinpc\Desktop\apktool\settings\AndroidManifest.
xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Afshinpc\AppData\Local\Temp\brut_util_Jar_5016118610004
880897.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-ver
sion, 19, --version-code, 19, --version-name, 4.4.2, -F, C:\Users\Afshinpc\AppDa
ta\Local\Temp\APKTOOL5964521346204536231.tmp, -0, arsc, -I, C:\Users\Afshinpc\ap
ktool\framework\1.apk, -S, C:\Users\Afshinpc\Desktop\apktool\settings\res, -M, C
:\Users\Afshinpc\Desktop\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Afshinpc
\AppData\Local\Temp\brut_util_Jar_5016118610004880897.tmp, p, --forced-package-i
d, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --v
ersion-name, 4.4.2, -F, C:\Users\Afshinpc\AppData\Local\Temp\APKTOOL596452134620
4536231.tmp, -0, arsc, -I, C:\Users\Afshinpc\apktool\framework\1.apk, -S, C:\Use
rs\Afshinpc\Desktop\apktool\settings\res, -M, C:\Users\Afshinpc\Desktop\apktool\
settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more

I use the latest ApkTool and another tools etc apkmultitool , Advanced ApkTool . but my problem not solved

the lenovo framework is installed . another lenovo apps compiled and work fine. Only this is making trouble - I`m using apktool a lot and compiled apk`s, but this problem is new - hope someone has a solution.

tanx