Skip to content
Commit ac9e76c8 authored by Winson's avatar Winson
Browse files

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
parent 3c05313b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment