Load NPAPI Plugin on Android device/emulator

旧街凉风 提交于 2019-12-14 03:48:32

问题


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.


回答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.



来源:https://stackoverflow.com/questions/10190697/load-npapi-plugin-on-android-device-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!