Add object-oriented AndroidManifest parser#1360
Merged
Merged
Conversation
Create a new manifest parsing system that builds a complete object-oriented representation of AndroidManifest.xml in a single pass. New Features: - Complete domain models for all manifest elements (activities, services, receivers, providers, intent-filters, permissions, meta-data) - Single-pass XML parsing using existing AssetManager reflection approach - Type-safe object model with kotlinx.serialization support - Comprehensive unit tests with >30 test cases Benefits: - Eliminates redundant manifest parsing - Provides query-friendly object structure for frontend filtering - Integrates intent-filter data with component information - Non-invasive addition that coexists with existing ApkParser This parser is designed to support feature-level analysis of intent-filters for detecting share components, deep-link handlers, and other app capabilities. Change-Id: I4e5608fd9b0a9794cd4a6346d197fd886fa35035
Make I/O operations properly suspend to avoid blocking the UI thread: - Mark getParserForManifest() as suspend function - Add dispatcher parameter with Dispatchers.IO default - Wrap file loading in withContext(dispatcher) - Pass dispatcher to nested suspend calls This follows the same coroutine pattern as ApkParser for consistency and ensures manifest parsing won't accidentally block the UI thread. Change-Id: Ic88940a7939c1e37af35493345a390c30ddea177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a new manifest parsing system that builds a complete object-oriented representation of AndroidManifest.xml in a single pass.
New Features:
Benefits:
This parser is designed to support feature-level analysis of intent-filters for detecting share components, deep-link handlers, and other app capabilities.
Change-Id: I4e5608fd9b0a9794cd4a6346d197fd886fa35035