Skip to content

Commit 8eaa88b

Browse files
committed
fix: Skip disabled installed apps in AppDataResolver
Previously, `tryGetFromInstalled` returned data for disabled system apps, causing them to take priority over saved original APKs due to `INSTALLED` source ranking. Now disabled apps are skipped, allowing the resolver to correctly fall through to the saved APK. Closes #343
1 parent 74d05cb commit 8eaa88b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/app/morphe/manager/util/AppDataResolver.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ class AppDataResolver(
118118
val packageInfo = pm.getPackageInfo(packageName, 0) ?: return null
119119
val appInfo = packageInfo.applicationInfo ?: return null
120120

121+
// Skip disabled apps - they should not take priority over saved APKs
122+
if (!appInfo.enabled) return null
123+
121124
ResolvedAppData(
122125
packageName = packageName,
123126
displayName = appInfo.loadLabel(packageManager).toString(),

0 commit comments

Comments
 (0)