Skip to content

Add Android Binary XML (ABX) parser#1761

Open
JSCU-CNI wants to merge 3 commits into
fox-it:mainfrom
JSCU-CNI:android-improvements
Open

Add Android Binary XML (ABX) parser#1761
JSCU-CNI wants to merge 3 commits into
fox-it:mainfrom
JSCU-CNI:android-improvements

Conversation

@JSCU-CNI

@JSCU-CNI JSCU-CNI commented May 19, 2026

Copy link
Copy Markdown
Contributor

This PR adds an ABX (Android Binary XML) parser. The AndroidPlugin is extended to use ABX features (hostname and users). target-shell gained the abx command to read ABX files on the fly.

* Add abx command to target-shell
* Improve hostname parsing
* Implement users method
@JSCU-CNI
JSCU-CNI force-pushed the android-improvements branch from 4b3fa2e to b516429 Compare May 20, 2026 09:07
@JSCU-CNI JSCU-CNI changed the title Improve Android support Add Android Binary XML (ABX) parser May 20, 2026
Comment thread dissect/target/plugins/os/unix/linux/android/util/abx.py Outdated
Comment thread dissect/target/plugins/os/unix/linux/android/util/abx.py Outdated
Comment thread dissect/target/plugins/os/unix/linux/android/util/abx.py Outdated
Comment thread dissect/target/plugins/os/unix/linux/android/util/abx.py
Comment thread dissect/target/plugins/os/unix/linux/android/util/abx.py Outdated
@JSCU-CNI
JSCU-CNI requested a review from Schamper July 7, 2026 10:38
raise ValueError(f"Unsupported DataType {data_type!r}")

value = reader()
elements[-1].attrib[name] = str(value) if to_str else value

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The to_str feels like it's a post processing step intertwined with a parsing step. Is there no alternative way to achieve the same?

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

Successfully merging this pull request may close these issues.

2 participants