I have a Pixel 6, which got the update that gave it a “Linux development environment”.
https://developer.android.com/about/versions/15/release-notes#linux-development-environment
Starting with Android 15 QPR1, you can try the experimental Linux terminal app that’s available on select devices. This app provides access to a Linux terminal environment within a virtual machine (VM).
Of course, I had to put NixOS on it. It barely works, but it works:
Try at your own risk, probably broken: https://github.com/dramforever/droid-nixos/