3 years agoAdd API to let carrier app send SMS without auto persisting.
Ji Yang [Wed, 22 Jul 2015 22:27:12 +0000]
Add API to let carrier app send SMS without auto persisting.

Bug: 22773702
Change-Id: Ib126e79b0d1e2f9a9a44afe2b3f1895c150bd86b

3 years agoMerge "Do not update RAF for invalid sub IDs." into mnc-dev
Etan Cohen [Tue, 21 Jul 2015 21:58:58 +0000]
Merge "Do not update RAF for invalid sub IDs." into mnc-dev

3 years agoLog any Orphaned NetworkRequests.
Robert Greenwalt [Tue, 21 Jul 2015 20:45:23 +0000]
Log any Orphaned NetworkRequests.

Try to figure out why the ApnContext isn't told the request is dead.

bug:22632129
Change-Id: I24a592e6a45c4476fabff50d8c640fb6ec6af6e1

3 years agoDo not update RAF for invalid sub IDs.
Etan Cohen [Tue, 21 Jul 2015 19:50:49 +0000]
Do not update RAF for invalid sub IDs.

Bug: 22076899
Change-Id: I44c6744d6464d13a0803a6480ee72f07bda7c087

3 years agoMerge "Prevent preciseCallStateChanged from firing for media capabilities change...
Tyler Gunn [Mon, 20 Jul 2015 21:38:21 +0000]
Merge "Prevent preciseCallStateChanged from firing for media capabilities change." into mnc-dev

3 years agoMerge "Support optional modem restart on certain errors." into mnc-dev
Robert Greenwalt [Mon, 20 Jul 2015 21:10:39 +0000]
Merge "Support optional modem restart on certain errors." into mnc-dev

3 years agoPrevent preciseCallStateChanged from firing for media capabilities change.
Tyler Gunn [Mon, 20 Jul 2015 20:49:53 +0000]
Prevent preciseCallStateChanged from firing for media capabilities change.

In processCallStateChanged, there was the potential for
"notifyPreciseCallStateChanged()" to be called, even if ignoreState was
true.  Moved the code for invoking the precise call state changed
callback into the "else" clause of the conditional.

Bug: 22564433
Change-Id: Ib2a05bd5f592005d57623812c6cd40c2bfcbf253

3 years agoam b563e820: am 5ebb8d7b: am 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am...
Tom Taylor [Fri, 17 Jul 2015 18:31:39 +0000]
am b563e820: am 5ebb8d7b: am 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit 'b563e820f028513a6f0ec301434f03141eeedba9':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 5ebb8d7b: am 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externa...
Tom Taylor [Fri, 17 Jul 2015 18:18:14 +0000]
am 5ebb8d7b: am 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '5ebb8d7b45f9f8a43087ce2da3399fb617470935':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported...
Tom Taylor [Fri, 17 Jul 2015 18:02:47 +0000]
am 9497ef73: am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '9497ef73bcac42e27f98804b3d508fea8e55ebd4':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate...
Tom Taylor [Fri, 17 Jul 2015 17:49:00 +0000]
am f7abcb0d: am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit 'f7abcb0d75304e223288f74e5f224cae07bee3e0':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam f7bd55ac: am 751a152c: am 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported...
Tom Taylor [Fri, 17 Jul 2015 17:47:38 +0000]
am f7bd55ac: am 751a152c: am 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit 'f7bd55ac36052e0e08c087a3dba98ab1b3a165db':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 751a152c: am 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported Moderate...
Tom Taylor [Fri, 17 Jul 2015 17:33:55 +0000]
am 751a152c: am 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '751a152c72794cac87d4049b221ab9b765f39506':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerab...
Tom Taylor [Fri, 17 Jul 2015 17:33:25 +0000]
am 455730f8: am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '455730f8e76ef539a9dcfdad2d38b7541a7654d4':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoMerge "Change max retry from 3 to 1." into mnc-dev
Junda Liu [Fri, 17 Jul 2015 17:24:10 +0000]
Merge "Change max retry from 3 to 1." into mnc-dev

