3

I compiled sample NPAPI Plugin which I got from this link http://code.google.com/p/npapi-sdk/

after compiling it using NDK, I got the .so file libs/armeabi/libBasicPlugin.so

after searching on Google I came across following suggestions:

  1. put .so file in /data/data/com.android.browser/app_plugins/
  2. put .so file in /data/data/com.android.browser/assets/plugins/

but none of that works on emulator (haven't tried on device)

I tried it on Gingerbread and ICS.

2
  • Shouldn't you get an APK out in the end and put that onto the device? Apr 20, 2012 at 9:46
  • yes, so I figured that I needed to add JNI interface and built it again to get apk which works fine. Nov 28, 2012 at 10:51

1 Answer 1

1

Plugin for webkit can't work anymore. There's a test in the PluginManager.java file (framework/core/java/webkit something like that) and allows only the plugin of flash to be loaded (only when ro.secure = 1). If you want to load the plugin you have to root your device.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.