Some device related jni bindings