History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
82e8da62fe3f83f29d834636b8da5ce6803204e3 21-Mar-2017 Sanket Padawe <sanketpadawe@google.com> Change 'idx' to 'index' for SubscriptionManager api.

Bug: 35767068
Test: No build failure on update.
Change-Id: I56977b047512100d5fbe7eb8eb2df8aa1f773b8b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
685aaba80c3dee5daf0df761ed100221cf9f7cd4 05-Jan-2017 fionaxu <fionaxu@google.com> make STK broadcast explicit

only forward those STK broadcast to the system default app
- CAT_CMD_ACTION
- CAT_SESSION_END_ACTION
- CAT_ICC_STATUS_CHANGE
- CAT_ALPHA_NOTIFY

Bug: 33784801
Change-Id: Ia20ca030f9758dcfe5cd0de84a40a8db2d9468a1
Test: no break on existing telephony unit tests
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
f6f1da3df0fee3f8a4f22e3d3f5d58c1a15bf912 09-Sep-2016 Sanket Padawe <sanketpadawe@google.com> Remove flag from intent sent from Catservice to StkApp.

+ Remove FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT from intent sent from
CatService to StkApp as StkApp doesn't have registered receiver.

Bug: 31292260
Change-Id: Icdf688795138342b7de3b1a4cd31563351b2ccd5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
59a14aab02a9e87bd209f63654d047ab9f214afd 12-Jul-2016 Sungmin Choi <sungmin.choi@lge.com> uicc: Add FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT intent flag on CatCmdmessage

If framework get the SETUP_MENU event before geting the BOOT COMPLETE,
STK menu intent is missing. Then User cannot see the STK menu on that seen.
Thus FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT flag is added for this case.

Bug: 29881312
Change-Id: I1e91e6ee6eae15d0289a739a81e496956eb2e9a1
Signed-off-by: hoonsung.park <hoonsung.park@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
5767ae41f516736b666062091d4f1948eccca8f4 27-Sep-2013 Preeti Ahuja <preetia@codeaurora.org> STK: Image/icon related fixes

1. Handle invalid images/icons
If the coding scheme of the image is not understood, then the
loading of the icon will fail.
Send a TR with ResultCode.PRFRMD_ICON_NOT_DISPLAYED back to
the card when this happens, but continue processing the command.

2. For Idle Mode Text the icon should be loaded even when text
is not present

BUG=22637125
Change-Id: Ie4199fe9ac00f14db2d6b12604fc2c9cf54208f5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
d607cf3bc9ac43900dd4c87b86b2dbe5fabc3249 11-Jun-2015 Amit Mahajan <amitmahajan@google.com> Change to add STK_PERMISSION for stk related commands.

And make stk commands protected.

Bug: 21697171
Change-Id: I7649c7341428194963ac74e9ae622dfa76ea738b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
9c6fc6d57f76593efa64da13962ec23adfae9c7b 04-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit '72a3740' into alee_merge
0bb8799f15d25a577bc271cb6e89ba5e43c4a672 02-Oct-2013 Preeti Ahuja <preetia@codeaurora.org> Stk: Handle LAUNCH_BROWSER_ERROR Response

- ensure that we process a LAUNCH_BROWSER_ERROR response in
handleCmdResponse()

Change-Id: I7dd10a3d170fc711625615c65f73527bf1440911
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
580f4e1521cce4e36bf9c1d483a0b9a9af662999 10-Mar-2015 Shishir Agrawal <shishir@google.com> am 7dc7f596: am 4cdf0a45: Log last 20 CAT proactive commands.

* commit '7dc7f596d6ab276a8cc9e47f8bb553dbbabdaee9':
Log last 20 CAT proactive commands.
4cdf0a453fa3df6015032ec5cbb8d3253b6f81da 09-Mar-2015 Shishir Agrawal <shishir@google.com> Log last 20 CAT proactive commands.

These commands are useful for debugging issues where SIMs lock, since most
would invoke some kind of display message before locing the SIM.

Bug: 19440660
Change-Id: I5d24818e4122c875b630aead5bcc6f1f252bdd1f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
501a084583a20e5e436a3c8b4e2b5e9538ddc050 22-Jan-2015 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 7e0352da to lmp-mr1-dev-plus-aosp

Change-Id: I2e490d2f3aef8b7f42ea86105c0df98f6f9f9267
595c172c6fec75d287716ad404622db8ddb554dd 16-Jan-2015 Narayan Kamath <narayan@google.com> Track changes to locale management.

For MccTable : use persist.sys.locale to detect whether the user
has set a locale instead of persist.sys.locale.language / region.

For CatService : use Locale.getDefault, which will always return
the current locale. There's no need to rely on a system property.

