Nanodroid-Patcher 23.1.2 and 23.1.1 are not working for me

Hello there, I am running LineageOS 18.1 (Android 11) on Motorola Moto G7 Plus. I have my phone rooted via Magisk and tried to patch the signal spoofing for MicroG. Both mentioned patcher versions fail when trying to install them in eigher TWRP or Magisk. I know it says in the readme, that TWRP won't work, but I tried it anyway. In the log file it says it detected Android 10, maybe that is the problem, but I don't know how to force it to use the Android 11 Environment. install log:

- Copying zip to temp directory
- Installing NanoDroid-patcher-23.1.2.20210117.zip
 
********************************
 NanoDroid                      
 Framework Patcher              
 Powered by DexPatcher          
 23.1.2.20210117                     
********************************
 
 > preparing environment
 > Android 7.0 - 10.0 (SDK 30) detected
 *** LD_CONFIG_FILE=/apex/com.android.art/etc/ld.config.txt
 > device architecture: arm64
 > installation mode: MAGISK
 
   
 ++
 ++ services.jar status: DEODEX
 ++
 
 > patching signature spoofing support
 
 >> patching services.jar
 *** BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/qcom.fmradio.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
 *** DALVIKVM_OPTS= -Xnoimage-dex2oat -verbose:class
Error preloading public library libandroid.so: dlopen failed: library "libstatssocket.so" not found: needed by /system/lib64/libandroid_runtime.so in namespace system
Aborted
 
 !! failed to apply patches
 
! Installation failed

Any help is apreciated