Termux-MTKClient: Modified MTKClient For Termux in a Simulated Sudo/Root Ubuntu Termux Environment w/ Error

My Specs:

  • Pixel 6 Pro
  • Model: gs101
  • HW Version: MP1.0
  • Ram: 12 GB
  • Android 14
  • OS: crDroid 10.8
  • Kernal: 6.1.90-android14-11-g5a51bd3dd95b

I'm running a non-rooted Pixel 6 Pro with/ a root-termux sudo privileged simulated Ubuntu environment on an up-to-date Termux installation. Admittedly, I was on that old horse of trying to figure out how to install the su-binary onto my Android without using Magisk. Fool's errand I am sure, but I was pleasantly surprised to come across termux-mtkclient modified repository. Interestingly enough, I thought of an MTKClient version for tethering from Android to Android not that long ago, but my idea was to create a Bugjaeger-like app that housed MTKClient.

That being said, I happened to install termux-mtkclient into a sudo-root-simulated-Ubuntu-environment, and the installation instructions were great. However, I did run into an error with the keystone-engine not wanting to install.

``` error: Legacy-Install-Failure

 Encountered an error while trying to install package
       Keystone-Engine

note: This is an issue with the package mentioned above, not pip. ```

So, I did a little searching around, and I actually found a solution to properly install the Keystone-Engine when this happens.

``` pkg install cmake

pip3 install --no-build-isolation -r requirements.txt ```

However, after applying the full installation of which everything was installed without another error, I found myself facing a new problem.

root@localhost:~# cd mtkclient root@localhost:~/mtkclient# python3 mtk -w /storage/emulated/0/test-folder python3: can't open file '/root/mtkclient/mtk': [Errno 2] No such file or directory root@localhost:~/mtkclient#

Of course, I tried both prefixes to python and python3.

root@localhost:~/mtkclient# python mtk -w /storage/emulated/0/test-folder bash: python: command not found root@localhost:~/mtkclient#

I was met with the same result, and I imagine that the issue is that I am running Ubuntu in a root-simulated environment with sudo privileges, but without the actual su binaries. I ended up having to install a version of python2, but it still couldn't locate the files.

![Image](https://github.com/user-attachments/assets/1e1023a5-fdd9-4540-be17-1f4cca910566)

So my question is, does anyone know of a solution that doesn't require me to reinstall the Ubuntu environment without the root/sudo privileges? I am sure that there is a solution that will also allow me to keep the simulated root environment, and yes, I know that I could just root my device, but I like trying to solve my problems with new ideas.

Maybe I'm stretching, but Thanks in advance.