bug: 17691569
Change-Id: Ic0f39067a04e4cb762848a6bd81a6ee97a392126
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
3ffd9ad50690a7bdfb3c7df56fce27fb11bf7d7f 26-Nov-2014 Preeti Ahuja <preetia@codeaurora.org> STK: Add support for idle screen notification

1. Add support for Idle Screen Available set up
event list and event download.
2. For Display Text, when screen is busy the set the
correct additional information in terminal response.

Bug: 18274506
Change-Id: I35ec31cbf3b11fc55cbc1cc2d4b6a32a099e5b5f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
cc0146c9f6800f82d0fbf2931775a8a1fd83681b 20-Nov-2014 Preeti Ahuja <preetia@codeaurora.org> STK: Remove dependency on idle screen notification

1. Remove support for Idle Screen available set up
event list and event download.
2. Remove dependency of Set Up Idle Mode Text from
idle screen notification.
3. Remove dependency of Display Text command from
idle screen notification.

Bug: 17553408
Change-Id: I9d15ae89cb0412032355a813f6c47b0e394504d3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
47f7fc631633c4c92e084cfc6587456f4f8cd727 04-Feb-2014 Preeti Ahuja <preetia@codeaurora.org> Cat: Do not send TR immediately for Display_Text

Currently for DISPLAY_TEXT proactive command, if the application
response is not required, CatService sends a terminal response to
card immediately and then sends the proactive command to StkApp.
On receiving the TR, the card responds with a Session_End. If the
Session_End is sent to StkApp before it finishes processing the
Display_Text command, a nullPointerException is seen in StkApp

Do not send Display_Text TR to card immediately. Send the TR after
the Display_Text command response has been received from StkApp.

Bug: 17553408
Change-Id: I23f25a9128e8545098610bec620429948233405e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
734900afa3a8e35d3a75786dc59f91b6f3136157 14-Jun-2013 Preeti Ahuja <preetia@codeaurora.org> Usat Phase 2 feature and Screen status

This change combines below 3 fixes.
1) Usat Phase 2 fixes
Added changes to support Idle screen, Language Selection.

This also includes change to support Idle screen status information.

Fix to address alpha display for proactive commands

2) Telephony: Correct terminal response sent for Idle mode text cmd

When a proactive command : SET_UP_IDLE_MODE_TEXT arrives with
empty text and non-self explanatory icon, terminal response
:CMD_DATA_NOT_UNDERSTOOD should be sent back to the UICC as
per the SAT spec

3) The GCF Testcase GCF-PTCRB SAT/USAT 27.22.4.1.1seq1.2 expects a
screen busy response if the ME is not in idle screen and if the
display text message is a low priority message. Hence sending screen busy
response instead of RESPONSE_TIMEOUT. In present implementation a
USER_RESPONSE_TIMEOUT response is sent for all timeout cases.

Bug: 17553408
Change-Id: If7fb74a451d53a4475475ac570fa8ae9d1a08a3b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
09b65da3b46e18c8acc146d722047ba2fb161bfe 19-Oct-2012 Preeti Ahuja <preetia@codeaurora.org> STK CC feature implementation

Support to display the current request is changed by STKCC.
Support to display alpha messgae from STKCC.
Support to display informatiom from new SS message.
Add FLAG_RECEIVER_FOREGROUND to alpha broadcast intent.

Bug: 17646476
Change-Id: I89671830eeef62a48e3133a2e3afbdeb096ecf3c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
ae798a22222a7e6ee5c47cd789838b3e915d1f13 20-Oct-2014 Legler Wu <legler.wu@mediatek.com> Stk FWK DSDS support

CatService.java: extend sInstance to support dsds

Change-Id: I47823aab90b692a2a1e3c2f57c0b658e104c1b84
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
1f22d77839c35908113e4978a1431636be0786ac 19-Sep-2014 duho.ro <duho.ro@lge.com> STK: fixing to send intent when card status changed

The intent name is not match with STK app.
Also, it should get the reference of UiccCard with its own slot id.
It affects with install and uninstall STK app when card status changed.

Bug: 17463742
Bug: 16148051

Change-Id: I9a4bab72411fce39846d7d11e6a15519d58c1d7a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
d14886b2a393c8b3e844d38f5edee651e75c4f95 03-Sep-2014 Steven Liu <stevenliu@motorola.com> StkAppService couldn't get the CatService instance.

Stk app doesn't work.

Bug: 17298789
Change-Id: I0201cc0cdaf295eacbec36c4becfdb4862b63050
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
f2d28790a3f02c337d10592aa390cc8d4c75e978 11-Aug-2014 Ajay Dudani <adudani@codeaurora.org> CatService: Correct Open Channel handling.

