Using SO Android file in command with Unity3d C# for chess engine

Hello,
I’m developping an Android application with Unity3d.
It has many functions (it’s a chatbot) and I’m currently mostly working on the chess game part which is working pretty well, but I’m stucked around 1200-1300 ELO with 6 plys so I wanted to implement stockfish instead of my own engine.
So my problem is not any more about chess engine itself but how to use stockfish engine on Android. Note that stockfish is working fine in Unity3d editor, it’s really about sending command to stockfish file, receiving answers and basically just beeing able to put the file in the right directory while beeing on Android.

public void Communicate()
    {

        string intro_android_path = Application.persistentDataPath + "/stockfish-android-armv8.so";
        string filePath = "";

        #if UNITY_EDITOR
             filepath = "C:\\Harumi 3d\\StockFish\\stockfishx86";
        #elif UNITY_ANDROID
             filepath = intro_android_path;
        #endif

        // creating the process and communicating with the engine
        mProcess = new Process();
        ProcessStartInfo si = new ProcessStartInfo()
        {
            FileName = filepath,
            UseShellExecute = false,
            CreateNoWindow = true,
            RedirectStandardError = true,
            RedirectStandardInput = true,
            RedirectStandardOutput = true
        };
        mProcess.StartInfo = si;
        mProcess.OutputDataReceived += new DataReceivedEventHandler(MProcess_OutputDataReceived);
        mProcess.Start();
        mProcess.BeginErrorReadLine();
        mProcess.BeginOutputReadLine();

        SendLine("go infinite searchmoves e2e4 d2d4");
    }

So everything works fine in Unity3d, but when I compile as an apk and launch it on smartphone, nothing happens, I don’t even see the log. What could possibly went wrong?

.so is not an executable file, you can’t launch it via Process class.

You must use P/Invoke to execute functions from .so file Unity - Manual: Native plug-ins for Android

So now, I’m stucked because I don’t know what are stockfish functions available in the .so file…
For the windows version, I can obviously use process, I don’t need to call a specific function.
For the android version, I don’t see any documentation or help on internet with stockfish android library functions.
I could only write :

using System;
using System.Runtime.InteropServices;

public class stockfishso_android : MonoBehaviour
{
 [DllImport("stockfish-android-armv8.so", CallingConvention = CallingConvention.Cdecl)]    
       ? static extern functions ?
}