3 years agoam 36b1a525: am 347352b5: am fb8ec484: Externally-reported Moderate severity vulnerab...
Tom Taylor [Fri, 17 Jul 2015 17:21:30 +0000]
am 36b1a525: am 347352b5: am fb8ec484: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '36b1a5253b309930bb8225c909182b44d064b38c':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in...
Tom Taylor [Fri, 17 Jul 2015 17:21:06 +0000]
am 27bc967b: am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '27bc967ba840d2e2a8941d60aef89d0cb80b1626':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerab...
Tom Taylor [Fri, 17 Jul 2015 17:19:18 +0000]
am 32deeeea: am 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '32deeeeab31cb25356686c5209318ec1c58ed359':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoChange max retry from 3 to 1.
Junda Liu [Fri, 17 Jul 2015 17:14:54 +0000]
Change max retry from 3 to 1.

Bug: b/22216437
Change-Id: Ib97d982fa918e79368ddd1d3b51a5427c10c7931

3 years agoam 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerability in...
Tom Taylor [Fri, 17 Jul 2015 17:09:26 +0000]
am 92837b8a: am 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '92837b8a9c44f6192ea4d613efa2cfe53156a9df':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can...
Tom Taylor [Fri, 17 Jul 2015 17:08:25 +0000]
am 193f193f: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '193f193f79f06784fc1cb90328c4410c6b52820e':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam 347352b5: am fb8ec484: Externally-reported Moderate severity vulnerability in...
Tom Taylor [Fri, 17 Jul 2015 17:05:54 +0000]
am 347352b5: am fb8ec484: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '347352b548a1950b65e51bbba3ea616e52bd2eab':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoSupport optional modem restart on certain errors.
Robert Greenwalt [Fri, 17 Jul 2015 17:03:45 +0000]
Support optional modem restart on certain errors.

Error counts are shared between all APNs, but fresh connect attempt
resets the counts.

bug:22455853
Change-Id: Id398a223d33d42f979b5cdc4a2bc263e92eb73cc

3 years agoam 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can...
Tom Taylor [Fri, 17 Jul 2015 16:53:38 +0000]
am 21ac5f11: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit '21ac5f1161b7554c564dd1213aef357fa4b4ca84':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

3 years agoam fb8ec484: Externally-reported Moderate severity vulnerability in SMS: Apps can...
Tom Taylor [Fri, 17 Jul 2015 16:51:46 +0000]
am fb8ec484: Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

* commit 'fb8ec484cfca6bd4f295fea70e75dad278781912':
  Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

4 years agoMerge "Add new API for acessing DB associated with Subscription." into mnc-dev
Sanket Padawe [Thu, 16 Jul 2015 05:01:06 +0000]
Merge "Add new API for acessing DB associated with Subscription." into mnc-dev

4 years agoMerge "Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change" into...
Tyler Gunn [Wed, 15 Jul 2015 22:31:43 +0000]
Merge "Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change" into mnc-dev

4 years agoFix issue #21626564: MMS should be receivied while Dozing
Dianne Hackborn [Tue, 14 Jul 2015 01:02:47 +0000]
Fix issue #21626564: MMS should be receivied while Dozing

Uses new APIs to put apps on the whitelist as needed.

Change-Id: I24bf0c00f2a7dca64590e7fc0dd6ec036e9bd2bf

4 years agoMerge "Add unregistration method for post-dial listeners." into mnc-dev
Santos Cordon [Tue, 14 Jul 2015 22:01:40 +0000]
Merge "Add unregistration method for post-dial listeners." into mnc-dev

4 years agoMerge "Add logging for telephony network requests." into mnc-dev
Robert Greenwalt [Tue, 14 Jul 2015 21:19:26 +0000]
Merge "Add logging for telephony network requests." into mnc-dev

4 years agoAdd logging for telephony network requests.
Robert Greenwalt [Wed, 8 Jul 2015 23:26:07 +0000]
Add logging for telephony network requests.

Try to track and retain what happens to requests to get to the bottom of
20731384.

bug:20731384
bug:21641873
Change-Id: Iabb01b3866c6748323a967e26c008246b29bdb17

4 years agoEnhance ImsPhoneCall/Tracker logging and fix swap on bad state change
Tyler Gunn [Tue, 14 Jul 2015 18:20:12 +0000]
Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change