STK open channel command requests are communicated to the
telephony framework via an UNSOL_STK_EVENT_NOTIFY followed by
UNSOL_STK_CALL_SETUP pair of RIL messages.

This communication is distinct from a proactive command
since the card is only looking to notify the framework
of an action that the modem will handle on its own.

Thus, we need to adjust the conditional block properly to
catch this situation and send the appropriate response
back to RIL.

bug: 16850377
Change-Id: If29911d9b1d0d6c6b1213abc644fff57cf3d7398
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
eca4a2ab310bf8d96cf98b5e880e2f8eef7ffeb6 14-Feb-2013 Sandeep Gutta <sangutta@codeaurora.org> STK: Handle ICC refresh and card removal, and hotswap fix

--- Register for ICC refresh and let CatService's clients know when
an ICC refresh occurs.

Monitor card status. When card status moves to absent/present let
clients know.

Don't dispose CatService based on the number of applications.
Instead dispose it when UiccCard goes away

This helps avoid the race condition in the following scenario:
1. Radio is on and card is present
2. Turn Radio Off
3. Turn Radio On
4. Proactive command received

If CatService was disposed when card goes away on radio off
then it is possible for the unsol proactive command to be received
before Catservice is up and running on radio on.

--- Dispose objects properly for hotswap

During hotswap, CatService object is disposed and new object
is created. However RilMessageDecoder still holds reference to
old object of CatService, and hence sends decoded command
to old object of CatService leading to stk failure. In this fix
below objects are disposed properly when CatService is disposed.

1) RilMessageDecoder
2) CommandParamsFactory
3) IconLoader

Change-Id: Iee4ab009a0f9708a1ee2d87460e60765e46b4229
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
022dc626998aad5a6c71a80d3b3a23e23c4efe33 08-Apr-2014 Wink Saville <wink@google.com> Merge "Set RESULT tag properly when sending TR"
8316a9897794e4b608e7917af701fafc34c9276e 09-May-2013 Sandeep Kunta <skunta@codeaurora.org> Set RESULT tag properly when sending TR

While encoding terminal response, result tag is
always encoded with CR flag, although spec is not
clear on when to set CR flag, setting it always leads to
issues with some cards, hence set CR flag based on
CR flag in command details tag received from card.

Change-Id: I34956a018ec56767c49175add8ce71d5821f059c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
4c5614782b6c13e0849d0c943e839ffcee84d1be 09-Sep-2013 Wink Saville <wink@google.com> am ff294677: Merge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R"

* commit 'ff294677b6c4649985db2caadc00bae3bb08246d':
CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R
419f297bfb0cc21566d1d1110573dd9205e8f713 21-Aug-2012 Shriram Ganesh <sganesh@codeaurora.org> CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R

Upon handling OPEN_CHANNEL command, send User confirmation instead of
terminal response as lower layers expect confirmation information.

Bug: 10602211
Change-Id: I99ee5210ff345660559d1656e80c6ab8b0991d8e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
d7e83ff0591580603e6d6adfca085140d1d53bd2 02-Jul-2013 duho.ro <duho.ro@lge.com> UICC : add support empty alpha id for BIP

"If the alpha identifier is provided by the UICC and is a null data
object (i.e. length = '00' and no value part), this is an indication
that the terminal should not give any information to the user
or ask for user confirmation;"
- 6.4.27.2 OPEN CHANNEL related to packet data service bearer, ETSI TS 102.223

Bug: 9671401
Change-Id: Iece01f3775baf2c6438776f899ed53b1f1fb942f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
b8127144de8d55c590ed537bdcb7a1afe5666b28 19-Jul-2013 Wink Saville <wink@google.com> Merge commit '3f4415e3' into fix-merge-conflict

* commit '3f4415e3':
telephony: Fix typo
3f4415e31c8c407e0397511fdc2d5906361295fa 19-Jul-2013 Wink Saville <wink@google.com> Merge "telephony: Fix typo"
6c5e8c9ef98f3ef8f87e4a5c06f730cf7d0c1536 06-Mar-2013 Wink Saville <wink@google.com> am 5779b57f: Merge "Send user confirmation instead of Terminal Response"

* commit '5779b57fe7530dfca8d814be0cbd13c7bad5d643':
Send user confirmation instead of Terminal Response
14957f5b0b202fc80782944c962d282ed1866837 15-Jan-2013 Abhishek Adappa <aadappa@codeaurora.org> Send user confirmation instead of Terminal Response

On certain proactive commands like Setup Call/Open Channel,
a confirmation dialog is displayed to the user to confirm or reject the
call. If the user hits the back key to dismiss the dialog or the user
hits 'No', consider that as the user rejecting the call, instead
of sending a Terminal Response.

