Load NPAPI Plugin on Android device/emulator
Asked Answered
H

1

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.

Hackney answered 17/4, 2012 at 11:52 Comment(2)
Shouldn't you get an APK out in the end and put that onto the device?Ace
yes, so I figured that I needed to add JNI interface and built it again to get apk which works fine.Hackney
S
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.

Spiller answered 28/5, 2012 at 12:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.