[Android Q&A, Help & Troubleshooting] Chrack:
Hello,

i have a problem with one apk in my Rom.

All other apk´s (systemUI/framework-res/etc) have no problems at de/compile.

I try to decompile the SecPhone.apk with no errors, now i changed nothing an try compile but with follow errors.

c:\apktool>java -jar apktool.jar b SecPhone
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
c:\apktool\SecPhone\res\values\arrays.xml:245: error: Found tag reference-array
where item is expected
c:\apktool\SecPhone\res\values-es\strings.xml:195: error: Multiple substitutions
specified in non-positional format; did you mean to add the formatted="false" a
ttribute?
c:\apktool\SecPhone\res\values-es\strings.xml:196: error: Unexpected end tag str
ing
c:\apktool\SecPhone\res\values-es-rUS\strings.xml:200: error: Multiple substitut
ions specified in non-positional format; did you mean to add the formatted="fals
e" attribute?
c:\apktool\SecPhone\res\values-es-rUS\strings.xml:201: error: Unexpected end tag
string
c:\apktool\SecPhone\res\values-it\strings.xml:197: error: Multiple substitutions
specified in non-positional format; did you mean to add the formatted="false" a
ttribute?
c:\apktool\SecPhone\res\values-it\strings.xml:198: error: Unexpected end tag str
ing
c:\apktool\SecPhone\res\values\public.xml:1393: error: Public entry identifier 0
x7f080075 entry index is larger than available symbols (index 117, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1393: error: Public symbol array/RAD_a
rr_roaming_auto_dial_help declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1394: error: Public entry identifier 0
x7f080076 entry index is larger than available symbols (index 118, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1394: error: Public symbol array/RAD_r
oaming_auto_dial_settings declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1391: error: Public entry identifier 0
x7f080073 entry index is larger than available symbols (index 115, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1391: error: Public symbol array/calle
rimage_alert_changed declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1343: error: Public symbol array/calle
rimage_alert_changed_for_kor declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1392: error: Public entry identifier 0
x7f080074 entry index is larger than available symbols (index 116, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1392: error: Public symbol array/calle
rimage_alert_default declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1344: error: Public symbol array/calle
rimage_alert_default_for_kor declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1381: error: Public entry identifier 0
x7f080069 entry index is larger than available symbols (index 105, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1381: error: Public symbol array/cdma_
network_preferences_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1382: error: Public entry identifier 0
x7f08006a entry index is larger than available symbols (index 106, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1382: error: Public symbol array/cdma_
network_preferences_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1379: error: Public entry identifier 0
x7f080067 entry index is larger than available symbols (index 103, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1379: error: Public symbol array/cdma_
roaming_mode_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1380: error: Public entry identifier 0
x7f080068 entry index is larger than available symbols (index 104, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1380: error: Public symbol array/cdma_
roaming_mode_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1383: error: Public entry identifier 0
x7f08006b entry index is larger than available symbols (index 107, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1383: error: Public symbol array/cdma_
subscription_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1384: error: Public entry identifier 0
x7f08006c entry index is larger than available symbols (index 108, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1384: error: Public symbol array/cdma_
subscription_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1375: error: Public entry identifier 0
x7f080063 entry index is larger than available symbols (index 99, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1375: error: Public symbol array/cdma_
system_select_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1377: error: Public entry identifier 0
x7f080065 entry index is larger than available symbols (index 101, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1377: error: Public symbol array/cdma_
system_select_sub_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1378: error: Public symbol array/cdma_
system_select_sub_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1376: error: Public symbol array/cdma_
system_select_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1361: error: Public entry identifier 0
x7f080055 entry index is larger than available symbols (index 85, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1361: error: Public symbol array/clir_
display_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1362: error: Public entry identifier 0
x7f080056 entry index is larger than available symbols (index 86, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1362: error: Public symbol array/clir_
values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1357: error: Public symbol array/conne
ct_query declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1358: error: Public symbol array/count
ry_query declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1348: error: Public symbol array/data_
roaming_guard_set declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1395: error: Public entry identifier 0
x7f080077 entry index is larger than available symbols (index 119, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1395: error: Public symbol array/ddtm_
mode_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1396: error: Public symbol array/ddtm_
mode_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1387: error: Public entry identifier 0
x7f08006f entry index is larger than available symbols (index 111, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1387: error: Public symbol array/dtmf_
tone_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1388: error: Public entry identifier 0
x7f080070 entry index is larger than available symbols (index 112, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1388: error: Public symbol array/dtmf_
tone_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1331: error: Public symbol array/emerg
ency_domestic_name_list_for_kt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1335: error: Public symbol array/emerg
ency_domestic_name_list_for_lgt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1336: error: Public symbol array/emerg
ency_domestic_name_list_for_lgt_no_sim declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1327: error: Public symbol array/emerg
ency_domestic_name_list_for_skt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1333: error: Public symbol array/emerg
ency_domestic_number_list_for_kt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1339: error: Public symbol array/emerg
ency_domestic_number_list_for_lgt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1340: error: Public symbol array/emerg
ency_domestic_number_list_for_lgt_no_sim declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1329: error: Public symbol array/emerg
ency_domestic_number_list_for_skt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1332Exception in thread "main" : error
: Public symbol array/emergency_roaming_name_list_for_kt declared here is not de
fined.
c:\apktool\SecPhone\res\values\public.xml:1337: error: Public symbol array/emerg
ency_roaming_name_list_for_lgt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1338: error: Public symbol array/emerg
ency_roaming_name_list_for_lgt_cs_available declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1328: error: Public symbol array/emerg
ency_roaming_name_list_for_skt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1334: error: Public symbol array/emerg
ency_roaming_number_list_for_kt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1341: error: Public symbol array/emerg
ency_roaming_number_list_for_lgt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1342: error: Public symbol array/emerg
ency_roaming_number_list_for_lgt_cs_available declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1330: error: Public symbol array/emerg
ency_roaming_number_list_for_skt declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1349: error: Public symbol array/globa
l_data_roaming_access_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1350: error: Public symbol array/globa
l_data_roaming_access_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1373: error: Public entry identifier 0
x7f080061 entry index is larger than available symbols (index 97, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1373: error: Public symbol array/gsm_u
mts_network_preferences_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1374: error: Public entry identifier 0
x7f080062 entry index is larger than available symbols (index 98, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1374: error: Public symbol array/gsm_u
mts_network_preferences_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1345: error: Public symbol array/kt_ad
ded_service_menu declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1347: error: Public symbol array/kt_ad
ded_service_sub_menu declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1346: error: Public symbol array/kt_in
box_menu declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1351: error: Public symbol array/lgt_d
efault_roaming_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1371: error: Public entry identifier 0
x7f08005f entry index is larger than available symbols (index 95, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1371: error: Public symbol array/list_
language_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1372: error: Public entry identifier 0
x7f080060 entry index is larger than available symbols (index 96, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1372: error: Public symbol array/list_
language_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1326: error: Public symbol array/pref_
roaming_options_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1325: error: Public symbol array/pref_
settings_roaming_options declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1363: error: Public entry identifier 0
x7f080057 entry index is larger than available symbols (index 87, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1363: error: Public symbol array/prefe
rred_network_mode_choices declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1365: error: Public entry identifier 0
x7f080059 entry index is larger than available symbols (index 89, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1365: error: Public symbol array/prefe
rred_network_mode_choices_lte declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1367: error: Public symbol array/prefe
rred_network_mode_choices_lte_global declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1369: error: Public symbol array/prefe
rred_network_mode_choices_lte_global_non_cdma declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1364: error: Public symbol array/prefe
rred_network_mode_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1366: error: Public symbol array/prefe
rred_network_mode_values_lte declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1368: error: Public symbol array/prefe
rred_network_mode_values_lte_global declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1370: error: Public symbol array/prefe
rred_network_mode_values_lte_global_non_cdma declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1397: error: Public entry identifier 0
x7f080079 entry index is larger than available symbols (index 121, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1397: error: Public symbol array/roami
ng_mode_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1398: error: Public entry identifier 0
x7f08007a entry index is larger than available symbols (index 122, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1398: error: Public symbol array/roami
ng_mode_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1399: error: Public entry identifier 0
x7f08007b entry index is larger than available symbols (index 123, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1399: error: Public symbol array/roami
ng_network_mode_list declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1400: error: Public entry identifier 0
x7f08007c entry index is larger than available symbols (index 124, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1400: error: Public symbol array/roami
ng_network_mode_list_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1324: error: Public symbol array/selec
t_dialog_items declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1359: error: Public symbol array/sid_q
uery declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1360: error: Public symbol array/sid_q
uery2 declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1385: error: Public entry identifier 0
x7f08006d entry index is larger than available symbols (index 109, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1385: error: Public symbol array/tty_m
ode_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1386: error: Public symbol array/tty_m
ode_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1355: error: Public symbol array/voice
call_type_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1356: error: Public symbol array/voice
call_type_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1389: error: Public entry identifier 0
x7f080071 entry index is larger than available symbols (index 113, total symbols
77).
c:\apktool\SecPhone\res\values\public.xml:1389: error: Public symbol array/voice
mail_notification_vibrate_when_entries declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1390: error: Public symbol array/voice
mail_notification_vibrate_when_values declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1352: error: Public symbol array/zzz_t
ts_incoming_call_from declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1353: error: Public symbol array/zzz_t
ts_notification_voicemail_title declared here is not defined.
c:\apktool\SecPhone\res\values\public.xml:1354: error: Public symbol array/zzz_t
ts_string_langs declared here is not defined.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\Lapp
y\AppData\Local\Temp\APKTOOL2200843832259958825.tmp, -I, C:\Users\Lappy\apktool\
framework\1.apk, -S, c:\apktool\SecPhone\res, -M, c:\apktool\SecPhone\AndroidMan
ifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\Lappy\AppData\Local\Temp\A
PKTOOL2200843832259958825.tmp, -I, C:\Users\Lappy\apktool\framework\1.apk, -S, c
:\apktool\SecPhone\res, -M, c:\apktool\SecPhone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more

c:\apktool>