3563 Commits

Author SHA1 Message Date
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
fionaxu
a7ab821aa1 add pii support for Rlog
bug: 30368127
Change-Id: I18b7be483ce3f86f47dfcafa9d84fcb9b8724c08
2016-07-25 15:20:51 -07:00
Brad Ebinger
dee7dffb5d Merge "Add CarrierConfig to remove hold during Ims Calls" into nyc-mr1-dev 2016-07-21 18:40:43 +00:00
Ye Wen
406a41bed8 Add carrier config for close connection after MMS request
b/29558615

Change-Id: I24d922f33626b4a65c267dc2d132b5510e357c0f
2016-07-20 11:02:05 -07:00
TreeHugger Robot
338566df68 Merge "Made severe and extreme alert configuration dependency configurable" into nyc-mr1-dev 2016-07-20 00:57:52 +00:00
Youhan Wang
d71c64f715 Merge "Add getCdmaPrlVersion()." into nyc-mr1-dev 2016-07-19 22:59:13 +00:00
Jack Yu
e79419847c Made severe and extreme alert configuration dependency configurable
Before when extreme alert is disabled, severe alert will be disabled
by default because we assume users won't be interested in severe
alert if he is even not interested in extreme (higher level) alert.

Now carriers are allowed to turn this feature off by carrier config.

bug: 29369591
Change-Id: I3eb8a0c3e2df420ea75a77ec01cc447013434219
2016-07-19 15:20:06 -07:00
Brad Ebinger
c8601013d5 Add CarrierConfig to remove hold during Ims Calls
Adds a Carrier Config key to specify whether an IMS call supports
holding. If not, the CAPABILITY_HOLD and CAPABILITY_SUPPORT_HOLD are
not added to the Connection.

Bug: 30195356
Change-Id: I9b16b385a2b90118453d484be5af4f173b199ab1
2016-07-19 14:09:23 -07:00
Hall Liu
7c3c28b6d9 Add carrier config keys for disabling HD icon
Add keys for whether a wifi call can be HD and whether a video call can
be HD.

Bug: 30013801
Change-Id: I36ab3647a96e5dbd217cff29030d3ac7a2e86f56
2016-07-19 11:18:49 -07:00
Youhan Wang
4eb5678ed8 Add getCdmaPrlVersion().
Bug:27612001
Change-Id: Icce9e99d360e30268d41bc063eeefc7484627df6
2016-07-19 10:21:15 -07:00
Vineeta Srivastava
a5b923bdd7 Merge "Add carrier config to report IMEI on CDMA phone." into nyc-mr1-dev 2016-07-15 19:44:45 +00:00
Junda Liu
276f4d648b Add carrier config to report IMEI on CDMA phone.
Bug: b/29340579
Change-Id: I3cac49af4b173f971b8153c00227141378f32b43
2016-07-15 12:04:24 -07:00
Pankaj Kanwar
9e73d82336 Merge "Add alternative EXTRA_CALL_RAT_TYPE definition for noncompliant modems." into nyc-mr1-dev 2016-07-15 15:10:27 +00:00
Tyler Gunn
853d8f68f9 Add alternative EXTRA_CALL_RAT_TYPE definition for noncompliant modems.
Some modems use a lowercase version of this extra, which is not correct.
Adding an alternate definition so ImsCall can still determine the radio
type.

Bug: 28933314
Change-Id: I61d13a2aa447877e1c89c3ae474a8614c29492a1
2016-07-13 17:25:37 -07:00
Jack Yu
8781b68e2b Disable VT when users turn off data or hit data limit
Disable VT when users turn off data or hit data limit. If
there are ongoing VT calls, we'll need to downgrade them
to VoLTE calls.

bug: 27316521
Change-Id: I89fe42f6cf6c419c21c4f2006e9cb43cf7e13503
2016-07-13 16:32:25 -07:00
Tyler Gunn
c96b5e0873 Finalize MEP functionality.
1) Finish plumbing of PULLING_CALL state.
2) Add new disconnect cause used when maximum number of calls across
all devices has been reached.
3) Add PII mask for toString of ImsExternalCallState.

Bug: 29522023
Change-Id: I78a0a9f3c3d846cfc58a1c5bcc6f105027602cbc
2016-07-11 10:33:37 -07:00
Tyler Gunn
3cc6935719 Merge "Add carrier config for WFC promo mode." into nyc-mr1-dev 2016-07-11 15:04:30 +00:00
Hall Liu
7e10bcffc5 Merge "Rename disable add call extra" into nyc-mr1-dev 2016-07-09 01:03:20 +00:00
Hall Liu
ee6e86b2bc Rename disable add call extra
Used to be DISABLE_ADD_CALL_DURING_VIDEO_CALL, now just
DISABLE_ADD_CALL. The meaning has also changed -- having the extra set
means that adding calls should be disabled no matter what.

