error while recompiling miui5 3.6.7 phone.apk


Aug 30, 2012
23
3
13
#1
here is the error i got

aapt: warning: string 'exportContactScreen' has no default translation in E:\APK
Tool\Phone\res; found: tr
aapt: warning: string 'exportContacts' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr hu in it iw nl pl ru sk tr vi
aapt: warning: string 'fdn_failed' has no default translation in E:\APKTool\Phon
e\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'fdn_only_error' has no default translation in E:\APKTool\
Phone\res; found: el es
aapt: warning: string 'fdn_unavailable' has no default translation in E:\APKTool
\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'gsm_umts_network_preferences_dialogtitle' has no default
translation in E:\APKTool\Phone\res; found: el es vi
aapt: warning: string 'gsm_umts_network_preferences_title' has no default transl
ation in E:\APKTool\Phone\res; found: el es
aapt: warning: string 'gsm_umts_network_preferneces_summary' has no default tran
slation in E:\APKTool\Phone\res; found: el es
aapt: warning: string 'imei' has no default translation in E:\APKTool\Phone\res;
found: el es
aapt: warning: string 'incall_status_dialed_fc' has no default translation in E:
\APKTool\Phone\res; found: el es
aapt: warning: string 'label_nsdp' has no default translation in E:\APKTool\Phon
e\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'label_puk' has no default translation in E:\APKTool\Phone
\res; found: ar cs de en fr hu in it iw nl pl ru sk tr vi
aapt: warning: string 'label_subscription' has no default translation in E:\APKT
ool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'meid' has no default translation in E:\APKTool\Phone\res;
found: el es
aapt: warning: string 'missed_call_notify_five_times' has no default translation
in E:\APKTool\Phone\res; found: el nl pl
aapt: warning: string 'missed_call_notify_none' has no default translation in E:
\APKTool\Phone\res; found: pl
aapt: warning: string 'missed_call_notify_once' has no default translation in E:
\APKTool\Phone\res; found: el nl pl
aapt: warning: string 'missed_call_notify_ten_times' has no default translation
in E:\APKTool\Phone\res; found: el nl pl
aapt: warning: string 'missed_call_notify_thrice' has no default translation in
E:\APKTool\Phone\res; found: el nl pl
aapt: warning: string 'missed_call_notify_twice' has no default translation in E
:\APKTool\Phone\res; found: el nl pl
aapt: warning: string 'mobile_network_setting' has no default translation in E:\
APKTool\Phone\res; found: ar cs de en fr hu in it iw pl ru sk tr vi
aapt: warning: string 'network_manage_settings' has no default translation in E:
\APKTool\Phone\res; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'network_settings_sel_sub' has no default translation in E
:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'new_cards_available' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr in it iw ru sk tr vi
aapt: warning: string 'notification_ongoing_call_format' has no default translat
ion in E:\APKTool\Phone\res; found: el nl
aapt: warning: string 'ongoing' has no default translation in E:\APKTool\Phone\r
es; found: el es
aapt: warning: string 'onscreenBluetoothText' has no default translation in E:\A
PKTool\Phone\res; found: el es
aapt: warning: string 'onscreenHideDialpadText' has no default translation in E:
\APKTool\Phone\res; found: el es
aapt: warning: string 'onscreenSpeakerText' has no default translation in E:\APK
Tool\Phone\res; found: el es
aapt: warning: string 'onscreenUnholdText' has no default translation in E:\APKT
ool\Phone\res; found: el es
aapt: warning: string 'ota_back' has no default translation in E:\APKTool\Phone\
res; found: el es
aapt: warning: string 'ota_dialpad' has no default translation in E:\APKTool\Pho
ne\res; found: el es
aapt: warning: string 'ota_skip_activation_dialog_continue_label' has no default
translation in E:\APKTool\Phone\res; found: el es
aapt: warning: string 'ota_touch_activate_new' has no default translation in E:\
APKTool\Phone\res; found: el es
aapt: warning: string 'phone_numbers' has no default translation in E:\APKTool\P
hone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'pin2_attempts' has no default translation in E:\APKTool\P
hone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'pin2_unblocked' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'pinUnlocked' has no default translation in E:\APKTool\Pho
ne\res; found: el es
aapt: warning: string 'place_a_call1' has no default translation in E:\APKTool\P
hone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'place_a_call2' has no default translation in E:\APKTool\P
hone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'preferred_network_mode_cdma_evdo_gsm_wcdma_summary' has n
o default translation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl
pl pt_BR ru sk tr vi
aapt: warning: string 'preferred_network_mode_global_summary' has no default tra
nslation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl pl ru sk tr
vi
aapt: warning: string 'preferred_network_mode_lte_cdma_evdo_summary' has no defa
ult translation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl pl ru
sk tr vi
aapt: warning: string 'preferred_network_mode_lte_gsm_wcdma_summary' has no defa
ult translation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl pl ru
sk tr vi
aapt: warning: string 'preferred_network_mode_lte_summary' has no default transl
ation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'preferred_network_mode_lte_wcdma_summary' has no default
translation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl pl ru sk
tr vi
aapt: warning: string 'primary_account' has no default translation in E:\APKTool
\Phone\res; found: el es
aapt: warning: string 'primary_account_summary' has no default translation in E:
\APKTool\Phone\res; found: el es
aapt: warning: string 'primary_account_title' has no default translation in E:\A
PKTool\Phone\res; found: el es
aapt: warning: string 'proceed' has no default translation in E:\APKTool\Phone\r
es; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'prompt' has no default translation in E:\APKTool\Phone\re
s; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'prompt_user' has no default translation in E:\APKTool\Pho
ne\res; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'puk2_blocked' has no default translation in E:\APKTool\Ph
one\res; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'puk_unlock_failed' has no default translation in E:\APKTo
ol\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'puk_unlock_success' has no default translation in E:\APKT
ool\Phone\res; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'rc_unlock_success' has no default translation in E:\APKTo
ol\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'requesting_puk_unlock' has no default translation in E:\A
PKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'retry' has no default translation in E:\APKTool\Phone\res
; found: el es
aapt: warning: string 'rhrpd_unlock_success' has no default translation in E:\AP
KTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'rnw1_unlock_success' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'rnw2_unlock_success' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'rsp_unlock_success' has no default translation in E:\APKT
ool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'ruim_unlock_success' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'screen_on_proximity_sensor_summary' has no default transl
ation in E:\APKTool\Phone\res; found: ko
aapt: warning: string 'screen_on_proximity_sensor_title' has no default translat
ion in E:\APKTool\Phone\res; found: ko
aapt: warning: string 'sendSms' has no default translation in E:\APKTool\Phone\r
es; found: ar cs de en fr in it iw nl pl ru sk tr vi
aapt: warning: string 'send_keepalive_summary' has no default translation in E:\
APKTool\Phone\res; found: el es nl
aapt: warning: string 'set_sub_1' has no default translation in E:\APKTool\Phone
\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_2' has no default translation in E:\APKTool\Phone
\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_activate_failed' has no default translation in E:
\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_activate_not_supported' has no default translatio
n in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_activate_success' has no default translation in E
:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_deactivate_failed' has no default translation in
E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_deactivate_not_supported' has no default translat
ion in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_deactivate_success' has no default translation in
E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_failed' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_no_change' has no default translation in E:\APKTo
ol\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_sub_success' has no default translation in E:\APKTool
\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_subscription' has no default translation in E:\APKToo
l\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_subscription_error_atleast_one' has no default transl
ation in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'set_uicc_subscription_progress' has no default translatio
n in E:\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'sim_unlock_dismiss_text' has no default translation in E:
\APKTool\Phone\res; found: el es
aapt: warning: string 'sim_unlock_status_text' has no default translation in E:\
APKTool\Phone\res; found: el es
aapt: warning: string 'sim_unlock_unlock_text' has no default translation in E:\
APKTool\Phone\res; found: el es
aapt: warning: string 'sip_accounts_summary' has no default translation in E:\AP
KTool\Phone\res; found: el es
aapt: warning: string 'sip_call_options' has no default translation in E:\APKToo
l\Phone\res; found: el es
aapt: warning: string 'slide_to_answer' has no default translation in E:\APKTool
\Phone\res; found: el es
aapt: warning: string 'slide_to_answer_and_end_active' has no default translatio
n in E:\APKTool\Phone\res; found: el es
aapt: warning: string 'slide_to_answer_and_end_onhold' has no default translatio
n in E:\APKTool\Phone\res; found: el es
aapt: warning: string 'slide_to_answer_and_hold' has no default translation in E
:\APKTool\Phone\res; found: el es
aapt: warning: string 'slide_to_answer_hint' has no default translation in E:\AP
KTool\Phone\res; found: el es
aapt: warning: string 'slide_to_decline' has no default translation in E:\APKToo
l\Phone\res; found: el es
aapt: warning: string 'slide_to_decline_hint' has no default translation in E:\A
PKTool\Phone\res; found: el es
aapt: warning: string 'slide_to_silence' has no default translation in E:\APKToo
l\Phone\res; found: el es
aapt: warning: string 'stk_cc_ss_to_dial_error' has no default translation in E:
\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'stk_cc_ss_to_ss_error' has no default translation in E:\A
PKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'stk_cc_ss_to_ussd_error' has no default translation in E:
\APKTool\Phone\res; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'sub1LineNumber' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr in it iw nl sk tr vi
aapt: warning: string 'sub2LineNumber' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr in it iw nl sk tr vi
aapt: warning: string 'sub_1' has no default translation in E:\APKTool\Phone\res
; found: ar cs de en fr in it iw nl sk tr vi
aapt: warning: string 'sub_2' has no default translation in E:\APKTool\Phone\res
; found: ar cs de en fr in it iw nl sk tr vi
aapt: warning: string 'sub_one' has no default translation in E:\APKTool\Phone\r
es; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'sub_two' has no default translation in E:\APKTool\Phone\r
es; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'subone' has no default translation in E:\APKTool\Phone\re
s; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'subtwo' has no default translation in E:\APKTool\Phone\re
s; found: ar cs de en fr in it iw nl ru sk tr vi
aapt: warning: string 'sum_xdivert_disabled' has no default translation in E:\AP
KTool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'sum_xdivert_enabled' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'summary_manage_subscriptions' has no default translation
in E:\APKTool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'throttle_settings_title' has no default translation in E:
\APKTool\Phone\res; found: el es
aapt: warning: string 'title_data_settings' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr hu in it iw nl pl ru sk tr vi
aapt: warning: string 'tone_miui' has no default translation in E:\APKTool\Phone
\res; found: el ko
aapt: warning: string 'tty_mode_summary' has no default translation in E:\APKToo
l\Phone\res; found: el es
aapt: warning: string 'tty_mode_title' has no default translation in E:\APKTool\
Phone\res; found: el es
aapt: warning: string 'verifyFailed' has no default translation in E:\APKTool\Ph
one\res; found: el es
aapt: warning: string 'verifyNewPin' has no default translation in E:\APKTool\Ph
one\res; found: el es
aapt: warning: string 'vm_save_number' has no default translation in E:\APKTool\
Phone\res; found: el es
aapt: warning: string 'xdivert_active' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_button' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_enternumber_error' has no default translation in
E:\APKTool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_imsi_not_read' has no default translation in E:\A
PKTool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_not_active' has no default translation in E:\APKT
ool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_not_supported' has no default translation in E:\A
PKTool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_partial_set' has no default translation in E:\APK
Tool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_setting' has no default translation in E:\APKTool
\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_status' has no default translation in E:\APKTool\
Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_sub_absent' has no default translation in E:\APKT
ool\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_summary' has no default translation in E:\APKTool
\Phone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
aapt: warning: string 'xdivert_title' has no default translation in E:\APKTool\P
hone\res; found: ar cs de en fr hu in it iw nl ru sk tr vi
Exception in thread "main" E:\APKTool\Phone\res\values-uk\strings.xml:168: error
: Multiple substitutions specified in non-positional format; did you mean to add
the formatted="false" attribute?
E:\APKTool\Phone\res\values-uk\strings.xml:169: error: Unexpected end tag string

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-s
dk-version, 16, -F, C:\Users\monstar\AppData\Local\Temp\APKTOOL47196464498266927
4.tmp, -0, arsc, -I, C:\Users\monstar\apktool\framework\1.apk, -I, C:\Users\mons
tar\apktool\framework\6.apk, -S, E:\APKTool\Phone\res, -M, E:\APKTool\Phone\Andr
oidManifest.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, 16, --target-sdk-version, 16, -F, C:
\Users\monstar\AppData\Local\Temp\APKTOOL471964644982669274.tmp, -0, arsc, -I, C
:\Users\monstar\apktool\framework\1.apk, -I, C:\Users\monstar\apktool\framework\
6.apk, -S, E:\APKTool\Phone\res, -M, E:\APKTool\Phone\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, 16, --target-sdk-version, 16, -F, C:\Users\monstar\AppData\Local\Temp
\APKTOOL471964644982669274.tmp, -0, arsc, -I, C:\Users\monstar\apktool\framework
\1.apk, -I, C:\Users\monstar\apktool\framework\6.apk, -S, E:\APKTool\Phone\res,
-M, E:\APKTool\Phone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

