Upgrade SMS db version to 61 to add priority column.

Add new "priority" column to SMS db if it doesnot exist.

Change-Id: I52ce14f6d8e8903f6a2fb2a63f7cb3eb35371b15
CRs-Fixed: 749755
MSIM: Use default data subId for all APN operations.

Change-Id: I8158ed7fb309f30a0464310ebeead848202a9ca9
Merge "Upgrade SMS db version to 61 to add priority column."
Merge "MSIM: Use default data subId for all APN operations."
Mms: Fix conversation number of message thread can't be updated

It will not auto update the message count of thread tabel after delete
sms message in folder mode.

Define a new function to update thread's info in background thread
with MIN_PRIORITY.

CRs-Fixed: 657346

Change-Id: Ib1e35dfd2ebf3888d1d09ea88db11f6ed419c23a
Merge cefb4542234ab90ed6b89aa9c040e3f8efca33cd on remote branch

Change-Id: If43c34de4f48f59369db3d0357d23c4bac2d14c9
Merge "Merge cefb4542234ab90ed6b89aa9c040e3f8efca33cd on remote branch"
Merge "Mms: Fix conversation number of message thread can't be updated"
Store phone blacklist in content provider (2/4)

Change-Id: I0fe685ff0a63848d666fc76510e4a331b74b94fe
Improve delete handling code.

Change-Id: I3f09f00a2966ee246056ea11ec55d952da6aabc0
Drop blacklist number uniqueness constraint.

It's very hard to deal with that constraint in practise, so drop the
contraint from the DB and handle potential duplicate rows when querying.

Change-Id: Id28a415ba80cf100879b24de88b4b50638e900ca
Properly handle alphanumeric 'numbers'.

Change-Id: I326198c19bb567846d09f8bb8c293a024c830296
JIRA:CYAN-3234
telephonyprovider: Add blacklist provider permission

Change-Id: I000edc9622528bde797db6548ea54041362eb4fd
JIRA: CYAN-3727
Issue: https://jira.cyanogenmod.org/browse/CYAN-3727
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
blacklist: normalize phone numbers to E164 standard

Normalize to standard E164 with country support should perform better phone number matches.
xe: The brazilian user (country code +55) saves 6792928089 as blacklisted phone, but when
he receives a call from +556792928089 the blacklist provider doesn't match the number,
but both are the same number. Using E164, combined with SimCountryIso or LocaleCountryIso,
6792928089 will be stored as +556792928089, and during quering the provider the same format
will be applied for the incoming intent phone number, which will lead to a proper match.

Change-Id: I80c8330bfe3a13dca27557f795ee04781248f1a1
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Enforce convertability to a valid E164 number on insert or update.

Change-Id: I70d2bbf07be653f1524215557fc70dd92ee42894
blacklist: relax phone normalization

The current E164 is too strict for some valid phone numbers and for regexp numbers. Just
relax that validation a bit while preserve some extra checks for invalid numbers.

JIRA: CYAN-5324
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: I4783d8c31e28dc50c3dcc69982c81ecd9a0b3d36
Add filtering by SIM for mms conversations (1/2)

Change-Id: I80f46d41e2c3ed2a6714db75a3faf799c3b88547