diff options
author | Tammo Spalink <tammo@google.com> | 2009-08-20 14:40:29 -0700 |
---|---|---|
committer | Tammo Spalink <tammo@google.com> | 2009-08-20 14:40:29 -0700 |
commit | 49bd918dc26a3a599d8d04212de5600abc3e48c4 (patch) | |
tree | 91e3197f1c5df3dbdd9c86aeab7c67d6f9375fd7 /telephony | |
parent | 079ad20da7df79f26880c9076967dc3fbce6528c (diff) | |
download | frameworks_base-49bd918dc26a3a599d8d04212de5600abc3e48c4.zip frameworks_base-49bd918dc26a3a599d8d04212de5600abc3e48c4.tar.gz frameworks_base-49bd918dc26a3a599d8d04212de5600abc3e48c4.tar.bz2 |
more cdma sms debug logging
Diffstat (limited to 'telephony')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/SmsMessage.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/SmsMessage.java b/telephony/java/com/android/internal/telephony/cdma/SmsMessage.java index 93426a1..1597427 100755 --- a/telephony/java/com/android/internal/telephony/cdma/SmsMessage.java +++ b/telephony/java/com/android/internal/telephony/cdma/SmsMessage.java @@ -29,6 +29,7 @@ import com.android.internal.telephony.cdma.sms.BearerData; import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; import com.android.internal.telephony.cdma.sms.SmsEnvelope; import com.android.internal.telephony.cdma.sms.UserData; +import com.android.internal.util.HexDump; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; @@ -542,7 +543,11 @@ public class SmsMessage extends SmsMessageBase { return; } mBearerData = BearerData.decode(mEnvelope.bearerData); - if (DBG_SMS) Log.d(LOG_TAG, "MT (decoded) BearerData = " + mBearerData); + if (DBG_SMS) { + Log.d(LOG_TAG, "MT raw BearerData = '" + + HexDump.toHexString(mEnvelope.bearerData) + "'"); + Log.d(LOG_TAG, "MT (decoded) BearerData = " + mBearerData); + } messageRef = mBearerData.messageId; if (mBearerData.userData != null) { userData = mBearerData.userData.payload; @@ -648,7 +653,10 @@ public class SmsMessage extends SmsMessageBase { bearerData.userData = userData; byte[] encodedBearerData = BearerData.encode(bearerData); - if (DBG_SMS) Log.d(LOG_TAG, "MO (encoded) BearerData = " + bearerData); + if (DBG_SMS) { + Log.d(LOG_TAG, "MO (encoded) BearerData = " + bearerData); + Log.d(LOG_TAG, "MO raw BearerData = '" + HexDump.toHexString(encodedBearerData) + "'"); + } if (encodedBearerData == null) return null; int teleservice = bearerData.hasUserDataHeader ? |