问题
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:
- put .so file in /data/data/com.android.browser/app_plugins/
- 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