Mms: Support priority when send sms

Add priority column support in database.

Change-Id: I5ccbd6dce52b86af8973f9b640e435cac345f6a3
Conflicts:
src/com/android/providers/telephony/MmsSmsDatabaseHelper.java
Change SUB_ID to PHONE_ID column for SmsProvider and MmsProvider

As per Google SMS/MMS are storing with SUB ID in data base
due to this if user changed the SIM's then user won't be able
to see the already stored SMS/MMS in phone.

Modifying data base to store SMS/MMS with PHONE ID, now user
will be able to see the stored MMS/SMS in phone even after
inserting the different SIM's

Change-Id: I066381564e1fbfc5002b453d832801eaeeec0836
Add Manual Provisioning support

* Add subStatus column to iSub table.

Conflicts:
src/com/android/providers/telephony/TelephonyProvider.java
Change-Id: I94747656943a8da23b2bfe6ae0aa6300ed9dd578
AppOps: use OPS_READ_MMS/OPS_WRITE_MMS for mms operation

seperate mms from sms read/write operation.

Change-Id: I5346b0273f9be2ea5e3a148299e1a5a33743f0df
Mms: Support get messages according to mailbox type and slot id

Add get mailbox messages uri matcher and query message's info
according to mailbox id.

Change-Id: Ibd5d403e8621a614038309d80ae0e7b989aedd29
Get proper operator numeric from TelephonyManager

Change-Id: I18f80e955f61800c85ee896cfc35e68c9693a81a
CRs-Fixed: 727780
Conflicts:
src/com/android/providers/telephony/TelephonyProvider.java
Store Network Mode selected in subId Table.

Modify code to store network selected by user in
subId table.

Change-Id: Id349f2ca0faefda0bc8c0dcc609820ed978954fd
TelephonyProvider:Add Changes to SMS provider as per new SMS design

Add Changes to SMS provider as per new SmsManager design.

Change-Id: If80d4fc75effa7a7dc63894c51e0dd90d4e01bdb
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
Bump the DB version from QC's changes

We still have some upgrade steps to do to upgrade from CM11, but prevent
crashlooping of acore for people running L's original provider

Change-Id: Ia28349bca23c8c7b71699a014756b4e3b061fe70
Signed-off-by: houst0nn <houstonn@gmail.com>
MmsSmsDB: Add an update path for CM11

Change-Id: I6e0ac475d677b73a68814647711a6ab6c5c42c86
TelephonyProvider: Handle database migration from cm-11.0.

Change-Id: I421679873ff6016b2999a0661c9614e3668720d2
telephony: Add support for choosing a default APN

* Sometimes, the standard method of choosing the "first" available APN
   is not what we want. Consider the case where a certain provider has
   both a "normal" APN and an LTE APN. The LTE APN is what we want, but
   it's not chosen.
* Add a new overlayable value "config_preferred_apn" to handle this. A
   device can override this. The format is "apn,mcc,mnc".

Change-Id: Ia6ca4159491bee15b3f18ad7ad524b8b0ffce2f2