Apktool
                                
                                
                                
                                    Apktool copied to clipboard
                            
                            
                            
                        [BUG] <annotation> tags are escaped to <annotation> in plurals.xml
Information
- Apktool Version (
apktool -version) - 2.5.0 - Operating System (Mac, Linux, Windows) - Linux
 - APK From? (Playstore, ROM, Other) - Apkmirror
 
Steps to Reproduce
- Ensure app renders annotations properly
 apktool d- Check 
res/values/plurals.xmlto see all<annotation>tags are escaped to<annotation> apktool b . --use-aapt2, sign and install- App displays annotation string
 
Workaround
Replace all <annotation with <annotation and </annotation with </annotation in plurals.xml and the app behaves as it should.
APK
https://www.dropbox.com/s/4afhhkxrduttn9c/twitch-11.0.0.apk
Questions to ask before submission
- Have you tried 
apktool d,apktool bwithout changing anything?Yes
 - If you are trying to install a modified apk, did you resign it?
Yes
 - Are you using the latest apktool version?
Yes
 
Confirmed. Marked as bug.
Seems lots of confusion docs about this.
- 
Here is list of things we should escape (no <) - https://developer.android.com/guide/topics/resources/string-resource#FormattingAndStyling
 - 
Later on in the HTML section it mentions escaping the HTML blocks per usual - https://developer.android.com/guide/topics/resources/string-resource
 - 
Newly added is annotations which don't need to be escaped (?) yet all other HTML blocks do (??) - https://developer.android.com/guide/topics/resources/string-resource
 
Not going to be easy since Apktool doesn't presently have an allow/deny list of tags to escape or not.