Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix axml decoder #25

Open
zerjioang opened this issue May 1, 2017 · 1 comment
Open

Fix axml decoder #25

zerjioang opened this issue May 1, 2017 · 1 comment

Comments

@zerjioang
Copy link
Member

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.

@zerjioang zerjioang added the bug label May 1, 2017
@zerjioang zerjioang added this to the Droidefense 0.2.0 milestone May 1, 2017
@zerjioang zerjioang self-assigned this May 1, 2017
@zerjioang
Copy link
Member Author

zerjioang commented May 2, 2017

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.

zerjioang added a commit that referenced this issue May 7, 2017
* Removed html templates
* Removed unused AXML module because of #25
* Added suport for mimetype detection using simplemagic tool (similar to file command on unix systems)
zerjioang added a commit that referenced this issue Jun 21, 2017
@zerjioang zerjioang added this to Doing in Optimizations Dec 12, 2017
@zerjioang zerjioang added this to TODO in Status Dec 12, 2017
zerjioang added a commit that referenced this issue Jan 29, 2018
* Updated AXML decoder algorithm

* Fixed issues: #25

Signed-off-by: zerjioang <sergio.anguita@opendeusto.es>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status
  
TODO
Development

No branches or pull requests

1 participant