Add developer-only App Inventory module for parsing-coverage analysis#938
Merged
Conversation
Three artifacts in scripts/alternate_artifacts/ (not loaded by normal
runs; staged into scripts/artifacts/ by developer tooling) that write
machine-readable coverage data into _lava_artifacts.db:
- extractionInfo: LEAPP version, input path/name, extraction type, and
device identifiers parsed directly from build.prop (system preferred
over vendor)
- installedAppInventory: one row per package from packages.xml with
install/update times, installer and code path (plain and ABX formats)
- appFileInventory (lava_only): every file in the extraction with size
and modified time, mapped to its owning package via /data/data,
/data/user[_de], Android/{data,media,obb} and /data/app locations
Enables batch-leapp to diff installed apps against what the tooling
parsed. No core changes.
This was referenced Jul 8, 2026
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.
Summary
ALEAPP counterpart of abrignoni/iLEAPP#1680. Adds
scripts/alternate_artifacts/appInventory.py— three developer-only artifacts that write machine-readable coverage data into the LAVA SQLite output (_lava_artifacts.db), so downstream tooling (batch-leapp) can determine which installed apps were NOT parsed by ALEAPP. No core/framework changes.Not part of normal runs. Nothing in ALEAPP loads
scripts/alternate_artifacts/. Developer tooling stages the module intoscripts/artifacts/for the duration of a coverage run (batch-leapp will automate this; a README in the folder documents manual use). ALEAPP does not have iLEAPP's--custom_artifacts_pathCLI option — if that parity feature is ever ported, this module works with it unchanged.Artifacts
checkabx/abxreadhelpers; skips magisk/mirror/duplicates.lava_onlydue to size): every file in the extraction with size and modified time, mapped to its owning package via/data/data/<pkg>,/data/user/<n>/<pkg>,/data/user_de/<n>/<pkg>,Android/{data,media,obb}/<pkg>and/data/app/.../<pkg>-*locations. Enumerates the seeker's existing listings (zip/tar central directory, dir walk) — no extraction/copying.Modified Time is stored as text, not LAVA datetime: zip archives carry zone-less DOS timestamps, so UTC coercion would be wrong. Tar/dir values are UTC.
Testing
PYTHONPATH=. pylint --disable=C,R→ 10.00scripts/artifacts/and is never loaded