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