From 786887217510e39f9f118ad533f4aad45b618766 Mon Sep 17 00:00:00 2001 From: c_pzhao Date: Tue, 20 Sep 2016 18:52:44 +0800 Subject: Update the stk name for TIM-IT Add the customize value of stk'name to meet the requirement Change-Id: I847cb11a9b186b0fbdc2ff7d6efcd816a349c4b1 CRs-Fixed: 1062708 --- res/values-mcc222-mnc01/strings.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 res/values-mcc222-mnc01/strings.xml diff --git a/res/values-mcc222-mnc01/strings.xml b/res/values-mcc222-mnc01/strings.xml new file mode 100644 index 0000000..1d458db --- /dev/null +++ b/res/values-mcc222-mnc01/strings.xml @@ -0,0 +1,34 @@ + + + + + "Servizi SIM" + -- cgit v1.2.3 From 6f999841d8c2192409847b41c40cab8cacb44f86 Mon Sep 17 00:00:00 2001 From: Fang Yunong Date: Mon, 19 Sep 2016 17:08:39 +0800 Subject: Enable the STK when insert two sim cards Enable the app of STK when insert two sim cards, and one sim with STK,the other one without STK. Change-Id: If50186997af0f34b6ecf3d91791f1be77f700653 CRs-Fixed: 1062708 --- src/com/android/stk/StkAppService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java index 712d747..ff8227a 100644 --- a/src/com/android/stk/StkAppService.java +++ b/src/com/android/stk/StkAppService.java @@ -944,8 +944,12 @@ public class StkAppService extends Service implements Runnable { CatLog.d(LOG_TAG, "removeMenu() - Uninstall App"); mStkContext[slotId].mCurrentMenu = null; mStkContext[slotId].mMainCmd = null; + boolean menuState = false; //Check other setup menu state. If all setup menu are removed, uninstall apk. for (i = PhoneConstants.SIM_ID_1; i < mSimCount; i++) { + if (mStkContext[i].mSetupMenuState == STATE_EXIST) { + menuState = true; + } if (i != slotId && (mStkContext[slotId].mSetupMenuState == STATE_UNKNOWN || mStkContext[slotId].mSetupMenuState == STATE_EXIST)) { @@ -954,7 +958,7 @@ public class StkAppService extends Service implements Runnable { break; } } - if (i == mSimCount) { + if (i == mSimCount && !menuState) { StkAppInstaller.unInstall(mContext); } } else { -- cgit v1.2.3