问题标签 [open-mobile-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
5064 浏览

android - 如何在不生根已经支持 SmartCard API 的设备的情况下访问安全元素

SEEK-for-Android 文档说列出的设备支持 SmartCard API。

我想通过我的 Android 应用程序访问基于 SIM 卡的安全元件 (SE)。我可以在不植根任何这些受支持的设备且不重建其 Android 系统映像的情况下实现这一目标吗?就我而言,该设备是三星 Galaxy S3。

0 投票
2 回答
2401 浏览

android - 使用 Android 21+ 打开移动 API

我已经使用 Open Mobile API 有一段时间了,我的目标是 Android API 19 的版本(通过添加链接从 Android SDK 管理器下载http://seek-for-android.googlecode.com/svn /trunk/repository/19/addon.xml),但我找不到高于 19 的版本。它们是否存在或者我只是没有很好地搜索?

0 投票
1 回答
3299 浏览

android - How to communicate between Android and Java Card Applet on SIM card (with or withour RIL libs)?

I want to communicate from my Android app to a Java Card applet loaded on a SIM card using APDUs under Android prior to 5.0 (4.2.2, for example). My applet is not a SIM Toolkit applet, it is a common Java Card applet.

Following this post (thanks to @vojta and @jean) and SEEK I would like to build my app using RIL (Radio Interface Layer). Where can I get those libs? The only ones I can get is for Nexus - here.

If I understand it well I will have a different .apk file for each mobile manufacturer. Am I right? If yes, is there any other way to communicate from Android to SIM applet apart from SEEK?

If I cannot avoid that (I really think SEEK is the best or the only way to communicate with my SIM applet), can someone share a step-by-step manual for building such an example APK application (including communication with the applet)?

0 投票
1 回答
2928 浏览

android - 如何在 Android 上查看 Open Mobile API 的版本?

据我了解,Open Mobile API 与制造商创建的 Android ROM 捆绑在一起。我们正在使用大量使用 Open Mobile API 的 SDK,并发现一些供应商创建了 ROM,其中 Open Mobile API 的版本与 Android 的版本不兼容。这会导致灾难,即当我们尝试使用上述 SDK 时,应用程序会崩溃。因为 SDK 启动了一个新线程,并在其上崩溃。我们甚至不能将整个逻辑放在一个 try-catch 块中,因为所有这些都在一个单独的线程中运行。

我们决定检查 Android 和 Open Mobile API 的版本,看看它们是否不兼容,如果是,则完全禁用需要它的功能。

有没有办法确定预装的 Open Mobile API 的版本?如果有,我该怎么做?

0 投票
1 回答
513 浏览

android - 由于缺少 Open Mobile API 共享库,应用程序安装失败

我正在开发一个使用 Open Mobile API 的应用程序。我将此行添加到我的清单中:

当我删除这行代码时,它安装正常。但该应用程序无法正常运行。但是如果我添加那行,我会得到错误

install_failed_missing_shared_library

这是因为 API 与我的设备不兼容吗?我正在使用 Famoco 设备。

这个有什么解决方法吗?

0 投票
0 回答
152 浏览

visual-studio - 来自 Xamarin 的 SEEK for Android

我想使用带有 Xamarin 扩展的 Visual Studio 2015 中的 C# 创建一个 Android 应用程序。此应用程序应使用 SEEK for Android 库与加载在 SIM 卡上的 Java Card 小程序通信。

根据 SEEK 文档,我应该替换用于编译的 SDK。我可以在 Eclipse 或 Android Development Studio 中轻松做到这一点:

在此处输入图像描述

但是,我不知道如何在 Visual Studio 2015 中实现这一点:

在此处输入图像描述

Open Mobile API 没有出现在“使用 Android 版本编译”列表框中,尽管我在 SDK 管理器中成功安装了它。我错过了 VS 2015 中的任何秘密设置吗?

0 投票
1 回答
1020 浏览

android - 将 Open Mobile API 库添加到 Android 设备以获取基于 APDU 的 SIM 访问权限

我有一个没有 NFC 的设备。此设备也不支持 Open Mobile API。我需要访问该设备上的 SIM 小程序。

现在我想知道是否可以添加该功能...如果我有 Open Mobile API 库的副本,如果通过 ADB 将该 Open Mobile API 库推送到我的设备,它会起作用吗?然后我可以用我的 SIM 小程序交换 APDU 吗?

0 投票
2 回答
2251 浏览

android - OMAPI 支持的设备列表

我正在使用 Open Mobile API 进行开发,但到目前为止还没有找到默认支持 API 的设备列表(默认情况下使用 OEM ROM)。

我意识到,从 API 级别 21 开始,Android 电话支持通过基本和逻辑通道直接通过 TelephonyManager 发送 APDU。但我也想知道运行 pre-API level 21 的设备。

那么,是否已经编制了具有内置支持的设备列表,或者有没有办法自己找出来?

0 投票
0 回答
190 浏览

android - 开放移动 API & 扩展逻辑通道

我目前正在使用 Open Mobile API 进行项目。基本上,当我将 apdu 交换到 UICC 时,我遇到了这个问题,我的所有命令都自动转换为扩展的逻辑 APDU 命令(CLA:0xC1)。在此测试期间,我使用的是三星 Galaxy S6 Edge,Android 版本为:5.0.2。

APDU > 报头 [CLA INS P1 P2] 00 70 00 00 194,69 etu 管理通道

< 传出数据 01

< 返回码 [SW1 SW2] 90 00

APDU > 标题 [CLA INS P1 P2] 01 A4 04 00 194,69 etu SELECT

输入数据 A0 00 00 05 59 10 10 FF FF FF FF 89 00 00 01 00

< 输出数据 6F 1A 84 10 A0 00 00 05 59 10 10 FF FF FF FF 89

< 返回码 [SW1 SW2] 90 00

APDU > 报头 [CLA INS P1 P2] C1 E2 91 00 187,69 etu

输入数据 BF 2D 00

< 返回码 [SW1 SW2] 6D 00

APDU > 标题 [CLA INS P1 P2] 00 70 80 01 192,69 etu 管理通道

< 返回码 [SW1 SW2] 90 00

可能是什么问题?谁负责将我的 CLA 命令更改为 0xC1?为什么手机把CLA命令改成0xC1?注意:根据我的应用程序日志,我发送此 81 E2 91 00 02 BF 2D 00

谢谢你的帮助。

0 投票
2 回答
1665 浏览

android - 如何构建 Android SDK 以便能够使用位于 sdk/add-ons 中的库

我目前正在尝试使用 Android 中内置的库 OpenMobile API。(并非适用于所有设备)。

我正在按照本教程将库添加到我的 android sdk:https ://github.com/seek-for-android/pool/wiki/UsingSmartCardAPI

我已经通过 SDK 管理器添加了 OpenMobile API,现在我在 path-to-sdk/sdk/add-ons 中有文件夹。我目前在 Android Studio 中使用最新版本的 android (25),位于 sdk/add-ons 中的 OpenMobileAPI 文件可用于版本 21。21 以上没有可用的库(参见http://seek- for-android.github.io/repository/21/addon.xml)。

显现 :

主要活动

它是这样写的:

构建 SDK:开放移动 API (Giesecke & Devrient GmbH) (API 21)

Android Studio 无法识别 org.simalliance,所以我无法使用它。

如何构建 SDK 以便库类在 Android Studio 中可用?