Bug: 29047863
Change-Id: Icd8966492b264a9c64dc4880080a706032f0759c
2016-07-08 15:14:42 -07:00
Tyler Gunn
c3e6c93431 Add carrier config for WFC promo mode.
Adding new carrier config, defaulted to false, which allows a carrier to
promote the use of WFC when the device is connected to WIFI and WIFI
calling is disabled.

Bug: 27970317
Change-Id: I4904b7f006bae9f834816c1964025acf36b4ba84
2016-07-07 10:11:14 -07:00
Tyler Gunn
0babe967be Merge "Telephony multi-endpoint disconnect causes." into nyc-mr1-dev 2016-07-01 20:23:16 +00:00
Jack Yu
b6587eac06 Added a virtual interface for Video Telephony call usage counting
1. Added a virtual VT interface.
2. Qeury VT usage from telephony service.

bug: 20888836
Change-Id: I3df0c22922f8394554230b53f8ae091e17c95595
2016-06-29 11:54:56 -07:00
Hall Liu
10208661cd Add disable add call during video call extra and carrier config key
Bug: 29047863

Change-Id: I977041ec72968bdccc69a706e27dd4b5ec336ba7
2016-06-27 17:19:59 -07:00
Tyler Gunn
780648be53 Merge "Add onConferenceSupportedChanged callback, carrier config." into nyc-mr1-dev 2016-06-27 21:35:49 +00:00
Sanket Padawe
7f89016579 Fix documentation of getTelephonyHistogram() api.
Bug: 29760459
Change-Id: Ib7c4df81026331f88f6a8776c0042abf4f32c620
2016-06-27 11:57:01 -07:00
Tyler Gunn
7d633d3337 Add onConferenceSupportedChanged callback, carrier config.
Used to inform listeners when a connection can or cannot be part of a
conference.  Used to inform the conference controller so that it can
recalculate the conferencable connections.

Adding carrier config for carrier requirement.

Bug: 29059073
Change-Id: Iab028fd44d87c8dc2bbbe8bba7ba9ccdc223fe51
2016-06-27 10:49:04 -07:00
Tyler Gunn
4b6614e576 Add support for dropping fg video call on answer of audio call.
Adding two new carrier config options:
1. treat_downgraded_video_calls_as_video_calls_bool - when there is an ongoing
call which was previously a video call (or is currently video call), some
carriers require that this is treated as if it is a video call for
telephony logic such as in (2).
2. drop_video_call_when_answering_audio_call_bool - if the user is in an
active video call (see (1)) over wifi, and an incoming audio call comes in,
when this carrier config option is "TRUE", the video call will be dropped
when the audio call is answered.

Adding new connection extra to indicate to the dialer app that answering
a ringing call will cause the current active video call to drop.

Bug: 29275420
Change-Id: Ied5dbabc8ff09045ba41c5eba2136adad10db80e
2016-06-23 12:48:43 -07:00
Ajay Nambi
7965fa41c3 Add support for LTE CarrierAgregation
Note this may be redesigned in O to better handle the
various bitrate/channel combinations in a sane way.

bug:27360321
Change-Id: If6ffbd02e3a7f170cc041747e32bb624234c3e09
2016-06-23 11:19:03 -07:00
Chris Manton
95a6c899d6 Add global settings for cell radio state
Provide persistable state for cell radio
to handle airplane mode similar to any
other radio in the system.

Change-Id: I87398fe84de3f6a10b0e1002e9e5bf7e61f9441f
2016-06-22 16:44:53 -07:00
Robert Greenwalt
60551b6837 Add a Carrier-config specific ratcheter of RATs.
Only reports transitions to higher RATs within a given family.
Reset when we move to a new cell.
Avoids costly propogation of RAT flapping within the family,
for example every outgoing data pops us into a higher RAT and
idle time pops us back down.

bug:27360321
Change-Id: I549d79c1c74325981bee284cef452bd096184d86
2016-06-22 11:27:42 -07:00
Sanket Padawe
4652826d71 Unhide Network types in TelephonyManager
Bug: 29493935
Change-Id: Ib1bef4a68a962b0f473e07415d46ecff6080ea71
2016-06-20 12:40:07 -07:00
Sanket Padawe
ffaec89277 Merge "Modify TelephonyHistogram.java functions." into nyc-mr1-dev 2016-06-17 17:24:14 +00:00
TreeHugger Robot
3f258857b5 Merge "Allow the phone process to hide outbound text SMS" into nyc-mr1-dev 2016-06-16 22:31:45 +00:00
Sanket Padawe
0680f73f3d Modify TelephonyHistogram.java functions.
+ Update getBucketEndPoints & getBucketCounters to return values even when
 sampleCount < 10.

