3089 Commits

Author SHA1 Message Date
Jack Yu
a4f2da3988 Allow carriers to force disable ETWS/CMAS test messages.
This feature can be enabled in carrier config XML. When enabled, the user will not see
ETWS/CMAS enable/disable option in emergency broadcast preference menu.

bug: 22396039
Change-Id: I6ad6fa39852d3b13faeef968a1963b3e0a4a6e61
2015-07-23 05:21:54 +00:00
Sanket Padawe
ea975b122f Merge "Add new API for handling DB query per subId." into mnc-dev 2015-07-16 05:01:23 +00:00
Sanket Padawe
dc49309cef Add new API for handling DB query per subId.
+ Add new API for handling DB query and Resources object per subscription.
+ Add constants for column name of DB storing subscription info.
+ Add a common settings file for multi-tab

Bug: 22360525
Change-Id: Icf6d35bdbe31618e2a95df450aee12b99d3aea7a
2015-07-14 14:21:43 -07:00
Roshan Pius
93018a4d98 Handle exceptions when accessing Content providers.
BUG: 21638129
Change-Id: I88f7dcf67e395f49136a1f434fbd9c75e15cddad
2015-07-14 11:20:42 -07:00
Roshan Pius
7e9cb0d094 Catch & log security exception in telephonymanager
BUG: 22225068
Change-Id: I9b0053cf1041c81f409ace556b810ef79de88599
2015-07-13 13:11:09 -07:00
Robert Greenwalt
1570b6b3c7 Merge "Enable EMERGENCY mobile connections." into mnc-dev 2015-07-10 18:23:24 +00:00
Robert Greenwalt
9bc8299ca0 Fix permissions.
Legacy API should not need new permissions.
Also found some more hidden/system that should have permissions.

bug:22379438
bug:19257083
Change-Id: I24be0a90dffcffe03d25982a9b02eedcf03fbd59
2015-07-10 09:42:08 -07:00
Robert Greenwalt
4bd4389616 Enable EMERGENCY mobile connections.
Hooks the ConnectivityManager.TYPE_MOBILE_EMERGENCY,
PhoneConstants.APN_TYPE_EMERGENCY, and NetworkCapabilities.NET_CAPABILITY_EIMS
together so carrier apps can request connections to this APN.

bug:21785357
Change-Id: Id92a5e28d19407cc7a8f8b5478b23457f2f7f89d
2015-07-09 14:49:35 -07:00
Robert Greenwalt
348988c570 Merge "Fix permissions on TelephonyManager" into mnc-dev 2015-07-09 03:19:26 +00:00
Robert Greenwalt
8b0f3873a0 Merge "Add/Fix Permission check on SubscriptionManager." into mnc-dev 2015-07-08 21:26:17 +00:00
Robert Greenwalt
6e4a98f870 Fix permissions on TelephonyManager
bug:19257083
Change-Id: I063d36bbe7ece9d83aac7c490d1b44e55da2c286
2015-07-07 11:52:15 -07:00
Robert Greenwalt
278b8f9509 Add/Fix Permission check on SubscriptionManager.
Things that are modifing should check the modify permission.

bug: 19259681
Change-Id: I27c7501d6777deec902b9cd47e194eadef391869
2015-07-06 15:16:46 -07:00
Casey Ho
becddea63e Merge "Unhide signal strength constants used by getLevel." into mnc-dev 2015-07-06 21:39:31 +00:00
Svet Ganov
4b2698ba5e Merge "Workaround legacy TelephonyManager.getDefault() with no context" into mnc-dev 2015-07-01 23:58:46 +00:00
Svet Ganov
4e792cbe75 Workaround legacy TelephonyManager.getDefault() with no context
bug:22201450

Change-Id: If591bd90f3e4081c411dfa6415853c110a62a7fb
2015-07-01 12:41:22 -07:00
Makoto Onuki
a10277e3e4 Merge "Allow default SMS app to get self phone number" into mnc-dev 2015-07-01 18:06:38 +00:00
Jay Shrauner
6ce5d68a58 Catch SecurityExceptions
Bug:22208649
Change-Id: I608be28095a2d7ee0e3dd739ed899eaae55e700e
2015-07-01 10:07:17 -07:00
Yorke Lee
40dff5b47f Merge "Fix TelecomManager.isVoicemailNumber" into mnc-dev 2015-06-30 17:47:17 +00:00
Yorke Lee
1249bdbe90 Fix TelecomManager.isVoicemailNumber
Provide an overload of PhoneNumberUtil.isVoiceMailNumber that
takes a context to prevent an NPE.

This does not fix PhoneNumberUtil.isVoicemailNumber(String number),
that will require a follow up CL.

Bug: 22184528
Change-Id: I300b70948e5ff7230989bb887ad17e222c61685d
2015-06-30 10:15:40 -07:00
Shriram Ganesh
ef0cde848b IMS: Map pay phone and unknown presentation with OIR.
Current code does not map pay phone and unknown
presentation with OIR.
Add code to map pay phone and unknown presentation
with OIR correctly.

Bug: 22123243
Change-Id: I7610db8547a0f0f5529c2627879047dd9a45cf9f
2015-06-29 15:54:54 -07:00
Makoto Onuki
a26a019c6c Allow default SMS app to get self phone number
Apps with WRITE_SMS app op can now call TelephonyManager.getLine1Number().
(Note we no longer have the WRITE_SMS permission.)

Bug 22031904

Change-Id: Ic843b6d7674879951a64e3b3a92bca09c3b5c65b
2015-06-29 14:51:09 -07:00
Anil Muthineni
627bd99ef6 Merge "Write size of operators in writeToParcel()" into mnc-dev 2015-06-26 23:46:41 +00:00
Anil Muthineni
554beb58db Write size of operators in writeToParcel()
- So that the operators are read correctly while reading
  from parcel.

Bug: 21563489
Change-Id: Icb5571a261144810f075855372791d4291255eec
2015-06-26 16:31:00 -07:00
Nathan Harold
748e9d5979 Deprecate TelephonyManager.getNeighboringCellInfo()
bug: 22121990
Change-Id: Id8f9d080fdd1e2993b414a5304424238396b6fd4
2015-06-26 12:20:58 -07:00
Chris Manton
63f25b6e3f Carrier Config API KEY_FORCE_HOME_NETWORK_BOOL
Bug: 20828356

Change-Id: I30a286e7af884a11c51363916dd6a4dc965d399a
2015-06-25 10:08:45 -07:00
Junda Liu
e5c7ca7d79 Rename and add carrier config keys for volte and ims.
Bug: b/21878236
Change-Id: I2bc36664969fce9e773ce8a53d56b92936d96971
2015-06-24 16:07:56 -07:00
Nancy Chen
a51765ed6d Add public action to open voicemail settings.
Need public api constant to create an intent to open voicemail settings.
This is used for visual voicemail.

Bug: 21086059
Change-Id: I1a11712ead2941d5322cde6be6c3f41652bc36d8
2015-06-23 14:17:48 -07:00
Robert Greenwalt
d314de0aa4 Return reasonable phone type if no sim inserted.
With no sim, there's no subscription, no default phone, etc.
If we're asked for phone type for an invalid sub, just use the
first phone.

bug: 20760370
Change-Id: Ide7b0679e7253e1f1ce563a68fbbec1ff8c24daf
2015-06-22 15:56:46 -07:00
Casey Ho
8e27050f0e Unhide signal strength constants used by getLevel.
Bug: 22008966
Change-Id: I0c1dc993cbf33a7109d8a4e329b05a897df6ea1b
2015-06-22 21:08:52 +00:00
Shishir Agrawal
c242d9d2ae Merge "Adding hidden TM calls to scan/select cell networks." into mnc-dev 2015-06-22 18:19:58 +00:00
Junda Liu
8f87c8249b Merge "Fix spelling of a config variable." into mnc-dev 2015-06-19 23:49:07 +00:00
Jonathan Basseri
1826c234bc Fix spelling of a config variable.
This is to be consistent with the style/format in CarrierConfigManager.

Fortunately, nothing in packages/apps/CarrierConfig needs to be updated,
since this variable doesn't have any overrides.

Change-Id: I8910abd28d9c0aae68a04dcfcfb2f3d0c0466ca9
2015-06-19 16:07:12 -07:00
Shishir Agrawal
d4f2bcdab5 Adding hidden TM calls to scan/select cell networks.
TM.getCellNetworkScanResults: Performs a radio scan for networks and returns
a list of OperatorInfo.

Tm.setNetworkSelectionModeManual: Manually selects a network and returns the
status of the selection.

Bug: 21563489
Change-Id: If64f30d6f1ed373c1d90433688389307f3dfee8c
2015-06-19 13:53:12 -07:00
Junda Liu
5385f5a0b8 Merge "Add comments to carrierconfigmanager for required permission." into mnc-dev 2015-06-19 20:31:56 +00:00
Junda Liu
fbd740c3ca Add comments to carrierconfigmanager for required permission.
Bug: b/20826627
Change-Id: Ia8a42f4792429e56108a423f27c3f843f6b0f958
2015-06-19 13:27:58 -07:00
Jonathan Basseri
019523a8a4 Migrate 'csp_enabled' to CarrierConfigManager.
This variable controls whether SIM cards are allowed to disable manual
carrier selection, so it makes more sense for it to be managed as
carrier config.

Currently the variable is only used in device overlays
for specific networks, but we are dropping the device-overlay so that
this simply applies to those networks.

Change-Id: Ia6ba6a89c94c0916c19bdf792e48a4feac87eded
2015-06-19 12:28:08 -07:00
Jonathan Basseri
cb8bb39001 Merge "Add VVM carrier config to public API." into mnc-dev 2015-06-19 06:16:48 +00:00
Fyodor Kupolov
7e603d6994 Merge "OP_READ_PHONE_STATE AppOp check for getMergedSubscriberIds" into mnc-dev 2015-06-18 23:17:01 +00:00
Jonathan Basseri
6c1dc315aa Add VVM carrier config to public API.
These bits of carrier config were @hidden, but in order for carrier apps
to set them, they need to be public.

Bug: 21930513
Change-Id: Ifa49cf7441a8c6b6cf7e1aadb46abeb41054fcc3
2015-06-18 16:05:39 -07:00
Sanket Padawe
330dcac0cb SubscriptionManager: Fix NPE in getSimStateForSlotIdx
bug: 21915589
Change-Id: If703baff6408a0d7ba7c8b02bfd2427b64cda963
2015-06-18 12:08:01 -07:00
Fyodor Kupolov
d24e4eafdb OP_READ_PHONE_STATE AppOp check for getMergedSubscriberIds
Bug: 21726452
Bug: 21878243
Change-Id: I390386e28d8f948b8672a212ac413dfa61e54a15
2015-06-17 15:34:03 -07:00
Chris Manton
69dd4bba65 Merge "Add keys to handle GSM and CDMA roaming/non roaming overrides" into mnc-dev 2015-06-17 21:21:40 +00:00
Andrew Lee
94f3082495 Merge "Add DisconnectCause for CDMA activated case." into mnc-dev 2015-06-17 20:42:06 +00:00
Junda Liu
a5aabfebca Merge "Add carrier config variable to hide sim lock setting ui." into mnc-dev 2015-06-17 18:11:03 +00:00
Junda Liu
e15cca771c Add carrier config variable to hide sim lock setting ui.
Bug: b/19623656
Change-Id: Iee9efcdefe5cdda2adae03f0852ff2b53e75698f
2015-06-17 10:57:23 -07:00
Chris Manton
ca16a79b18 Add keys to handle GSM and CDMA roaming/non roaming overrides
bug: 20828356

Change-Id: Icb5ad25e213771554915bd9479a4a66b4f4a6906
2015-06-17 08:25:48 -07:00
Andrew Lee
0c4d2e84cf Add DisconnectCause for CDMA activated case.
Bug: 19296388
Change-Id: Ic754534e6d0273ae73ed80e3bb25a681d410a03b
2015-06-16 16:42:31 -07:00
Fyodor Kupolov
27a88a3eb6 Merge "Additional OP_READ_PHONE_STATE AppOps checks for telephony" into mnc-dev 2015-06-16 17:15:03 +00:00
Junda Liu
73d0432324 Merge "Add KEY_DEFAULT_SIM_CALL_MANAGER_STRING to carrierconfigmanager." into mnc-dev 2015-06-15 23:54:38 +00:00
Junda Liu
e478649373 Add KEY_DEFAULT_SIM_CALL_MANAGER_STRING to carrierconfigmanager.
Bug: b/21499566
Change-Id: I9fa33f124e0f617782709597761be75a20797d4b
2015-06-15 16:12:02 -07:00