1

I'm developing an app that uses Open Mobile API. I added this line to my manifest:

<uses-library android:name="org.simalliance.openmobileapi" android:required="true"/>

When I remove this line of code, it installs ok. But the app is not working properly. But if I add that line, I get the error

install_failed_missing_shared_library

Is this because the API is not compatible with my device? I'm using a Famoco device.

Any workarounds on this one?

Michael Roland
  • 39,663
  • 10
  • 99
  • 206
Jujumancer
  • 125
  • 1
  • 12

1 Answers1

2

This error indicates that the Open Mobile API is not available on your device. If the Open Mobile API is not required for your application to work (e.g. if your app also does other things that do not rely on accessing a secure element through OMAPI), you might want to consider setting the attribute android:required to false:

<uses-library android:name="org.simalliance.openmobileapi" android:required="false" />
Michael Roland
  • 39,663
  • 10
  • 99
  • 206
  • I see.. Is there any workaround on this? I'm trying to access a secure element. For starters, getting the ATR of the SEM. – Jujumancer May 11 '16 at 08:15
  • 1
    @Jujumancer I'm not sure I understand what you mean with "workaround". Either your device supports OMAPI or not. If it does not, does it even have an accessible SE? – Michael Roland May 11 '16 at 08:37
  • What I mean by "workaround" is, is there any other way for me to read data from secured element. What do you mean by SE? – Jujumancer May 11 '16 at 08:40
  • 1
    @Jujumancer SE = secure element; What type of secure element? What Android version? What exact device model? – Michael Roland May 11 '16 at 08:41
  • MT65XX Android Phone android version 19. SAM card – Jujumancer May 11 '16 at 08:47
  • 1
    @Jujumancer MediaTek MT65xx seems to be a family of mobile device SoC and not a model number of a specifc Android device... Btw. did you insert the SAM card into a regular SIM slot? – Michael Roland May 11 '16 at 09:16
  • Yes, I tried inserting it also into the regular SIM slot. Unfortunately, it gives me the install failed message. I already tried installing the program to a compatible device and it installed successfully. – Jujumancer May 12 '16 at 01:57
  • @Jujumancer you can try to find some CyanogenMod ROM for your phone -- it might work. – vlp May 12 '16 at 09:34
  • @vlp - already found one. it was a vendor specific jar. thank you though. – Jujumancer May 13 '16 at 02:24