From d2eebbc55aa4e5e62e0d8869c527bee8df2ec099 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 17 Feb 2017 14:05:22 -0800 Subject: [PATCH] Little bit of extra SmsListener logging Related #5253 // FREEBIE --- src/org/thoughtcrime/securesms/jobs/SmsReceiveJob.java | 4 ++++ src/org/thoughtcrime/securesms/service/SmsListener.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/jobs/SmsReceiveJob.java b/src/org/thoughtcrime/securesms/jobs/SmsReceiveJob.java index 44fa723b2e..1491dcf504 100644 --- a/src/org/thoughtcrime/securesms/jobs/SmsReceiveJob.java +++ b/src/org/thoughtcrime/securesms/jobs/SmsReceiveJob.java @@ -45,6 +45,8 @@ public class SmsReceiveJob extends ContextJob { @Override public void onRun() { + Log.w(TAG, "onRun()"); + Optional message = assembleMessageFragments(pdus, subscriptionId); MasterSecret masterSecret = KeyCachingService.getMasterSecret(context); @@ -64,6 +66,8 @@ public class SmsReceiveJob extends ContextJob { } } else if (message.isPresent()) { Log.w(TAG, "*** Received blocked SMS, ignoring..."); + } else { + Log.w(TAG, "*** Failed to assemble message fragments!"); } } diff --git a/src/org/thoughtcrime/securesms/service/SmsListener.java b/src/org/thoughtcrime/securesms/service/SmsListener.java index 0be3f11ae0..c9ac0b532b 100644 --- a/src/org/thoughtcrime/securesms/service/SmsListener.java +++ b/src/org/thoughtcrime/securesms/service/SmsListener.java @@ -154,6 +154,7 @@ public class SmsListener extends BroadcastReceiver { } else if ((intent.getAction().equals(SMS_DELIVERED_ACTION)) || (intent.getAction().equals(SMS_RECEIVED_ACTION)) && isRelevant(context, intent)) { + Log.w("SmsListener", "Constructing SmsReceiveJob..."); Object[] pdus = (Object[]) intent.getExtras().get("pdus"); int subscriptionId = intent.getExtras().getInt("subscription", -1);