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

Decoding Android manifest xml results in incomplete strings #919

Open
mickowale opened this issue Jan 28, 2023 · 0 comments
Open

Decoding Android manifest xml results in incomplete strings #919

mickowale opened this issue Jan 28, 2023 · 0 comments

Comments

@mickowale
Copy link

mickowale commented Jan 28, 2023

Extracting/decoding the manifest.xml text content using core.bytecodes.mtf8.decode(apk.get_android_manifest_axml().get_xml() results in incomplete strings. apk.get_android_manifest_axml().get_xml().decode('utf-8') also has the same issue. Suspect some decoding error with the utf-8 encoding.

  • Androguard Version: master
  • Python Version: 3.8
  • Operating System: Windows 11 / Ubuntu 16.04

Analyzed app SHA256: B784B1451C70508F0388B5031A6D6B72F4AEE4EDEAC9178BB26650139D851DED
Methods called:

core.bytecodes.mtf8.decode(apk.get_android_manifest_axml().get_xml(). apk is an instance of core.bytecodes.apk.APK

Expected partial:

<activity *some text* android:name="zok.android.phonics.ReadingPromoActivity" *some text*>

Output partial:

<activity android:theme="@android:0103000B" android:name=".ReadingPromoActivity" android:screenOrientation="0" android:configChanges="0x000004A0"/>

Possibly related bug: Calling apk.get_activities() outputs zok.android.phonics..ReadingPromoActivity for the activity listed above. with double period(.) after 'phonics'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant