3247 Commits

Author SHA1 Message Date
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
031b947766 am 348988c5: Merge "Fix permissions on TelephonyManager" into mnc-dev
* commit '348988c5704a5a6eb6aec093e295c2d9f00ee33c':
  Fix permissions on TelephonyManager
2015-07-09 03:34:47 +00:00
Robert Greenwalt
348988c570 Merge "Fix permissions on TelephonyManager" into mnc-dev 2015-07-09 03:19:26 +00:00
Robert Greenwalt
8e7b195474 am 8b0f3873: Merge "Add/Fix Permission check on SubscriptionManager." into mnc-dev
* commit '8b0f3873a04103f6886fdc2fb79b9a3963567720':
  Add/Fix Permission check on SubscriptionManager.
2015-07-08 21:41:06 +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
Casey Ho
766f3108e0 am becddea6: Merge "Unhide signal strength constants used by getLevel." into mnc-dev
* commit 'becddea63e2c4b414e5eac2841d3516c4e89bb24':
  Unhide signal strength constants used by getLevel.
2015-07-06 22:31:16 +00: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
Shriram Ganesh
ddf570e822 MWI,phantom call,Suppl services, error codes
1. IMS MWI Feature
- Add new API to update waiting
voice message count, for UI
propagation based on RFC 3842

2. phantom call support

Supplementary services

3. IMS : Incoming Call Barring
- Modified existing API to support
   request like registration,activation,
   deactivation,erasure,interogation.

4.Unsol supplementary service notification
- send unsol supplementary notification to UI
- add call history info

Miscellaneous
5. Ims: Originate conference call in DIALING state

6. IMS: Addition of Extras to ImsCallProfile
- Add EXTRA string definitions to ImsCallProfile

7. IMS: Definition of error code
- answered elsewhere
- FDN call failure

8.
- Propagate IMS supplementary services to telephony framework
- Introduce call forwarding history info.

Bug: 21725750
Squash of 2 earlier CLs:
         Change-Id: I52a64e9a5df3479189f62921a01655a50fb386fc
         Change-Id: Idc3a433785e84a3d683cbcfc7fb90f0b89dced12

Change-Id: I428ce3c6a043e43b86dea41622e0a828d8b45e53
2015-07-06 11:28:19 -07:00
Etan Cohen
b304fc0aaf Rename VoLTE/WFC enable API to available - add VT available API.
Renamed API to use consistent semantics: available refers to the current
state of the service rather then whether feature is enabled by device/carrier/
user.

Added VT API to match VoLTE/WFC.

Change-Id: Ifb31f123db77e731e75a982b8594168f59a289e7
2015-07-06 11:28:18 -07: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
Shriram Ganesh
8d8c51f19e IMS: Initialize audio quality with NONE instead of AMR_WB.
Initial value of audio quality needs to be set to NONE to avoid
wrong quality value during MO call setup.

Bug: 22122298
Change-Id: I06173abe38c9be1e9499c8c0958f985c45709f1c
2015-06-29 08:49:10 -07:00
Anil Muthineni
7a5cc8b3de am 627bd99e: Merge "Write size of operators in writeToParcel()" into mnc-dev
* commit '627bd99ef617cfee67d44d186fa5d72380a6a4cf':
  Write size of operators in writeToParcel()
2015-06-26 23:53:52 +00: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
1bab7bb35d am aaf280b6: Merge "Deprecate TelephonyManager.getNeighboringCellInfo()" into mnc-dev
* commit 'aaf280b6b17ceaabc0b54fbc8479c14dfb4f6e64':
  Deprecate TelephonyManager.getNeighboringCellInfo()
2015-06-26 22:01:14 +00:00
Nathan Harold
748e9d5979 Deprecate TelephonyManager.getNeighboringCellInfo()
bug: 22121990
Change-Id: Id8f9d080fdd1e2993b414a5304424238396b6fd4
2015-06-26 12:20:58 -07:00
Chris Manton
5b426a04ee am 60061c26: Merge "Carrier Config API KEY_FORCE_HOME_NETWORK_BOOL" into mnc-dev
* commit '60061c26a24f654f5a6ac599d85c3bea14ee9aff':
  Carrier Config API KEY_FORCE_HOME_NETWORK_BOOL
2015-06-25 17:50:56 +00: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
a36a1ba58b am e5c7ca7d: Rename and add carrier config keys for volte and ims.
* commit 'e5c7ca7d792f0ecb8219c217d756080d1d4c3933':
  Rename and add carrier config keys for volte and ims.
2015-06-24 23:26:01 +00: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
Tyler Gunn
86d105ee09 Merge "IMS: Supplementary services" into mnc-vt-dev 2015-06-24 20:58:50 +00:00
Tyler Gunn
6901c3b6d7 IMS: Supplementary services
- Propagate IMS supplementary services to telephony framework
- Introduce call forwarding history info.

Bug: 21725750
Change-Id: Idc3a433785e84a3d683cbcfc7fb90f0b89dced12
2015-06-24 13:49:44 -07:00
Nancy Chen
e9d1d5afe5 am 8e0aab7d: Merge "Add public action to open voicemail settings." into mnc-dev
* commit '8e0aab7dd50b408ced8fdfda05f361be716ce128':
  Add public action to open voicemail settings.
2015-06-24 17:44:47 +00: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
e92393ab9a am 0c5c8570: Merge "Return reasonable phone type if no sim inserted." into mnc-dev
* commit '0c5c8570dc8fe823f2faf69d653e1b441b0fcddc':
  Return reasonable phone type if no sim inserted.
2015-06-23 00:45:05 +00: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
87318900a7 am c242d9d2: Merge "Adding hidden TM calls to scan/select cell networks." into mnc-dev
* commit 'c242d9d2aeececeda4c980dfa119b3414d818424':
  Adding hidden TM calls to scan/select cell networks.
2015-06-22 18:29:41 +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
477d1d89c0 am 8f87c824: Merge "Fix spelling of a config variable." into mnc-dev
* commit '8f87c8249b33feff0ac414576b90e5c70b5661be':
  Fix spelling of a config variable.
2015-06-19 23:57:06 +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
60f04b28b5 am 5385f5a0: Merge "Add comments to carrierconfigmanager for required permission." into mnc-dev
* commit '5385f5a0b8b22a06a3befd5b660676dc04336a5f':
  Add comments to carrierconfigmanager for required permission.
2015-06-19 20:36:37 +00:00
Jonathan Basseri
c74b2cea5b am 48fb9d15: Merge "Migrate \'csp_enabled\' to CarrierConfigManager." into mnc-dev
* commit '48fb9d15ecaceedd5477b7b780f22b7663ca103f':
  Migrate 'csp_enabled' to CarrierConfigManager.
2015-06-19 20:36:32 +00: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
b88adc815e am cb8bb390: Merge "Add VVM carrier config to public API." into mnc-dev
* commit 'cb8bb3900178c126b9f101e84edd07bb6b489637':
  Add VVM carrier config to public API.
2015-06-19 06:29:41 +00:00