BetterKnownInstalled v1.5.2
Fixes
- Tightened system-app detection — v1.5.1 used a blacklist of partitions (
/system/,/vendor/,/product/,/odm/,/oem/,/apex/) to skip system apps. This still leaked some updated system packages living in/data/app/. The logic is now inverted to a whitelist: only packages withcodePath="/data/app/"are processed, with an additional guard forsystem="true"/system="1". - Fixed missing
packageSourceinjection — v1.5.1 only replaced an existingpackageSourceattribute if its value was not2. Apps that never had the attribute (e.g., sideloaded installs) were left without it. The attribute is now added when missing and replaced when incorrect. - Improved boolean cleanup —
isOrphanedandinstallInitiatorUninstalledare now stripped for both"true"and"1"values, covering both XML string styles.
Changes
- Replaced blacklist-based
SYS_SKIPwith a concise whitelist (/data/app/+systemflag). - Reduced
SYS_SKIPfrom 8 lines to 4, making future maintenance easier. - No functional changes to the
sedengine, UID extraction, or normalization pipeline.
Technical
- Engine:
sed(v1.4.0-style) with line normalization - Scope:
codePath="/data/app/"whitelist, withsystem="true"/"1"guard - UID source:
com.android.vendingself-entry → existing Play Store app fallback