ImsPhoneConnection:
- Added check in update() to ensure we skip the update if we are putting
the call into an ACTIVE state, but there is a pending request to
hold the ImsCall.  This is really a bug in the RIL; we are NOT getting
the callSessionHeld callback when putting a recently formed conference
call into the background.  Without this check, we end up detaching the
ImsPhoneConnection from the "background" ImsPhoneCall and attaching it
to the "foreground" ImsPhoneConnection, which causes a scenario where there
are multiple active calls at the same time.  I will file a bug against
the RIL to fix this missing state reporting.

ImsPhoneCallTracker:
- in switchWaitingOrHoldingAndActive check for the case where we are
holding a foreground call and reset the flag indicating we're expecting
to see a resume.  This wasn't causing the bug I was working on but I
can see how it might have undesirable effects.
- added some extra debug logging to help track down hold/resumes
- fixed some BAD logic in onCallMerged added in change ID
I94abbae37eb6773f1824c0e5c3a267d345610ada.  This code was swapping the
ImsPhoneCall references for foreground and background directly in order
to ensure that the right calls were passed in to ImsPhoneCall#merge.
The ImsPhoneCallTracker assumes the ImsPhoneCalls mForegroundCall and
mBackgroundCall will always stay the same; ImsPhoneConnections are attached
and detached from these ImsPhoneCalls, but the original references must
stay the same.  Fixed up that code to ensure it does what its supposed to
without messing up the original references.
- Added logState method which can be turned on via debug flag to periodically
dump verbose state of the calls tracked my ImsPhoneCallTracker.  I had
a hard time figuring out what was going on and this helped a lot.

ImsPhoneCall:
- Added enhanced logging when ImsPhoneConnections are moved between the
foreground, background, etc calls.  Also added knowledge of whether an
ImsPhoneCall is a foreground or background call so that logging can be made
more clear.

- After operations which change which calls are FG or BG, calling
ImsPhoneCallTracker.logState() which will log the full ImsPhoneCallTracker
state for even easier debugging (but only if the stop-ship flag is on).

Bug: 22173672
Change-Id: I704af9522a81ee036f290c7c723de4c3602229fd

4 years agoAdd new API for acessing DB associated with Subscription.
Sanket Padawe [Tue, 14 Jul 2015 18:16:56 +0000]
Add new API for acessing DB associated with Subscription.

Bug: 22360525
Change-Id: Ia51f38bab5327f77de4997cb4695959a5573048f

4 years agoAdd unregistration method for post-dial listeners.
Santos Cordon [Fri, 10 Jul 2015 23:05:59 +0000]
Add unregistration method for post-dial listeners.

Bug: 22410282
Change-Id: I6e24c83108f635542e81f05e53a4dd5a51b69141

4 years agoIMS: Do not update connection state for onCallUpdated callback.
Anju Mathapati [Mon, 8 Dec 2014 13:51:51 +0000]
IMS: Do not update connection state for onCallUpdated callback.

onCallUpdated callback is to inform updates on parameters of ImsCall
other than the call state. Updating the call state during onCallUpdated
is sometimes corrupting the connection state, especially during
hold/resume operation. Hence refactored code to not update state
of connection for call updated callback.

Change-Id: I55ed948fe3b5b03f8836b84d7952a39f97cd2a8a
Bug: 22170586

4 years agoMerge "Fix NPE in Ril when RIL_REQUEST_SIM_AUTHENTICATION returns NULL" into mnc-dev
Nathan Harold [Tue, 14 Jul 2015 00:32:27 +0000]
Merge "Fix NPE in Ril when RIL_REQUEST_SIM_AUTHENTICATION returns NULL" into mnc-dev

4 years agoFix NPE in Ril when RIL_REQUEST_SIM_AUTHENTICATION returns NULL
Nathan Harold [Mon, 13 Jul 2015 21:56:10 +0000]
Fix NPE in Ril when RIL_REQUEST_SIM_AUTHENTICATION returns NULL

bug: 22457261
Change-Id: I5aad5ffd41527652c560e934eb0e154f0e0bfdca

4 years agoMerge "Removing OrSelf check when checking for PRIVILEGED_PHONE_STATE perm." into...
Amit Mahajan [Mon, 13 Jul 2015 22:06:03 +0000]
Merge "Removing OrSelf check when checking for PRIVILEGED_PHONE_STATE perm." into mnc-dev

