diff -uNr unicorn-2.0.0/CMakeLists.txt unicorn-2.0.0.mod/CMakeLists.txt
--- unicorn-2.0.0/CMakeLists.txt	2022-07-07 18:49:09.000000000 +0300
+++ unicorn-2.0.0.mod/CMakeLists.txt	2022-07-21 01:42:48.698340580 +0300
@@ -133,15 +133,12 @@
             set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m64")
             set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m64")
         endif()
-    elseif(ANDROID_ABI)
-        string(FIND "${ANDROID_ABI}" "arm64" UC_RET)
-        file(WRITE ${CMAKE_BINARY_DIR}/adb.sh "#!/bin/bash\n\n# Auto-generated by CMakeLists.txt\n\nadb shell mkdir -p /data/local/tmp/build\n")
-
+    elseif(TERMUX_ARCH)
+        string(FIND "${TERMUX_ARCH}" "aarch64" UC_RET)
         if(${UC_RET} GREATER_EQUAL "0")
             set(UNICORN_TARGET_ARCH "aarch64")
         else()
-            string(FIND "${ANDROID_ABI}" "armeabi" UC_RET)
-
+            string(FIND "${TERMUX_ARCH}" "arm" UC_RET)
             if(${UC_RET} GREATER_EQUAL "0")
                 set(UNICORN_TARGET_ARCH "arm")
             else()
