简体   繁体   English

Android:通过SIM工具包进行手机充值

[英]Android: Mobile Recharge via SIM Toolkit

Im developing an android application for my client. 我为我的客户开发了一个Android应用程序。 My client is a SIM card distributor in our location. 我的客户是我们所在地的SIM卡分销商。 My client wants to access SIM card toolkit to recharge mobile. 我的客户想要访问SIM卡工具包来为手机充值。 I dont have any idea how to do it? 我不知道该怎么做? Can anyone guide me in right direction. 谁能指导我正确的方向。

Network: Airtel 网路:Airtel

I need to access Airtel SIM toolkit via my android application to recharge. 我需要通过我的Android应用程序访问Airtel SIM工具包才能充电。

You can use STK service from platform packages. 您可以从平台软件包中使用STK服务。 Take a look over the source of STK App that comes default with android. 查看android默认提供的STK App的来源。 https://github.com/android/platform_packages_apps_stk https://github.com/android/platform_packages_apps_stk
An old documentation over this app can be found here http://www.kandroid.org/online-pdk/guide/stk.html 有关此应用的旧文档,请参见http://www.kandroid.org/online-pdk/guide/stk.html

If primary account number is planned to store in Android application, bear in the mind that still some of most used Android phones do not have Secure Element chips. 如果计划将主要帐号存储在Android应用程序中,请记住,仍然有一些最常用的Android手机没有安全元件芯片。 Option could be using SIM as secure element by Android application. 选项可能是通过Android应用程序将SIM用作安全元素。 As far as I know Android Open Source Project does not define an API to use the SIM card as a secure elements, but as long as the device baseband and RIL support, SEEK for Android patches can be added. 据我所知,Android Open Source Project并未定义将SIM卡用作安全元素的API,但是只要设备基带和RIL支持,就可以添加SEEK for Android补丁。 If it is possible obtain SIM profile and OTA keys, custom STK Toolkit applet can be developed and installed on the SIM via OTA. 如果可以获取SIM卡配置文件和OTA密钥,则可以开发自定义STK Toolkit小程序,并通过OTA将其安装在SIM卡上。

STK menu application can provide required user interface to receive inputs. STK菜单应用程序可以提供所需的用户界面来接收输入。 All key management, encryption logic and integrity of encrypted data should be achieved and implemented inside the SIM as Secure Element . 所有密钥管理,加密逻辑和加密数据的完整性都应作为安全元素在SIM内部实现并实现。 Public key cryptography is typically not implemented by SIM cards for mobile network authentication or OTA secure data. SIM卡通常不会为移动网络身份验证或OTA安全数据实施公钥加密。 That's why available option is to use secure symmetric and hash algorithms. 这就是为什么可用选项是使用安全对称和哈希算法的原因。 If EMV certification is required, it is better to consult local partner after learning supported encryption algorithms on SIM cards of MNO. 如果需要EMV认证,最好在MNO的SIM卡上学习受支持的加密算法后咨询本地合作伙伴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM