summaryrefslogtreecommitdiff
path: root/telephony/common
diff options
context:
space:
mode:
authorSooraj Sasindran <sasindran@google.com>2019-11-27 15:57:33 -0800
committerSooraj Sasindran <sasindran@google.com>2020-01-27 18:53:49 -0800
commitb1c57994da213cefbc101a5a8a030e978b650d4e (patch)
tree26165ded3c6f523cbef82782323c81eb392183a2 /telephony/common
parentfb9adf0d1e7cad50e575882ad81634ae1fe557ba (diff)
Do not use hidden isPrivilegedApp
Remove usage of isPrivilegedApp as it is used only for logging. Bug: 140908357 Test: Build Merged-In: I510e10cd17546ebd4aa59f14a3b10738e37e912d Change-Id: I510e10cd17546ebd4aa59f14a3b10738e37e912d
Diffstat (limited to 'telephony/common')
-rw-r--r--telephony/common/com/android/internal/telephony/TelephonyPermissions.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
index 5beb06d8595a..2077800cd808 100644
--- a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
+++ b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
@@ -365,7 +365,6 @@ public final class TelephonyPermissions {
private static boolean reportAccessDeniedToReadIdentifiers(Context context, int subId, int pid,
int uid, String callingPackage, String message) {
boolean isPreinstalled = false;
- boolean isPrivApp = false;
ApplicationInfo callingPackageInfo = null;
try {
callingPackageInfo = context.getPackageManager().getApplicationInfoAsUser(
@@ -373,9 +372,6 @@ public final class TelephonyPermissions {
if (callingPackageInfo != null) {
if (callingPackageInfo.isSystemApp()) {
isPreinstalled = true;
- if (callingPackageInfo.isPrivilegedApp()) {
- isPrivApp = true;
- }
}
}
} catch (PackageManager.NameNotFoundException e) {
@@ -398,10 +394,10 @@ public final class TelephonyPermissions {
}
invokedMethods.add(message);
StatsLog.write(StatsLog.DEVICE_IDENTIFIER_ACCESS_DENIED, callingPackage, message,
- isPreinstalled, isPrivApp);
+ isPreinstalled, false);
}
Log.w(LOG_TAG, "reportAccessDeniedToReadIdentifiers:" + callingPackage + ":" + message
- + ":isPreinstalled=" + isPreinstalled + ":isPrivApp=" + isPrivApp);
+ + ":isPreinstalled=" + isPreinstalled);
// if the target SDK is pre-Q then check if the calling package would have previously
// had access to device identifiers.
if (callingPackageInfo != null && (