Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Exclude non-system userId for showing which user has installed an app
Browse files Browse the repository at this point in the history
  • Loading branch information
quh4gko8 committed Aug 6, 2024
1 parent 2cd6812 commit bbaf8c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class AppInfoProvider(private val packageInfo: PackageInfo) {
lines.add(stringResource(R.string.app_info_update_time, s))
}

val installerUserId = if (appInfo == null) {
val installerUserId = if (appInfo == null || UserHandle.myUserId() != UserHandle.USER_SYSTEM) {
UserHandle.USER_NULL
} else {
val installerUid = ctx.packageManager.getInstallerOfRecordUid(
Expand Down

0 comments on commit bbaf8c0

Please sign in to comment.