4 years agoMerge "Add localLog to UiccCard to record logical channel open/close." into mnc-dev
Junda Liu [Mon, 13 Jul 2015 18:06:33 +0000]
Merge "Add localLog to UiccCard to record logical channel open/close." into mnc-dev

4 years agoRemoving OrSelf check when checking for PRIVILEGED_PHONE_STATE perm.
Amit Mahajan [Sat, 11 Jul 2015 00:31:46 +0000]
Removing OrSelf check when checking for PRIVILEGED_PHONE_STATE perm.

Self check is done as part of READ_PHONE_STATE and AppOps checks.

Bug: 22376654
Change-Id: I437f9bf324950cb70bae5be76699824da5897a6f

4 years agoMerge "Fixed that phone service crashed during boot up issue." into mnc-dev
Jack Yu [Fri, 10 Jul 2015 20:49:42 +0000]
Merge "Fixed that phone service crashed during boot up issue." into mnc-dev

4 years agoExternally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS...
Tom Taylor [Fri, 10 Jul 2015 20:04:43 +0000]
Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

Bug 22314646

When android.permission.SEND_SMS_NO_CONFIRMATION was renamed to
android.permission.SEND_RESPOND_VIA_MESSAGE in JB-MR2, the necessary change
in SmsDispatcher was accidentally overlooked.

Change-Id: Ie2e3c5e365af3f6e0810e3792c9ae9c4aca0bcf7

4 years agoMerge "Enable EMERGENCY mobile connections." into mnc-dev
Robert Greenwalt [Fri, 10 Jul 2015 18:23:12 +0000]
Merge "Enable EMERGENCY mobile connections." into mnc-dev

4 years agoExternally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS...
Tom Taylor [Fri, 10 Jul 2015 18:21:34 +0000]
Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

Bug 22314646

DO NOT MERGE

When android.permission.SEND_SMS_NO_CONFIRMATION was renamed to
android.permission.SEND_RESPOND_VIA_MESSAGE in JB-MR2, the necessary change
in SmsDispatcher was accidentally overlooked.

Change-Id: I2c3aa79da8064e55cec5a786696de519c2bf0b07

4 years agoFixed that phone service crashed during boot up issue.
Jack Yu [Fri, 10 Jul 2015 18:04:11 +0000]
Fixed that phone service crashed during boot up issue.

bug: 22357173
Change-Id: I3b76a74c698e22c887b3482a3bdcbc34982ec658

4 years agoExternally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS...
Tom Taylor [Fri, 10 Jul 2015 18:00:44 +0000]
Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

Bug 22314646

When android.permission.SEND_SMS_NO_CONFIRMATION was renamed to
android.permission.SEND_RESPOND_VIA_MESSAGE in JB-MR2, the necessary change
in SmsDispatcher was accidentally overlooked.

Change-Id: I58aef2d044b8a48b1b42311a471cb112e3a258e4

4 years agoMerge "Externally-reported Moderate severity vulnerability in SMS: Apps can bypass...
Tom Taylor [Fri, 10 Jul 2015 16:06:47 +0000]
Merge "Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt" into mnc-dev

4 years agoMerge "Revert "Dont fail if modem ids are empty."" into mnc-dev
Nicholas Sauer [Fri, 10 Jul 2015 04:49:44 +0000]
Merge "Revert "Dont fail if modem ids are empty."" into mnc-dev

4 years agoEnable EMERGENCY mobile connections.
Robert Greenwalt [Thu, 9 Jul 2015 21:44:16 +0000]
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: Iafd477dbc7bda89de888a124602b21efbbaa6712

4 years agoMerge "Fix data call issue for null APN" into mnc-dev
Etan Cohen [Thu, 9 Jul 2015 21:43:52 +0000]
Merge "Fix data call issue for null APN" into mnc-dev

4 years agoFix data call issue for null APN
Sukanya Rajkhowa [Fri, 17 Oct 2014 11:44:31 +0000]
Fix data call issue for null APN

When data call is setup on null apn, data call is deactivated
immediately after being set up as Telephony is treating null APN
as provisioning APN. This is because the xml entry for
provisioning APN is empty which is matching empty APN name.

