noitidart
(Noitidart)
July 10, 2015, 3:45pm
1
Does anyone know the native libraries © exposed by android to
Firefox app? I plan to use js-ctypes but dont know the libs at my
disposal. If you can please share those libs then I can look up the
documentations and learn what all I can do. My goal is to take a native
screenshot on Android.
I’m curious to try to access the native Java libs too with this approach: http://stackoverflow.com/questions/845202/can-i-use-java-with-xulrunner-gui-framework/852298#852298 which uses liveconnect blogged about here: http://stanislavvitvitskiy.blogspot.com/2009/04/calling-java-from-xul-applications.html
noitidart
(Noitidart)
July 11, 2015, 9:26am
2
window.JNI
baby. doneskis. can do whatever Firefox has permission to do on Android. Its jsctypes jni framework exposed by default to the window scope, very amazing.
https://dxr.mozilla.org/mozilla-central/source/mobile/android/modules/JNI.jsm
Im not sure which all c libs are available though, not sure how to list them out, just try it and see as you need it and if it doesnt work go JNI.
example: https://github.com/mozilla/firefox-for-android-addons/blob/355f9a01464a0794c1084e8fdbab92c58503f49a/snippets/jni.js#L23-L44
surprised none of us knew about this.
no need to use that liveconnect method.