Skip to content

Commit

Permalink
Show app name and icon in verify apk file screen
Browse files Browse the repository at this point in the history
  • Loading branch information
soupslurpr committed Jan 5, 2024
1 parent 8fbf52d commit 37c3dad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,15 @@ class VerifyAppViewModel(application: Application) : AndroidViewModel(applicatio
return
}

packageInfo.applicationInfo.sourceDir = tempFile.path
packageInfo.applicationInfo.publicSourceDir = tempFile.path

val packageName = packageInfo.packageName

val hashes = getHashesFromPackageInfo(packageInfo)

setAppVerificationInfo(
packageName, // Last time I checked packageManager.getApplicationLabel didn't return a valid name
packageManager.getApplicationLabel(packageInfo.applicationInfo).toString(),
packageName,
hashes,
getInternalDatabaseStatusFromVerificationInfo(VerificationInfo(packageName, hashes))
Expand Down

0 comments on commit 37c3dad

Please sign in to comment.