Properly handle alphanumeric 'numbers'.

Change-Id: I326198c19bb567846d09f8bb8c293a024c830296
JIRA:CYAN-3234
Fix permission check for deleting  SMS on UICC.

When accessing SMS stored on UICC via TelephonyProvider, we need to
use the com.android.phone UID for the call to IccSmsInterfaceManager
to avoid a UID mismatch failure in the app ops check. Add code to
SmsProvider to save and restore the original caller identity.

Change-Id:I520ca6e456a20ad3bc5d5c2584be2560e16efd20
CRs-Fixed: 562711
(cherry picked from commit cc0aff6fa3de420b12c602fab9f139847bfc4b85)
(cherry picked from commit adbf372891093248f0ed5058eb0c701f655264f8)
(cherry picked from commit 43f8a3342021c4e86a85092c50275ead2cea93c9)
TelephonyProvider(MSIM): Add support for MSIM

Add subscription information to database to identify
on which SUB SMS/MMS received

Change-Id: I31329234bcade45666206aedc469f10c5b465d34
(cherry picked from commit d954c81cb01f4ccf948c333c8d6b2dfeec0c2452)
(cherry picked from commit d172561bf1794ebaa242f5dcc3d3ffb7f4411e4f)
Add initial preferred APN feature

 -Add a new column "preferred" to the carriers database for initial
  preferred APN setting.
 -In multi-sim scenarios, each sim will have its own preferred APN
  setting.
 -Bump carriers table version to 9.
 -Add preferred column when upgrading table to version 9.

Change-Id: Iad319ce371ced7e17ac6db1aaedd5c6e14da1cba
CRs-Fixed: 569452
Fix APN database upgrade

 * Skip version 9

Change-Id: I1cef608054735a6093707de9ecc9cd6e4a7cc7c2
AppOps: use OPS_READ_MMS/OPS_WRITE_MMS for mms operation

seperate mms from sms read/write operation.

Change-Id: I5346b0273f9be2ea5e3a148299e1a5a33743f0df
Mms: Support priority when send sms

Add priority column support in database.

Change-Id: I5ccbd6dce52b86af8973f9b640e435cac345f6a3
(cherry picked from commit bbbbd334908ceff468fb0b9784f5e3d7ae669a9c)
TelephonyProvider: Impressive performance improvement for Mms delete

1. Drop the trigger used to update word and threads when delete part
2. Drop the tirgger used to update threads when delete pdu
3. Use code to do the trigger's job, to avoid unnecessary operation
when delete a lot of mms.

CRs-Fixed: 620436

Change-Id: I5dd32eb66123953848989a18abd099c905b4d3d8
Upgrade database with priority column and skip version 58.

Change-Id: Ic8071b69ec74e64ed46ed5c941340f80dbe2af01
Revert "AppOps: use OPS_READ_MMS/OPS_WRITE_MMS for mms operation"

 * Not ready for this yet.

This reverts commit d48436da7a27b33e901bff717eb1812c642ba218.