engine
engine copied to clipboard
Fix axml decoder
For some reason axml decoder is not working properly with byte streams. As an example of that bad behaivour, it is generating outputs like:
<?xml version="1.0" encoding="utf-8"?>
<牴湡汳瑡e
xmlns:湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e="瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e"
湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e:湩整灲汯瑡牯昊潲奭敄瑬aࠈ潴䑙汥慴ࠀ搈牵瑡潩n܇湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e="@android:010A0006"
湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e:搈牵瑡潩n܇湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e="@android:010E0001"
湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e:昊潲奭敄瑬aࠈ潴䑙汥慴ࠀ搈牵瑡潩n܇湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e="0.5%p"
湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e:潴䑙汥慴ࠀ搈牵瑡潩n܇湡牤楯d⨪瑨灴⼺猯档浥獡愮摮潲摩挮浯愯歰爯獥愯摮潲摩 उ牴湡汳瑡e="0.0"
>
</牴湡汳瑡e>
instead of:
<?xml version="1.0" encoding="utf-8"?>
<translate android:interpolator="0x10a0006" android:duration="0x10e0001" android:fromYDelta="50%p" android:toYDelta="0.0" />
This bug has seriously impact on future task cause this is basic for data decoding process.
Its been tested with apktool 2.0.2 and it fails Its been tested with apktool 2.2 and it works Its been tested with SUPER 0.4.0 and it works
So we will check how apktool v2.2 does it, to make the same process without having ArrayIndexOutOfBoundsExceptions in the process.