Correct inverted check

If performs action when value is true but check when false
Fix for 07e53a2d7a
This commit is contained in:
Yevhen Babiichuk (DustDFG) 2026-02-09 14:31:56 +02:00
parent c7c3520c63
commit 25934e01eb

View file

@ -85,7 +85,7 @@ internal class PackageValidator(context: Context) {
?: error("Caller wasn't found in the system?")
// Verify that things aren't ... broken. (This test should always pass.)
check(callerPackageInfo.uid != callingUid) {
check(callerPackageInfo.uid == callingUid) {
"Caller's package UID doesn't match caller's actual UID?"
}