Closed bluedragon-cairo closed 1 month ago
brut_util_Jar_4959129993232323710.tmp
in temp directory doesn't seem to be created
Could you attach the framework file? I want to see the source vs framework setup.
I just want to edit single XML file: res/values/bools.xml and resources.arsc editors out there all don't just work
Apktool 1.4.6 gave me useful error messages:
D:\platform-tools\apktool\framework-res\res\values\strings.xml:1780: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\platform-tools\apktool\framework-res\res\values\strings.xml:1780: error: Unexpected end tag item
D:\platform-tools\apktool\framework-res\res\values\strings.xml:1796: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\platform-tools\apktool\framework-res\res\values\strings.xml:1796: error: Unexpected end tag string
So I changed strings.xml:
<string name="wifi_msg_HS20_connected_title_format" formatted="false">%s @ %s</string>
to
<string name="wifi_msg_HS20_connected_title_format">%1$s @ %2$s</string>
and
<string name="wifi_p2p_enter_pin_dialog_message" formatted="false">Enter the PIN and tap Connect within %d seconds to connect to %2$s.</string>
to
<string name="wifi_p2p_enter_pin_dialog_message">Enter the PIN and tap Connect within %1$d seconds to connect to %2$s.</string>
Now it's working and compiling without problems. I don't know why the latest version of apktool didn't show what file was the problem.
Information
apktool -version
) - 2.3.4 and 2.9.3 (latest)java --version
) - JDK 1.8.0 (Java 8)Stacktrace/Logcat
On Apktool 2.9.3 (latest):
On Apktool 2.3.4:
Steps to Reproduce
java -jar apktool_2.3.4.jar b framework-res
Frameworks
I'm compiling the framework itself
Questions to ask before submission
apktool d
,apktool b
without changing anything? - Aye--use-aapt2
doesn't fix the issue (read in issue #2777 )