Access jni from gdextension

Godot Version

4.5

Question

I am trying to access the vm/jni handles from a gdextension.
One solution is to create an android plugin and load the so file by yourself:

Is this still the only way to go?

I don’t really mind creating a plugin but it sounds like a bit of unnecessary overhead comparing to just loading an so file to access a variable that is already stored within the engine.