I need to use the .so library developed for android (jni) but i need to use it in python
Code for android:
package x2;
import android.os.Build;
import java.util.Base64;
public class X {
        static {
            System.loadLibrary("adlemx");
        }
        public static String m0do(String str) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                return Base64.getEncoder().encodeToString(x01(str).getBytes());
            }
            return "";
        }
        public static native String x01(String str);
    }
I tried use ctypes
from ctypes import cdll
print(cdll.LoadLibrary("./adlemx.so"))
but I get error:
Traceback (most recent call last):
  File "D:\_Projects\DiaryBackend\main.py", line 24, in <module>
    print(cdll.LoadLibrary("./adlemx.so"))
  File "C:\Program Files\Python39\lib\ctypes\__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "C:\Program Files\Python39\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not an application Win32