E:\APKTool>

E:\APKTool>
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,337
17,600
322
#2
Exception in thread "main" E:\APKTool\Phone\res\values-uk\strings.xml:168: error
: Multiple substitutions specified in non-positional format; did you mean to add
the formatted="false" attribute?
E:\APKTool\Phone\res\values-uk\strings.xml:169: error: Unexpected end tag string
 
Aug 30, 2012
23
3
13
#3
Exception in thread "main" E:\APKTool\Phone\res\values-uk\strings.xml:168: error
: Multiple substitutions specified in non-positional format; did you mean to add
the formatted="false" attribute?
E:\APKTool\Phone\res\values-uk\strings.xml:169: error: Unexpected end tag string

well iam not able to solve this error...is the multi lang causing this error
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#7
Well there's no error in that line but Phone.apk has one famous error that beginners do when translating strings.
Take a look at string: throttle_data_usage_subtext, throttle_status_subtex, and throttle_time_frame_subtext. Make sure that you don't have percent sign which belongs to variables. In this case use original percent sign from values default strings and remove formatted="false":
In this case use this
Code:
<string name="throttle_data_usage_subtext">%1$s (%2$d٪) з %3$s (максимум)</string>
NOT this
Code:
<string name="throttle_data_usage_subtext" formatted="false">%1$s (%2$d%) з %3$s (максимум)</string>
Also make sure you have latest 1.5.3 apktool.
 
Likes: sandy7
Aug 30, 2012
23
3
13
#8
Well there's no error in that line but Phone.apk has one famous error that beginners do when translating strings.
Take a look at string: throttle_data_usage_subtext, throttle_status_subtex, and throttle_time_frame_subtext. Make sure that you don't have percent sign which belongs to variables. In this case use original percent sign from values default strings and remove formatted="false":
In this case use this
Code:
<string name="throttle_data_usage_subtext">%1$s (%2$d٪) з %3$s (максимум)</string>
NOT this
Code:
<string name="throttle_data_usage_subtext" formatted="false">%1$s (%2$d%) з %3$s (максимум)</string>
Also make sure you have latest 1.5.3 apktool.

thanks a lot for point out the changes sir....

now phone.apk recompiled successfully ..