Add isEmpty check for provisioning APN xml entry.

Bug: 22305124
Change-Id: Ifbb3aaaf18926b9209aa05f8346da839178dc803

4 years agoExternally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS...
Tom Taylor [Thu, 9 Jul 2015 19:05:45 +0000]
Externally-reported Moderate severity vulnerability in SMS: Apps can bypass the SMS short code notification prompt

Bug 22314646

When android.permission.SEND_SMS_NO_CONFIRMATION was renamed to
android.permission.SEND_RESPOND_VIA_MESSAGE in JB-MR2, the necessary change
in SmsDispatcher was accidentally overlooked.

Change-Id: I84cbcaa0b7e199df04f11245d06b7fc7f02db7a0

4 years agoRevive NetworkInfo's SUSPENDED state.
Robert Greenwalt [Wed, 24 Jun 2015 21:47:57 +0000]
Revive NetworkInfo's SUSPENDED state.

This got lost in the multinetwork work for L.  It means
that if telephony stops having the ability to pass packets for a while
the rest of the platform doesn't know.

Telephony enters the suspended state if it enters a telephony call
while using certain radio access technologies, or if it switches to
one of those RATs while in a call.  It also can enter this state if
it temporarily loses contact with the network - the modem will
not report the loss of the data call for an indeterminant time in
the hope that regaining the network will restore the connection
without harm to any ongoing ip layer interactions.  For example
passing through a tunnel or taking an elevator trip may use this
mechanism.

bug: 19637156
Change-Id: I71d64d02088771df5d057eac8e8eba3785357e02

4 years agoMerge "Don't toggle app state for updated system apps." into mnc-dev
Jeff Davidson [Thu, 9 Jul 2015 01:10:01 +0000]
Merge "Don't toggle app state for updated system apps." into mnc-dev

4 years agoMerge "IMS: Update data rat in IMS phone service state." into mnc-dev
Etan Cohen [Wed, 8 Jul 2015 23:44:18 +0000]
Merge "IMS: Update data rat in IMS phone service state." into mnc-dev

4 years agoMerge "Add/Fix Permission check on SubscriptionManager." into mnc-dev
Robert Greenwalt [Wed, 8 Jul 2015 21:26:15 +0000]
Merge "Add/Fix Permission check on SubscriptionManager." into mnc-dev

4 years agoIMS: Update data rat in IMS phone service state.
Shriram Ganesh [Mon, 9 Mar 2015 15:17:44 +0000]
IMS: Update data rat in IMS phone service state.

Keep the data rat information in Ims phone servicestate updated
with that from default phone.
This makes sure applications can query correct data RAT when
default phone is not registered to voice and ims is in service.

Bug: 22123213
Change-Id: I8161a43efe9408572d41d7a0a320972873a7e60c

4 years agoDon't toggle app state for updated system apps.
Jeff Davidson [Tue, 7 Jul 2015 20:29:07 +0000]
Don't toggle app state for updated system apps.

The default carrier app logic to disable/enable apps depending on the
SIM state should only apply to the copy of the app on /system. Once
the app has been updated via /data, we should leave the enabled
setting as the default (though we should still grant carrier
privileges as needed in this case).

Otherwise we may unexpectedly disable a previously enabled app if it
is updated and then the SIM state changes or device reboots at a time
when the SIM isn't loaded.

Bug: 22321187
Change-Id: Ia7281c5a174bd32fc4d63375603ace0b29794894

4 years agoAdd/Fix Permission check on SubscriptionManager.
Robert Greenwalt [Wed, 1 Jul 2015 21:36:29 +0000]
Add/Fix Permission check on SubscriptionManager.

Things that are modifying should check the modify permission.

bug: 19259681
Change-Id: I93968bccedc673171ddf0d27ffe664a698b8fcb4

4 years agoMerge "Change conference connect time to ignore undefined connect times." into mnc-dev
Anthony Lee [Tue, 7 Jul 2015 20:29:26 +0000]
Merge "Change conference connect time to ignore undefined connect times." into mnc-dev

4 years agoDon't kill carrier app when enabling it.
Jeff Davidson [Tue, 7 Jul 2015 02:34:37 +0000]
Don't kill carrier app when enabling it.

