Merge pull request #249 from joeykrim/patch-1

Small clarification in the comments on the types of SMS to ignore
This commit is contained in:
Moxie Marlinspike 2013-07-14 11:33:23 -07:00
commit c827f0a2a7

View File

@ -46,11 +46,10 @@ public class SmsListener extends BroadcastReceiver {
return true;
}
// Sprint Visual Voicemail
return
message.getOriginatingAddress().length() < 7 &&
(messageBody.startsWith("//ANDROID:") || messageBody.startsWith("//Android:") ||
messageBody.startsWith("//android:") || messageBody.startsWith("//BREW:"));
(messageBody.toUpperCase().startsWith("//ANDROID:") || // Sprint Visual Voicemail
messageBody.startsWith("//BREW:")); //BREW stands for Binary Runtime Environment for Wireless"
}
private SmsMessage getSmsMessageFromIntent(Intent intent) {