Omacp收到network Pin之后,会要求输入Pin码
来源:互联网 发布:淘宝的周期怎么算 编辑:程序博客网 时间:2024/04/29 01:58
在国外,Omacp收到network Pin的时候,手机会显示输入Pin码,这不符合Omacp的测试规范。
这是因为,在国内,Omacp如果收到network pin,标准的sec值是“”,但是在国外,标准的sec值是0,所以如果针对国外项目,需要进行修改。如下:
请在OmacpReceiverService.java里面添加如下代码:
1.//new added begin
if(sec!=null){
if (sec.equalsIgnoreCase("0")) {
sec = "";
}
}else
return false;//这里return true或者false,也要看运营商的需求,有的运营商要求,sec=null的时候直接返回不处理,但是国内要求sec=null的时候,继续解析
//new added end
// sec == "" indicates Network PIN, in this case, check SIM's IMSI, if
// verify fails, then ignore this message
if (sec != null && sec.equalsIgnoreCase("") && mac != null && !mac.equalsIgnoreCase("")) {
2.parseOmacpMessage方法
//new added begin
if (sec.equalsIgnoreCase("0")) {
sec = "";
}
//new added end
if (sec == null || mac == null || sec.equalsIgnoreCase("") || mac.equalsIgnoreCase("")) {
value.put("pin_unlock", 1);
3.如果是单卡的话,并修改这里OmacpMessageSettingDetails.java:
Public static String getSimImsi(int simId) {
String imsi;
TelephonyManagerEx mTelephonyManager = TelephonyManagerEx.getDefault();
Imsi = mTelephonyManager.getSubscriberId(sinId);
}
- Omacp收到network Pin之后,会要求输入Pin码
- pin
- PIN码
- 终于收到google adsense的pin码了,祝贺!!
- 开启PIN码的卡在refresh的时候,不会再要求弹出PIN码
- ZigBee之PIN输入中断
- PIN码的使用方法
- PIN码查询网站
- pin码排序方案
- Admob PIN码 完结!
- 获得路由器pin码
- 2.9 PIN码操作
- android 如何修改让Pin码的输入内容不回显
- PIN码的接收问题
- SIM卡PIN码管理
- 手机PIN码解锁过程
- PIN码计算锦集
- AT命令和PIN码
- 天天写日记争当文艺青年 2014-5-21
- <context:component-scan>使用说明
- XMLDocument 最简单的读取xml例子
- jquery读取全球城市xml生成三级select
- intellij idea设置等号对齐
- Omacp收到network Pin之后,会要求输入Pin码
- 黑马程序员-OC-set方法的基本操作
- Spring 数据源连接池 数据库访问哲学jdbcTemplate
- 素数判断方法大合集
- python字典里的update函数
- MinGW: Building Iconv 1.13.1 for Windows
- 范围 for 语句与二维数组
- linux shell之sed
- android 4.4 滑动锁屏界面,按menu键可以解锁