There's no reason to do this, and if the app is running it will cause
it to suddenly close despite already being enabled.

Bug: 22306627
Change-Id: Ic37ad74f92d50d49b329b8fb70ea171ff447091b

4 years agoAdd sort parameter to query apns
Sungmin Choi [Sun, 28 Jun 2015 06:00:28 +0000]
Add sort parameter to query apns

Sometimes, result of query apns is not sorted by _id.
As a result, device tries to conntect data using unwilled apn.
For example, when user inserts 45005 SIM, create all apnlist as the followings:
1) L version
    _id  name
    2516 SKT LTE INTERNET
    2517 SKT 3G INTERNET
    2518 SKT LTE Roaming
    2519 SKT 3G Roaming
2) M version
    _id  name
    2518 SKT LTE Roaming
    2516 SKT LTE INTERNET
    2519 SKT 3G Roaming
    2517 SKT 3G INTERNET

Device tries to connect data using "Roaming apn", so user can't use data.
To fix it, add sort parameter to query apans.

Related-Bug: 22159434
Change-Id: I5743813236c8143fb83800b9ed0b2a98b33d6a51

4 years agoAdd getPreferredApn() in buildWaitingApns()
Sungmin Choi [Tue, 30 Jun 2015 10:50:25 +0000]
Add getPreferredApn() in buildWaitingApns()

Now, only createAllApnList() calls getPreferredApn().
Unfortunately, in this time, getSubId() may not be proper value.
So getPreferredApn() could not get value which we want/set as preferred apn.
As a result, preferred apn is null and wrong apn info can be sent to modem
and be used by SETUP_DATA_CALL procedure.
To resolve this, just add getPreferredApn() in buildWaitingApns().

Bug: 22159434
Change-Id: Iee92325aa91c5c470328055746c321065a9829d4

4 years agoAdd localLog to UiccCard to record logical channel open/close.
Junda Liu [Tue, 30 Jun 2015 22:36:22 +0000]
Add localLog to UiccCard to record logical channel open/close.

Bug: b/22199321
Change-Id: I7eb2d0c112713ab1946c1be4d230f8b6895807ac

4 years agoMerge "Allow default SMS app to get self phone number" into mnc-dev
Makoto Onuki [Wed, 1 Jul 2015 18:06:37 +0000]
Merge "Allow default SMS app to get self phone number" into mnc-dev

4 years agoMerge "Log reduction" into mnc-dev
Robert Greenwalt [Wed, 1 Jul 2015 17:36:58 +0000]
Merge "Log reduction" into mnc-dev

4 years agoLog reduction
Robert Greenwalt [Tue, 30 Jun 2015 23:26:05 +0000]
Log reduction

Found all this while checking out 21957591.  My work there was
a bust, but don't want to lose this logging cleanup.

bug: 22225815
Change-Id: I7a3e932e06d035066d4adbc10c99ecf2a20be5fd

4 years agoam 5c91dba4: (-s ours) am 9e71d2a2: am 5a22d066: am 86e7ef61: am e810a84d: am 7213edf...
Amit Mahajan [Wed, 1 Jul 2015 17:13:06 +0000]
am 5c91dba4: (-s ours) am 9e71d2a2: am 5a22d066: am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '5c91dba4675ed1f5698472f2a9ad6dbbcba0c49d':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 9e71d2a2: am 5a22d066: am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s...
Amit Mahajan [Tue, 30 Jun 2015 21:55:10 +0000]
am 9e71d2a2: am 5a22d066: am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '9e71d2a2a5254cd1507fd65e254bbf9e38e76003':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 5a22d066: am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bb...
Amit Mahajan [Tue, 30 Jun 2015 21:28:56 +0000]
am 5a22d066: am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '5a22d06688819a1d620a8d9dee031f25c7bd6419':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT...
Amit Mahajan [Tue, 30 Jun 2015 20:11:50 +0000]
am 86e7ef61: am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '86e7ef610a48196e7f3aeecb53b69fd94f1e59be':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change...
Amit Mahajan [Tue, 30 Jun 2015 20:00:07 +0000]
am e810a84d: am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit 'e810a84d8770950fa54c50f609d684068c3a9b47':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMI...
Amit Mahajan [Tue, 30 Jun 2015 19:45:09 +0000]
am 7213edfe: am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '7213edfe7bd88608cd31d9d5ecadd649166bad28':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for...
Amit Mahajan [Tue, 30 Jun 2015 18:21:54 +0000]
am b10c73b1: (-s ours) am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit 'b10c73b18ecc62ea17c56559260f674add348154':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoMerge "IMS: Update name, number and presentation values from ImsCall." into mnc-dev
Tyler Gunn [Tue, 30 Jun 2015 17:16:26 +0000]
Merge "IMS: Update name, number and presentation values from ImsCall." into mnc-dev

