加载插件NPAPI在Android设备/仿真器 [英] Load NPAPI Plugin on Android device/emulator
问题描述
我整理样品NPAPI插件,我从这个链接的http:// code.google.com / p / NPAPI-SDK /
I compiled sample NPAPI Plugin which I got from this link http://code.google.com/p/npapi-sdk/
使用NDK编译后,我得到了.so文件库/ armeabi / libBasicPlugin.so
after compiling it using NDK, I got the .so file libs/armeabi/libBasicPlugin.so
在谷歌搜索后,我碰到下面的建议来了:
after searching on Google I came across following suggestions:
- 把.so文件中/data/data/com.android.browser/app_plugins /
- 把.so文件中/data/data/com.android.browser/assets/plugins /
但没有说工作在仿真器(有没有试过在设备上)
but none of that works on emulator (haven't tried on device)
我试图在姜饼和ICS。
I tried it on Gingerbread and ICS.
推荐答案
插件的WebKit无法继续工作。有一个在PluginManager.java文件测试(框架/核心/ JAVA / WebKit的类似的东西),并允许加载只闪光灯的插件(仅当ro.secure = 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.
这篇关于加载插件NPAPI在Android设备/仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!