summaryrefslogtreecommitdiff
path: root/telephony/common
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-03-25 20:29:27 -0700
committerMichael Groover <mpgroover@google.com>2020-03-25 20:29:27 -0700
commitf17894f341a4a29d791901d37e396db6a02dabb2 (patch)
treed70c26dd8758a97bd86c6159ea803e6e382795cc /telephony/common
parent2f54a864d57b1abd97b373d3923426cdc72ab418 (diff)
Clean up device identifier access logging
This commit removes the log message from DevicePolicyManagerService when a caller fails the access requirements as it can be confusing if the caller subsequently passes a carrier privilege check and can access identifiers, or in the case where the caller does not have access a similar entry is logged by TelephonyPermissions. The subId for which the carrier privilege check is performed is also logged to facilitate debugging. Bug: 152117976 Test: atest SubscriptionControllerTest Change-Id: I6d88d739a0d9053e8eff32d74d90009699abe8fc
Diffstat (limited to 'telephony/common')
-rw-r--r--telephony/common/com/android/internal/telephony/TelephonyPermissions.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
index 0b331744d922..3bf3444d4197 100644
--- a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
+++ b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
@@ -361,7 +361,8 @@ public final class TelephonyPermissions {
TelephonyCommonStatsLog.write(TelephonyCommonStatsLog.DEVICE_IDENTIFIER_ACCESS_DENIED,
callingPackage, message, /* isPreinstalled= */ false, false);
}
- Log.w(LOG_TAG, "reportAccessDeniedToReadIdentifiers:" + callingPackage + ":" + message);
+ Log.w(LOG_TAG, "reportAccessDeniedToReadIdentifiers:" + callingPackage + ":" + message + ":"
+ + subId);
// if the target SDK is pre-Q then check if the calling package would have previously
// had access to device identifiers.
if (callingPackageInfo != null && (