Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Aug 20, 2025

No description provided.

@d4rken d4rken added enhancement New feature, request, improvement or optimization c: CorpseFinder Root labels Aug 20, 2025
d4rken added 9 commits August 21, 2025 17:14
This commit modifies the API level check in `AppLibCorpseFilter`. The filter is now skipped on API level 35 and above, as newer Android versions use a different directory structure for app libraries.

This change is based on the findings in issue #1612.
This commit adds a test case to ensure that `DalvikProfileCSI` correctly ignores ART profile paths introduced in Android 16. These paths should not be handled by this component.
This commit adds clutter markers for preinstall history and package path files created by the MIUI package installer. These files are located in the app-specific app data area. Corresponding tests have been added to verify these markers.
This test was commented out and is no longer needed.
This commit introduces a new section to `CLAUDE.md` detailing the project's testing guidelines. It covers framework selection (JUnit 5 for unit tests, JUnit 4 for Robolectric), base test classes, common testing patterns with examples, recommended testing libraries, test organization principles, and common test utilities.
This commit enhances the package name extraction logic for Android 11 and newer versions.

When the path contains two segments (e.g., `~~HASH==/pkg-HASH==`), the package name is now directly extracted from the second segment. This avoids an unnecessary and potentially failing filesystem listing (`listFiles`).

For paths with a single segment (e.g., `~~HASH==`), the existing behavior of listing the directory contents to find the package name is retained as a fallback.

This change optimizes the process for the common double-hash pattern and improves robustness.
This commit introduces unit tests for `AppSourceClutterCheck` to verify its behavior in various scenarios, including:
- No clutter match
- Specific MIUI preinstall file mappings
- Multiple package name associations
- Clutter matches with custodian flags
- Multiple clutter matches for a single file
This commit enhances `AppSourceMainCSITest` by:
- Adding test cases for Android 11's double-hashed standard package paths.
- Including tests for versioned Trichrome library package paths.
- Testing identification of Trichrome library APKs under various path structures.
- Verifying that `vmdl*.tmp` directories and their contents are correctly identified as having no owner and being blacklisted (corpses).
@d4rken d4rken force-pushed the corpsefinder-android16 branch from aa1ad5a to ba75d95 Compare August 21, 2025 19:50
@d4rken d4rken marked this pull request as ready for review August 21, 2025 20:05
@d4rken d4rken merged commit 68c4dc4 into main Aug 21, 2025
16 checks passed
@d4rken d4rken deleted the corpsefinder-android16 branch August 21, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: CorpseFinder enhancement New feature, request, improvement or optimization Root

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants