问题标签 [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 投票
1 回答
1752 浏览

android - Phones that can support Open Mobile API

I understand that to access SIM/eSE from an Android app we need to install Open Mobile API addon on Android Studio. However, is it true that it will not work on all NFC phones? For example, do some OEM limited access to SIM/eSE? Or are there phones where only custom firmware will work with Open Mobile API?

Also, is there a list of phones that support Open Mobile API by default?

0 投票
0 回答
471 浏览

android - android 权限:执行未知操作

我正在开发一个使用SEEK for Android 访问 SIM 卡的 Android 应用程序。我需要以下许可:

此权限的保护级别是“危险的”,因此我必须要求用户在运行时授予应用程序此权限(否则会引发 SecurityException)。但对话框中的消息表明应用程序想要执行未知操作(见下图)。

在此处输入图像描述

如何自定义此对话框以便用户知道应用程序需要智能卡权限?

0 投票
1 回答
203 浏览

android - 在使用 org.simalliance.openmobileapi.jar 文件的项目中生成签名的 apk 文件

我在我的项目中使用了 org.simalliance.openmobileapi.jar

当我使用:

  • “提供的文件('libs/org.simalliance.openmobileapi.jar')”在我的项目的应用程序 gradle 中一切看起来都不错

  • “编译文件('libs/org.simalliance.openmobileapi.jar')”在应用程序 gradle 或我创建签名 apk 文件,我的项目无法正常工作。

当我想打开逻辑通道时出现问题,这次发生了安全异常:

(java.lang.SecurityException:访问控制执行器:不允许 APDU 访问!)

0 投票
1 回答
1052 浏览

android - Android Open Mobile API 发布难点

我正在使用 SDK 中的“org.simalliance.openmobileapi.jar”文件。我将它复制到我的 libs 文件夹并添加了这样的依赖项

案例#1:工作正常(在调试模式下)

在应用程序 Gradle 文件中,我有:

案例 #2:不工作(在发布模式下 - 没有 minifyEnabled)

在应用程序 Gradle 文件中,我有:

在情况#2我得到以下异常:

(java.lang.SecurityException:访问控制执行器:不允许 APDU 访问!)

什么可能导致问题?

0 投票
1 回答
298 浏览

android - Android 虚拟设备中的 OMAPI

最近,我阅读了有关智能卡 API(开放移动 API)的信息,并发现并非每个设备都可以使用安全元件,因为智能卡 API 并非在每个设备上都实现。那么,如果我没有物理 SIM 卡,谁能说我是否可以使用 Android Emulator SIM 卡的安全元件?

0 投票
1 回答
1135 浏览

java - 如何在 SEservice 中使用 Executor (Open Mobile API for Android 9.0)

我正在研究 NFC,目前尝试为 Android 9.0 中内置的 Open Mobile API 编写代码,但不了解在 SEService 中传递 Executor 参数的方式。

问题发生在:

第一个和最后一个参数接受了中间一个执行器出现错误!

java.util.concurrent.Executor 这个

如何通过这个?

0 投票
1 回答
850 浏览

android - 我可以在 Android Pixel 3 安全元件上使用 OMAPI 做什么?

新的 Android Pixel 3 包含一个名为 Titan M 的安全元件。

首先,我想知道是否可以通过使用 Android 9 上现在可用的 Open Mobile API(android.se.omapi 包)与这个安全元素进行交互。

其次,我查看了这个 OMAPI,发现它允许使用智能卡的 ISO 7816 协议向应用程序发送 APDU 消息。所以我想知道我可以与什么样的应用程序交互。

如果可能的话,我的目标是在 Titan M 安全元件中插入一个 JavaCard 小程序,并使用 OMAPI 将 APDU 发送到这个小程序。有没有人尝试过这样做?我很乐意收到有关使用此 API 和 Pixel 3 可以做什么的任何反馈。

谢谢。弗兰克

0 投票
1 回答
74 浏览

android - OPEN MOBILE API Issue with MI and OPPO device

its working with samsung and other device

nstallation failed with message Failed to finalize session : INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/in.sample.xxx-1: Package in.sample.xxxxx requires unavailable shared library org.simalliance.openmobileapi; failing!.

enter image description here