STK
SIM Card Tool Kit
相关代码位置:
vendor\mediatek\proprietary\packages\apps\Stk1\src\com\android\stk\StkAppService.java
case DISPLAY_TEXT:
CatLog.d(LOG_TAG, “[handleCmd][DISPLAY_TEXT] +”);
if (isBusyOnCall() == true) {
CatLog.d(LOG_TAG, “[Handle Command][DISPLAY_TEXT][Can not handle currently]”);
CatResponseMessage resMsg = new CatResponseMessage(mStkContext[slotId].mCurrentCmd);
resMsg.setResultCode(ResultCode.TERMINAL_CRNTLY_UNABLE_TO_PROCESS);
additionalInfo = new byte[1];
additionalInfo[0] = (byte) 0x02;
resMsg.setAdditionalInfo(additionalInfo);
mStkService[slotId].onCmdResponse(resMsg);
return;
}
TextMessage msg = cmdMsg.geTextMessage();
mStkContext[slotId].responseNeeded = msg.responseNeeded;
if (mStkContext[slotId].responseNeeded == false) {
//Immediate response
CatLog.d(LOG_TAG, “[Handle Command][DISPLAY_TEXT][Should immediatly response]”);
CatResponseMessage resMsg = new CatResponseMessage(mStkContext[slotId].mCurrentCmd);
resMsg.setResultCode(ResultCode.OK);
mStkService[slotId].onCmdResponse(resMsg);
} else {
}
// TODO: get the carrier name from the SIM
msg.title = “”;
String optr = SystemProperties.get(“ro.operator.optr”);
if (optr != null && “OP02”.equals(optr)) {
int resId = R.string.app_name;
if (slotId == PhoneConstants.SIM_ID_1) {
if (SystemProperties.get(“ro.mtk_gemini_support”).equals(“1”) == true) {
/* GEMINI or GEMINI+ project */
resId = R.string.appI_name;
} else {
/* Single card project */
resId = R.string.app_name;
}
} else if (slotId == PhoneConstants.SIM_ID_2){
resId = R.string.appII_name;
}
msg.title = getResources().getString(resId);
}
byte[] target = {0x0d, 0x0a};
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级安卓工程师,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Android移动开发全套学习资料》送给大家,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频
如果你觉得这些内容对你有帮助,可以添加下面V无偿领取!(备注Android)
点击这里免费领取吧!
-2PZYmpNJ-1711295658773)]
[外链图片转存中…(img-gT4pafpQ-1711295658773)]