diff options
author | Wink Saville <wink@google.com> | 2010-10-13 19:40:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-13 19:40:16 -0700 |
commit | 1b422d8cd8ed83b79e977a3afb99969cea4a6700 (patch) | |
tree | df28cf508f49373fe9f0577d42d54d239b49caa5 /telephony | |
parent | 068e695676bff3f3a125f965a908597d64f7c773 (diff) | |
parent | 090ac9f7dd883aa75c899745182471d409a2b762 (diff) | |
download | frameworks_base-1b422d8cd8ed83b79e977a3afb99969cea4a6700.zip frameworks_base-1b422d8cd8ed83b79e977a3afb99969cea4a6700.tar.gz frameworks_base-1b422d8cd8ed83b79e977a3afb99969cea4a6700.tar.bz2 |
am 090ac9f7: am a3100314: Merge "Remove some PII." into gingerbread
Merge commit '090ac9f7dd883aa75c899745182471d409a2b762'
* commit '090ac9f7dd883aa75c899745182471d409a2b762':
Remove some PII.
Diffstat (limited to 'telephony')
3 files changed, 27 insertions, 13 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallerInfo.java b/telephony/java/com/android/internal/telephony/CallerInfo.java index c67b995..db16dec 100644 --- a/telephony/java/com/android/internal/telephony/CallerInfo.java +++ b/telephony/java/com/android/internal/telephony/CallerInfo.java @@ -390,8 +390,8 @@ public class CallerInfo { */ public String toString() { return new StringBuilder(384) - .append("\nname: " + name) - .append("\nphoneNumber: " + phoneNumber) + .append("\nname: " + /*name*/ "nnnnnn") + .append("\nphoneNumber: " + /*phoneNumber*/ "xxxxxxx") .append("\ncnapName: " + cnapName) .append("\nnumberPresentation: " + numberPresentation) .append("\nnamePresentation: " + namePresentation) @@ -402,8 +402,8 @@ public class CallerInfo { .append("\nphotoResource: " + photoResource) .append("\nperson_id: " + person_id) .append("\nneedUpdate: " + needUpdate) - .append("\ncontactRefUri: " + contactRefUri) - .append("\ncontactRingtoneUri: " + contactRefUri) + .append("\ncontactRefUri: " + /*contactRefUri*/ "xxxxxxx") + .append("\ncontactRingtoneUri: " + /*contactRefUri*/ "xxxxxxx") .append("\nshouldSendToVoicemail: " + shouldSendToVoicemail) .append("\ncachedPhoto: " + cachedPhoto) .append("\nisCachedPhotoCurrent: " + isCachedPhotoCurrent) diff --git a/telephony/java/com/android/internal/telephony/CallerInfoAsyncQuery.java b/telephony/java/com/android/internal/telephony/CallerInfoAsyncQuery.java index a967850..de5bb943 100644 --- a/telephony/java/com/android/internal/telephony/CallerInfoAsyncQuery.java +++ b/telephony/java/com/android/internal/telephony/CallerInfoAsyncQuery.java @@ -136,7 +136,7 @@ public class CallerInfoAsyncQuery { } else { if (DBG) log("Processing event: " + cw.event + " token (arg1): " + msg.arg1 + - " command: " + msg.what + " query URI: " + args.uri); + " command: " + msg.what + " query URI: " + sanitizeUriToString(args.uri)); switch (cw.event) { case EVENT_NEW_QUERY: @@ -302,7 +302,7 @@ public class CallerInfoAsyncQuery { OnQueryCompleteListener listener, Object cookie) { if (DBG) { log("##### CallerInfoAsyncQuery startQuery()... #####"); - log("- number: " + number); + log("- number: " + /*number*/ "xxxxxxx"); log("- cookie: " + cookie); } @@ -314,7 +314,7 @@ public class CallerInfoAsyncQuery { if (PhoneNumberUtils.isUriNumber(number)) { // "number" is really a SIP address. - if (DBG) log(" - Treating number as a SIP address: " + number); + if (DBG) log(" - Treating number as a SIP address: " + /*number*/ "xxxxxxx"); // We look up SIP addresses directly in the Data table: contactRef = Data.CONTENT_URI; @@ -346,7 +346,7 @@ public class CallerInfoAsyncQuery { } if (DBG) { - log("==> contactRef: " + contactRef); + log("==> contactRef: " + sanitizeUriToString(contactRef)); log("==> selection: " + selection); if (selectionArgs != null) { for (int i = 0; i < selectionArgs.length; i++) { @@ -388,8 +388,8 @@ public class CallerInfoAsyncQuery { */ public void addQueryListener(int token, OnQueryCompleteListener listener, Object cookie) { - if (DBG) log("adding listener to query: " + mHandler.mQueryUri + " handler: " + - mHandler.toString()); + if (DBG) log("adding listener to query: " + sanitizeUriToString(mHandler.mQueryUri) + + " handler: " + mHandler.toString()); //create cookieWrapper, add query request to end of queue. CookieWrapper cw = new CookieWrapper(); @@ -423,6 +423,20 @@ public class CallerInfoAsyncQuery { mHandler = null; } + private static String sanitizeUriToString(Uri uri) { + if (uri != null) { + String uriString = uri.toString(); + int indexOfLastSlash = uriString.lastIndexOf('/'); + if (indexOfLastSlash > 0) { + return uriString.substring(0, indexOfLastSlash) + "/xxxxxxx"; + } else { + return uriString; + } + } else { + return ""; + } + } + /** * static logging method */ diff --git a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java index c80c608..438996f 100644 --- a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java +++ b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java @@ -241,7 +241,7 @@ public final class SIMRecords extends IccRecords { msisdn = number; msisdnTag = alphaTag; - if(DBG) log("Set MSISDN: " + msisdnTag +" " + msisdn); + if(DBG) log("Set MSISDN: " + msisdnTag + " " + /*msisdn*/ "xxxxxxx"); AdnRecord adn = new AdnRecord(msisdnTag, msisdn); @@ -499,7 +499,7 @@ public final class SIMRecords extends IccRecords { imsi = null; } - Log.d(LOG_TAG, "IMSI: " + imsi.substring(0, 6) + "xxxxxxxxx"); + Log.d(LOG_TAG, "IMSI: " + imsi.substring(0, 6) + "xxxxxxx"); if (mncLength == UNKNOWN) { // the SIM has told us all it knows, but it didn't know the mnc length. @@ -629,7 +629,7 @@ public final class SIMRecords extends IccRecords { msisdn = adn.getNumber(); msisdnTag = adn.getAlphaTag(); - Log.d(LOG_TAG, "MSISDN: " + msisdn); + Log.d(LOG_TAG, "MSISDN: " + /*msisdn*/ "xxxxxxx"); break; case EVENT_SET_MSISDN_DONE: |