Little bit of extra SmsListener logging

Related #5253
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-17 14:05:22 -08:00
parent cf891edce9
commit d2eebbc55a
2 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,8 @@ public class SmsReceiveJob extends ContextJob {
@Override
public void onRun() {
Log.w(TAG, "onRun()");
Optional<IncomingTextMessage> 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!");
}
}

View File

@ -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);