Remove sensitive data from the exception
The visual voicemail package name is a sensitive data protected
by READ_PHONE_STATE permission, which should not be exposed.
Bug: 229742768
Test: manual - check the exception log
Change-Id: I46ff5fd2a4b761987ea930ce4fef060af51a93c8
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 66cef64..4122dfe 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -8095,8 +8095,7 @@
}
String vvmPackage = componentName.getPackageName();
if (!callingPackage.equals(vvmPackage)) {
- throw new SecurityException("Caller not current active visual voicemail package["
- + vvmPackage + "]");
+ throw new SecurityException("Caller not current active visual voicemail package");
}
} finally {
Binder.restoreCallingIdentity(identity);