Loading src/java/com/android/internal/telephony/cat/AppInterface.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -40,6 +40,9 @@ public interface AppInterface { public static final String CAT_ICC_STATUS_CHANGE = public static final String CAT_ICC_STATUS_CHANGE = "android.intent.action.stk.icc_status_change"; "android.intent.action.stk.icc_status_change"; // Permission required by STK command receiver public static final String STK_PERMISSION = "android.permission.RECEIVE_STK_COMMANDS"; /* /* * Callback function from app to telephony to pass a result code and user's * Callback function from app to telephony to pass a result code and user's * input back to the ICC. * input back to the ICC. Loading src/java/com/android/internal/telephony/cat/CatService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -466,7 +466,7 @@ public class CatService extends Handler implements AppInterface { intent.putExtra("STK CMD", cmdMsg); intent.putExtra("STK CMD", cmdMsg); intent.putExtra("SLOT_ID", mSlotId); intent.putExtra("SLOT_ID", mSlotId); CatLog.d(this, "Sending CmdMsg: " + cmdMsg+ " on slotid:" + mSlotId); CatLog.d(this, "Sending CmdMsg: " + cmdMsg+ " on slotid:" + mSlotId); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } /** /** Loading @@ -479,7 +479,7 @@ public class CatService extends Handler implements AppInterface { mCurrntCmd = mMenuCmd; mCurrntCmd = mMenuCmd; Intent intent = new Intent(AppInterface.CAT_SESSION_END_ACTION); Intent intent = new Intent(AppInterface.CAT_SESSION_END_ACTION); intent.putExtra("SLOT_ID", mSlotId); intent.putExtra("SLOT_ID", mSlotId); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } Loading Loading @@ -749,7 +749,7 @@ public class CatService extends Handler implements AppInterface { CatLog.d(this, "Sending Card Status: " CatLog.d(this, "Sending Card Status: " + cardState + " " + "cardPresent: " + cardPresent); + cardState + " " + "cardPresent: " + cardPresent); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } @Override @Override Loading Loading
src/java/com/android/internal/telephony/cat/AppInterface.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -40,6 +40,9 @@ public interface AppInterface { public static final String CAT_ICC_STATUS_CHANGE = public static final String CAT_ICC_STATUS_CHANGE = "android.intent.action.stk.icc_status_change"; "android.intent.action.stk.icc_status_change"; // Permission required by STK command receiver public static final String STK_PERMISSION = "android.permission.RECEIVE_STK_COMMANDS"; /* /* * Callback function from app to telephony to pass a result code and user's * Callback function from app to telephony to pass a result code and user's * input back to the ICC. * input back to the ICC. Loading
src/java/com/android/internal/telephony/cat/CatService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -466,7 +466,7 @@ public class CatService extends Handler implements AppInterface { intent.putExtra("STK CMD", cmdMsg); intent.putExtra("STK CMD", cmdMsg); intent.putExtra("SLOT_ID", mSlotId); intent.putExtra("SLOT_ID", mSlotId); CatLog.d(this, "Sending CmdMsg: " + cmdMsg+ " on slotid:" + mSlotId); CatLog.d(this, "Sending CmdMsg: " + cmdMsg+ " on slotid:" + mSlotId); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } /** /** Loading @@ -479,7 +479,7 @@ public class CatService extends Handler implements AppInterface { mCurrntCmd = mMenuCmd; mCurrntCmd = mMenuCmd; Intent intent = new Intent(AppInterface.CAT_SESSION_END_ACTION); Intent intent = new Intent(AppInterface.CAT_SESSION_END_ACTION); intent.putExtra("SLOT_ID", mSlotId); intent.putExtra("SLOT_ID", mSlotId); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } Loading Loading @@ -749,7 +749,7 @@ public class CatService extends Handler implements AppInterface { CatLog.d(this, "Sending Card Status: " CatLog.d(this, "Sending Card Status: " + cardState + " " + "cardPresent: " + cardPresent); + cardState + " " + "cardPresent: " + cardPresent); mContext.sendBroadcast(intent); mContext.sendBroadcast(intent, AppInterface.STK_PERMISSION); } } @Override @Override Loading