Migrate DomainVerificationUtils to no log ChangeId
Uses the isChangeEnabledInternalNoLogging variant, which skips the caller permission check, which improves performance. Also removes the need to clear calling identity. This uses a mocked ApplicationInfo as it can be called during package update, which means the PM lock cannot be taken. This, and in all other cases, the method is being called as part of a service side check, post feature/permission app visibility enforcement, so it should be safe to skip permission checks. This isn't enforced, but since DomainVerificationUtils#isChangeEnabled is only visible inside the DVS package, it should be fine. Bug: 159952358 Test: atest com.android.server.pm.verify.domain Change-Id: I9c54e8653d843cfb67fb9d6e12349cf06de90fce
Loading
Please register or sign in to comment