Include stacktrace here
C:\Users\S3V3N\Desktop\APK-Z3>apktool if framework-res.apk
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00-en-rXA/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00-ar-rXB/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/config_spn_display_rules
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/persist_cdma_home_operator
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: array-mcc204-mnc4-ERR0
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x5C4A190000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR1
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x40F92E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR2
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1FD2E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR3
W: Duplicate Resource Detected. Ignoring duplicate: integer-mcc310-mnc00/config_volte_replacement_rat
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/cdma_same_nai
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_api_setAKey_is_enabled
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_need_otasp
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/mdn_min_for_non_provisioned_csim
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: bool-mcc204-mnc4-ERR4
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x3F8C1F6200000000.
W: Invalid config flags detected: bool-mcc311-mnc650-ERR5
I: Framework installed to: C:\Users\S3V3N\AppData\Local\apktool\framework\1.apk
If this APK is from Motorola Moto Z3 Play - Android 8.1 (Stock)
framework link : https://www47.zippyshare.com/v/ZeMFipmU/file.html
Looks like there are a few more bytes in the config flags. I think our current supported max is 56/58 bytes. So looks like there is another 4-6 bytes there. I'll have to dig with this
Thanks for your willingness
Hm, seems like this might be an issue with Moto's 2018 devices?
I got nearly the same warnings/errors when installing the framework-res.apk from the Moto G6 (XT1925-6).
I'm also not able to decompile it either, which I'm assuming is due to the output of errors while installing the framework. I'll attach the exact outputs of both from the G6 as soon as I'm back at my laptop shortly.
@iBotPeaches If it helps, I have both the Moto G6 and the Moto Z3 Play and can help with any diag and/or testing as needed.
====================================
2.3.4) Linux) Moto G6 [ali][XT1925-6] - Stock ROM - Oreo 8.0.0 - OPSS27.104-92-2) jleeblanch@Elite-OS:~/android/apktool> apktool if framework-res.apk
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00-en-rXA/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00-ar-rXB/HD_call_creteria
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/config_spn_display_rules
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/persist_cdma_home_operator
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: array-mcc204-mnc4-ERR0
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x5C4A190000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR1
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x40F92E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR2
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1FD2E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR3
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/cdma_same_nai
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_api_setAKey_is_enabled
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_f38104_subcriberid_enabled
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_need_otasp
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/mdn_min_for_non_provisioned_csim
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: bool-mcc204-mnc4-ERR4
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x3F8C1F6200000000.
W: Invalid config flags detected: bool-mcc311-mnc650-ERR5
S: WARNING: Could not write to (/home/jleeblanch/.local/share/apktool/framework), using /tmp instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Framework installed to: /tmp/1.apk
framework-res.apk
https://drive.google.com/file/d/1StUGbaaZIcS134hvbJ-zTZj_JcBJiHJR/view?usp=sharing
@Jleeblanch
Do you get a duplicate resource error when you install the framework? I think you're correct about it being an issue with 2018 moto devices. I get the exact same errors trying to decompile for the Moto G6 Play. (xt1922-7)
@ModHatter6811
Yes, exactly. I edited my previous reply with output from apktool
getting same error from moto g5 plus stock rom 8.1
Information
Apktool Version (apktool -2.3.4)
Operating System (Windows)
APK From (Stock ROM)
W: Duplicate Resource Detected. Ignoring duplicate: string-mcc310-mnc00/HD_call_
creteria
W: Config flags size > 56. Size = 64. Exceeding bytes: 0xE532180000000000.
W: Invalid config flags detected: string-mcc310-mnc260-ERR0
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/config_sp
n_display_rules
W: Duplicate Resource Detected. Ignoring duplicate: array-mcc310-mnc00/persist_c
dma_home_operator
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: array-mcc204-mnc4-ERR1
W: Config flags size > 56. Size = 64. Exceeding bytes: 0xE532180000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR2
W: Config flags size > 56. Size = 64. Exceeding bytes: 0xCEDD180000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR3
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x5E21190000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR4
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x5C4A190000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR5
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x40F92E0000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR6
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1FD2E0000000000.
W: Invalid config flags detected: array-mcc310-mnc260-ERR7
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x40F92E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR8
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1FD2E0000000000.
W: Invalid config flags detected: array-mcc310-mnc410-ERR9
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/cdma_same_
nai
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_api
_setAKey_is_enabled
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/config_nee
d_otasp
W: Duplicate Resource Detected. Ignoring duplicate: bool-mcc310-mnc00/mdn_min_fo
r_non_provisioned_csim
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x1666221400000000.
W: Invalid config flags detected: bool-mcc204-mnc4-ERR10
W: Config flags size > 56. Size = 64. Exceeding bytes: 0xE532180000000000.
W: Invalid config flags detected: bool-mcc310-mnc410-ERR11
W: Config flags size > 56. Size = 64. Exceeding bytes: 0x3F8C1F6200000000.
W: Invalid config flags detected: bool-mcc311-mnc650-ERR12
S: WARNING: Could not write to (C:\Users\Madan\AppData\Local\apktool\framework),
using C:\Users\Madan\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing,
please utilize --frame-path if the default storage directory is unavailable
I: Framework installed to: C:\Users\Madan\AppData\Local\Temp\1.apk
apk
https://www.upload.ee/files/9462754/framework-res.apk.html
Closing as this is in the Roadmap for a plugin system to work with different OEMs interpretations of qualifiers.
https://github.com/iBotPeaches/Apktool/commit/d61e33048f8bf7aa28a69f40ee6fc3624534f68d
Most helpful comment
Looks like there are a few more bytes in the config flags. I think our current supported max is 56/58 bytes. So looks like there is another 4-6 bytes there. I'll have to dig with this