4 years agoIMS: Update name, number and presentation values from ImsCall.
Shriram Ganesh [Sat, 27 Jun 2015 00:24:35 +0000]
IMS: Update name, number and presentation values from ImsCall.

Update the name, number and presentation fields of ImsPhoneConnection
on every ImsCall update.

Bug: 22123241
Change-Id: I2cab669f7fe41f1bce355672622ac03259ff3f16

4 years agoMerge "Grant default permissons to the default SMS, Phone, Browser app." into mnc-dev
Svet Ganov [Tue, 30 Jun 2015 02:42:59 +0000]
Merge "Grant default permissons to the default SMS, Phone, Browser app." into mnc-dev

4 years agoGrant default permissons to the default SMS, Phone, Browser app.
Svet Ganov [Mon, 29 Jun 2015 18:54:58 +0000]
Grant default permissons to the default SMS, Phone, Browser app.

bug:22104986

Change-Id: Idcbe85c43f995bdf37e7291c9384eb181560872d

4 years agoMerge "IMS: Don't create IMS phone when switch to SIP Phone" into mnc-dev
Tyler Gunn [Mon, 29 Jun 2015 23:27:46 +0000]
Merge "IMS: Don't create IMS phone when switch to SIP Phone" into mnc-dev

4 years agoIMS: Don't create IMS phone when switch to SIP Phone
Shriram Ganesh [Thu, 7 May 2015 05:22:19 +0000]
IMS: Don't create IMS phone when switch to SIP Phone

SIP Phone creates IMS phone while phone switch to SIP
phone when dial an SIP call.
Don't register receiver for Ims service state change
and SRVCC state change in case of SIP phone.
This way creatation of duplicate IMS phone will be
prevented when switch to SIP phone.

Bug: 22126128
Change-Id: I1206aaab703fec70107554352c2728e7dd42578e

4 years agoChange conference connect time to ignore undefined connect times.
Tyler Gunn [Mon, 29 Jun 2015 22:33:01 +0000]
Change conference connect time to ignore undefined connect times.

- The existing code to get the earliest connect time for a conference
could potentially return 0 (i.e. undefined).  Although I've not run into
this in my own testing, it is theoretically possible.
I suspect the reason that the connect time was being reset when starting
a conference is that one of the ImsCalls must be returning a connect time
of zero, which in Telecom is treated as "unspecified" (in other words,
no connect time specified, so use now).

Bug: 22089306
Change-Id: I79be11b67767650455600befbecf841ff8b87c09

4 years agoMerge "Added FDN handling in AdnRecordLoader class." into mnc-dev
Jack Yu [Mon, 29 Jun 2015 22:32:08 +0000]
Merge "Added FDN handling in AdnRecordLoader class." into mnc-dev

4 years agoAllow default SMS app to get self phone number
Makoto Onuki [Mon, 29 Jun 2015 21:48:49 +0000]
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: Iee616fa54e4c28e1bf6b17dbec01db2e1fe34a7e

4 years agoAdded FDN handling in AdnRecordLoader class.
Jack Yu [Mon, 29 Jun 2015 21:05:05 +0000]
Added FDN handling in AdnRecordLoader class.

bug: 21851547
Change-Id: Ibfc12a872a7643013ff207641f2254af3d24b3cd

4 years agoMerge "Change the order of permission checks for READ_PHONE_STATE." into mnc-dev
Amit Mahajan [Mon, 29 Jun 2015 18:02:03 +0000]
Merge "Change the order of permission checks for READ_PHONE_STATE." into mnc-dev

