aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2017-06-21 10:38:09 -0700
committerTyler Gunn <tgunn@google.com>2017-06-21 21:58:30 +0000
commit2c93941ab1a107b67dbfa27bb2680073306f6aff (patch)
treeb4758fd97f5504d22a158f35c74a35d87a77dec0
parent115948329431a20e1899f5c26780369519ccb4d5 (diff)
downloadtelephony-oreo-dev.tar.gz
Add Rlog.pii for SMSNumberUtils address filtering.android-vts-8.0_r2android-vts-8.0_r1oreo-dev
Adding Rlog.pii for phone number information which is potentially logged to the SmsNumberUtils logs. Test: Manual Bug: 62827376 Change-Id: I46e6626972f0ff6657feec4bb66af35bc2b07a70
-rw-r--r--src/java/com/android/internal/telephony/SmsNumberUtils.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/com/android/internal/telephony/SmsNumberUtils.java b/src/java/com/android/internal/telephony/SmsNumberUtils.java
index f4e320b8b6..ff65aea25f 100644
--- a/src/java/com/android/internal/telephony/SmsNumberUtils.java
+++ b/src/java/com/android/internal/telephony/SmsNumberUtils.java
@@ -530,10 +530,11 @@ public class SmsNumberUtils {
* Filter the destination number if using VZW sim card.
*/
public static String filterDestAddr(Phone phone, String destAddr) {
- if (DBG) Rlog.d(TAG, "enter filterDestAddr. destAddr=\"" + destAddr + "\"" );
+ if (DBG) Rlog.d(TAG, "enter filterDestAddr. destAddr=\"" + Rlog.pii(TAG, destAddr) + "\"" );
if (destAddr == null || !PhoneNumberUtils.isGlobalPhoneNumber(destAddr)) {
- Rlog.w(TAG, "destAddr" + destAddr + " is not a global phone number! Nothing changed.");
+ Rlog.w(TAG, "destAddr" + Rlog.pii(TAG, destAddr) +
+ " is not a global phone number! Nothing changed.");
return destAddr;
}
@@ -553,7 +554,8 @@ public class SmsNumberUtils {
if (DBG) {
Rlog.d(TAG, "destAddr is " + ((result != null)?"formatted.":"not formatted."));
- Rlog.d(TAG, "leave filterDestAddr, new destAddr=\"" + (result != null ? result : destAddr) + "\"" );
+ Rlog.d(TAG, "leave filterDestAddr, new destAddr=\"" + (result != null ? Rlog.pii(TAG,
+ result) : Rlog.pii(TAG, destAddr)) + "\"");
}
return result != null ? result : destAddr;
}