Bug: 28717269
Change-Id: Ie3d16d472d04f051442d22bbe0f9f63dece8cc46
2016-06-15 15:59:25 -07:00
Ta-wei Yen
1ecda97bdd Allow the phone process to hide outbound text SMS
Bug: 29095322
Change-Id: Ic6ce8aa18450815e91e8d819439b10ccc186fec7
2016-06-15 13:22:32 -07:00
qingxi
de9fe3597d Merge \"Add a key for setting carrier\'s CDMA roaming mode\" into nyc-dev
am: 130db7715a

Change-Id: I3385fe2660bf9da3f13ef90f4b4b17a8ad0b64ad
2016-06-14 17:17:18 +00:00
qingxi
247e7f4dca Add a key for setting carrier's CDMA roaming mode
Change-Id: If092f0b23dc7e320c27e4231605756e990949d15
bug: 28836467
2016-06-13 13:31:06 -07:00
Tyler Gunn
2a3f997b02 Telephony multi-endpoint disconnect causes.
A few disconnect cause mappings were missing for the multi-endpoint
disconnect causes.  Adding them here.

Bug: 29236416
Change-Id: I669bd72290c0e823c54eb6062ebd658743882852
2016-06-09 08:25:32 -07:00
Robert Greenwalt
eb17ccb608 Clean up PCO plumbing.
There's more data that needs to make it out to the carrier app.
Add the extras and correct some (it's a byte array, not an int, etc).

bug:28567303
Change-Id: I97ed41d9329ccc14851b8e171e8fa07919c8e38b
2016-06-08 20:25:39 -07:00
Sanket Padawe
2e9b43efd5 Merge "Fix bug while writing data to parcel in TelephonyHistogram.java" into nyc-mr1-dev 2016-06-07 20:52:59 +00:00
Sanket Padawe
b9f0053b0c Fix bug while writing data to parcel in TelephonyHistogram.java
Bug: 29117186
Change-Id: Ic694adc3323062e90c0e6586ea31e7691036ffcd
2016-06-06 15:49:42 -07:00
Stuart Scott
9abc2735fa Add carrier config key for carrier setup app.
bug:28374700
bug:28374253
Change-Id: Icf56d4d2a89e32a062f3b8cc624f17e06c994599
2016-06-06 10:42:18 -07:00
Chen Xu
ba3428f01b Merge "cold sim clean up" into nyc-mr1-dev 2016-06-04 05:48:47 +00:00
fionaxu
1bf6ec2f86 cold sim clean up
- add a new field: provisioningNotificationEnabled from NetworkMisc. set
  to false if we want to hide "sign in" notification and placed
  carrier-specific notification instead. it is set on connect, once set,
  it is carrier-app's responsibility to post new UI to users
- rework on the interaction between carrier app and framework
- code cleanup
- unit test support

Bug: 28567303
Change-Id: Ic84db7ffbb920d15344717f104496d3cb82e1a85
2016-06-03 11:45:12 -07:00
Robert Greenwalt
6a5c9560a3 Merge "Add support for UNSOL PCO Data." into nyc-mr1-dev 2016-06-03 16:38:58 +00:00
Sanket Padawe
a7f74b1d43 Merge commit 'b68601d247ef557fd3fd7e1cf6dcbe35030d1532' into manual_merge_b68601d
Change-Id: I38ab50f3cf7a0fa4ca71a647021975fb9b3eb968
2016-06-02 17:20:08 -07:00
Robert Greenwalt
37409c5747 Add support for UNSOL PCO Data.
PCO is a container in data-call responses with a range
of optional fields devoted to carrier-proprietary signalling.
This change includes a class to contain this opaque info on
its way to carrier apps.

bug:28961371
bug:28567303
Change-Id: Ibfc304800bb3d5b8706d56c08400c1d0b4453a55
2016-06-02 15:21:59 -07:00
Sanket Padawe
49b204264e Add carrier config variables for overriding carrier name from carrierconf.
Bug: 27718118
Change-Id: Ie62dd3dc52f0977a2b05ae8f0ba4898c80174658
2016-06-01 12:17:23 -07:00
Jonathan Basseri
04c35e78db resolve merge conflicts of 4c04097 to nyc-mr1-dev
Change-Id: I256514588af20985108f72a5e204811904f87c9c
2016-05-26 11:41:17 -07:00