Bug: 8302972
Change-Id: I23d57f726018a6805ef455f6069dbab8e6dd14f0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
22d85a8e3a575a6d01d2c788587971657dfe20c6 23-Feb-2013 Wink Saville <wink@google.com> Clean up member variables.

Change-Id: Ib60f350131ade626aca682407ea0b4377b16f6c6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
2f48cebb0f3169da9d9325f7b4884872280599e5 28-Nov-2012 Nizar Haouati <nizar.haouati@intel.com> telephony: Fix typo

This patch fixes the typo in CatService.

Change-Id: Iff69df0ab0309e36f0a886c483f280febe5ad84e
Author: Nizar Haouati <nizar.haouati@intel.com>
Signed-off-by: Nizar Haouati <nizar.haouati@intel.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 71115
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
2d7aad7791b92186dabc779b3ab43794aceebcda 29-Nov-2012 Guillaume Lucas <guillaume.lucas@intel.com> Telephony: add support for additional information

As per ETSI 102 223 section 8.12, for some general results, it is
mandatory for the terminal to provide a specific cause value as
additional information.

This patch adds this support to the framework.

Change-Id: Ie22e60412d674e24f9ebf13d02da4b39cb2dd253
Author: Guillaume Lucas <guillaume.lucas@intel.com>
Signed-off-by: Guillaume Lucas <guillaume.lucas@intel.com>
Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 29915
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
d720945f2be5ea5fe0faf67e67d9ea0e184eba67 01-Aug-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Move uicc classes into uicc package

Reduce constructor visibility to package where
possible

Dependent Changes:
I3b718b9aea1f21c7906c8243b4ca0db6af495a08
I80204a2f3dc57cac875abeab390bb9db7a636ff7
Ib9c19e8b157dc7ec74eb14baca5bd3b5caf08c47

Change-Id: Ib4f43374c041cb5eaf2e3883e5ea28b2eb2c9a69
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
db1b0c54ffa990afeac24cc54d8b1992f1aa3a85 08-Sep-2012 Wink Saville <wink@google.com> am 1d40e34c: Merge "Telephony: Remove CdmaLteUicc objects"

* commit '1d40e34c74e2874114855db681aafba5676ae25c':
Telephony: Remove CdmaLteUicc objects
e287feac673ff68565b766e0e463d105fa9cef9d 10-Jul-2012 Alex Yakavenka <ayakav@codeaurora.org> Telephony: Remove CdmaLteUicc objects

-Pass IccCard object to GsmMmiCode
-Create IccCardProxy
-Make IccCard an interface and pass instance of IccCardProxy to
external applications (PhoneApp). IccCardProxy will use internal
UiccCard to map Icc requests to current active application on
UiccCard to maintain backwards compatibility for external
applications
-Add documentation to UiccController

The primary advantage of UiccController is that we can work with
multiple uicc applications at the same time. And that is a
requirement for modes like Cdma/Lte. The existing code supports
Cdma/Lte only partially and with guessing on modem side. However,
some things modem can guess, while others - it can't.

For instance, when a user tries to edit the fdn list the current
code will pass ef_id for fdn (0x6F3B). But the modem will have no
clue which fdn list the user wants to edit (csim or usim, both
have path 7FFF), and it's impossible for modem to guess correctly
all the time. All the modem can do is try to be consistent and
hope another device is doing same things. Imagine you bring your
card from another Cdma/Lte device to your new Cdma/Lte device:
if this modem uses different fdn file, it won't work as all
existing entries won't be there.

Another example is when the modem's guess is wrong for files like
csim/ef_li (7FFF 6F3A) versus usim/ef_adn (7FFF 6F3A). They have
same ef_ids so Android really should pass aid of the app it wants
to access. Without aids there is no way modem can know for sure
which file Android wants to read! However, in the current code
even Android doesn't know which aid it wants to read file from
since CdmaLteRecords has only 1 aid.

All of these problems cause more and more hacks, both in the modem
and in Android side. UiccController cleans up current code and
provides framework to work with multiple Uicc applications at the
same time.

Change-Id: I60216887b14140bdf833a8ed579ba16cad932bdc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
9fdeecb4aa06552efcc535f21718cae45cc604e2 25-Jul-2012 Wink Saville <wink@google.com> Fix build

mCurrentCmd should have been mCurrntCmd.

Change-Id: Ibd8faf0f6fec2285045f6f498730ff7882217cb1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
1e5f46c0477703b0eef40278cfa101d20b53091a 25-Jul-2012 John Wang <johnwang@google.com> Don't send terminal response without cmd details.

bug:6481578
Change-Id: I1ccd8b4599cff8df6806e39d53f86e265647bae7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
c38bb60d867c5d61d90b7179a9ed2b2d1848124f 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common - DO NOT MERGE

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java
0825495a331bb44df395a0cdb79fab85e68db5d5 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java