4 years agoChange the order of permission checks for READ_PHONE_STATE.
Amit Mahajan [Mon, 29 Jun 2015 17:38:39 +0000]
Change the order of permission checks for READ_PHONE_STATE.

This is needed for 2 reasons:
1. If called as self, OP_READ_PHONE_STATE check should not be done.
2. If caller does not have permission, exception should be thrown
for READ_PHONE_STATE.

Bug: 22128902
Change-Id: Ibd4de0c5ba314700b6b3d7a59f502d2a21b7d86f

4 years agoam 8401ac9b: am fc3bbe64: am e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm
Amit Mahajan [Sat, 27 Jun 2015 17:48:07 +0000]
am 8401ac9b: am fc3bbe64: am e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm

* commit '8401ac9bc8096d74978966335deb8994db3e39db':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam fc3bbe64: am e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm
Amit Mahajan [Sat, 27 Jun 2015 17:38:00 +0000]
am fc3bbe64: am e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm

* commit 'fc3bbe64bb7fb93e7337a8a58fa549c9e37cce98':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm
Amit Mahajan [Sat, 27 Jun 2015 17:13:42 +0000]
am e284a0ce: am bb3c04f7: Merge commit \'59982e0d\' into mm

* commit 'e284a0ce1eafd540f72d83e914efe68d49850aea':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam bb3c04f7: Merge commit \'59982e0d\' into mm
Amit Mahajan [Sat, 27 Jun 2015 16:58:49 +0000]
am bb3c04f7: Merge commit \'59982e0d\' into mm

* commit 'bb3c04f7570f12d0dc9575eaca9592a431a462a3':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoMerge commit '59982e0d' into mm
Amit Mahajan [Sat, 27 Jun 2015 16:39:59 +0000]
Merge commit '59982e0d' into mm

4 years agoam 7e412ba0: (-s ours) am ddd73ee6: am 27e8390d: am 796b9a92: DO NOT MERGE Change...
Amit Mahajan [Fri, 26 Jun 2015 23:16:22 +0000]
am 7e412ba0: (-s ours) am ddd73ee6: am 27e8390d: am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '7e412ba0e29942f7843e05208c5c86161f649631':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam ddd73ee6: am 27e8390d: am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION...
Amit Mahajan [Fri, 26 Jun 2015 22:55:51 +0000]
am ddd73ee6: am 27e8390d: am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit 'ddd73ee628e5e898a5257b3768f5f17bea8d196e':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.
Amit Mahajan [Fri, 26 Jun 2015 22:32:00 +0000]
am afb60bbc: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit 'afb60bbc52f725b9e0d95664d706995e2c75bd43':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 27e8390d: am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related...
Amit Mahajan [Fri, 26 Jun 2015 22:23:51 +0000]
am 27e8390d: am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '27e8390dc902099e975e16dc66190c122a50d88f':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 535355c9: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.
Amit Mahajan [Fri, 26 Jun 2015 22:09:03 +0000]
am 535355c9: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '535355c94efadb73fe7620adbdecd54927bb1399':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoam 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.
Amit Mahajan [Fri, 26 Jun 2015 22:07:45 +0000]
am 796b9a92: DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

* commit '796b9a929ec2a92614b3ebb5a7ad715d5c5eb1cc':
  DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

4 years agoMerge "Change to set pref network type on APM off if SIM is already loaded." into...
Amit Mahajan [Fri, 26 Jun 2015 17:54:50 +0000]
Merge "Change to set pref network type on APM off if SIM is already loaded." into mnc-dev

4 years agoMerge "Modify telephony permissions to use either READ_PHONE_STATE or READ_PRIVILEDGE...
Etan Cohen [Fri, 26 Jun 2015 17:49:25 +0000]
Merge "Modify telephony permissions to use either READ_PHONE_STATE or READ_PRIVILEDGED_PHONE_STATE" into mnc-dev

4 years agoDO NOT MERGE Change to add STK_PERMISSION for stk related commands.
Amit Mahajan [Thu, 11 Jun 2015 00:04:17 +0000]
DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

And make stk commands protected.

Bug: 21697171
Change-Id: I7649c7341428194963ac74e9ae622dfa76ea738b