Remix.run Logo
harvie 10 hours ago

I beleive Android 16 now comes with termux-like Linux environment that can be enabled via developer settings menu.

push0ret 9 hours ago | parent | next [-]

Big difference! That's a full VM, while Termux is more like a Debian container. For most use cases you will have a better time with Termux, which also ships useful Android integrations such as clipboard and notifications.

cromka an hour ago | parent [-]

Wait, isn't Termux based on Alipine?

functionmouse 9 hours ago | parent | prev | next [-]

Yeah but it sucks. There's a button in its settings to install a Debian chroot environment; gave it a go and it bricked itself, had to clear the app's storage and factory reset it.

NoGravitas 8 hours ago | parent | next [-]

Yeah, I can always use the Android Terminal once. If I re-open it, it says it's corrupted, and has to delete and re-install its minimal Debian environment.

getpokedagain 9 hours ago | parent | prev | next [-]

Add to this list that it tends to not work while connected via a VPN. Not sure why but this makes me very skeptical of it.

JoshTriplett 6 hours ago | parent | next [-]

Probably because their handling of VM networking isn't very robust.

getpokedagain an hour ago | parent [-]

Why should booting a Linux VM require network access right away.

functionmouse 7 hours ago | parent | prev [-]

that's sketch city. Why does it care? What are they looking for?

getpokedagain an hour ago | parent [-]

I'm thinking maybe they just want me to keep using termux over their sketchy shit

gf000 9 hours ago | parent | prev [-]

A bug in a not even beta program makes it 'suck'?

Antibabelic 8 hours ago | parent | next [-]

I don't understand this comment. Yes, absolutely. Alpha versions of software absolutely suck. The end goal is making it not suck, but if it's full of breaking bugs your can't just say it doesn't suck just because they're expected.

yjftsjthsd-h 8 hours ago | parent | prev [-]

If it's not even a beta, then it can hardly be replacement for termux.

fmajid 9 hours ago | parent | prev | next [-]

It's extremely flaky and unreliable, however:

https://social-cdn.vivaldi.net/system/media_attachments/file...

Aachen 9 hours ago | parent | prev | next [-]

(it's unreliable, see second edit)

Does it? I've looked at it only briefly (like enabled it, waited a while for it to download something big, then got a basic shell) but it seemed much less capable than Termux. Can you get cell tower info or copy to clipboard for example, or use other Android APIs?

Edit: looked into it a bit more, /etc/issue says it's a Debian 13 (latest stable), apt works with sudo (this is a locked-down device where I don't have root permission on, why does it need a fake sudo to use apt?) but of course programs like wavemon are useless because Android doesn't let you access the WiFi interface. There's no settings besides port forwarding and resetting the "partition". I don't see any documentation or info on how/whether you can interface with the rest of the system in any way. Looking on the web for Android terminal or "Linux developer environment" (as the system settings calls it) is predictably useless and only results in Google's unrelated Android SDK or other terminal emulator apps

Edit 2: okay, beware of it: I was curious if the same "you can't make the OS not kill your script" problem also happened in this OS terminal and.. it's worse. So I ran `while true; do date >> latest.txt; sleep 10; done` to see how long it'd stay alive and then did some other tasks like turning the screen off and on, opening a navigation app and zooming into a dense city, and loading a few websites. Locked the screen once more for good measure and then unlocked and opened the terminal. Guess what? It's broken. Not just crashed: I simply cannot start it anymore. The only "error handling" (Fehlerbehebung it says) step it offers is to delete all data and start with a clean system. The stack trace says there's a nullpointer in TerminalWebViewClient, with the next line being in Trichrome. It's a web browser apparently

yjftsjthsd-h 8 hours ago | parent | next [-]

> apt works with sudo (this is a locked-down device where I don't have root permission on, why does it need a fake sudo to use apt?)

It's a VM running normal Debian. Inside the VM, you do have root, and that sudo isn't fake.

jsight 8 hours ago | parent | prev [-]

YMMV, but I've had pretty good luck with just force closing it and launching again when getting errors like that. It doesn't necessarily mean the whole environment is corrupt, even though that is the recovery option that is presented.

It is very unreliable though. I hope Android 17 improves it, as other than the restart issues, I've generally found it to be very functional.

kreddor 4 hours ago | parent | prev | next [-]

Even if you have Android 16 it's not guaranteed the terminal works. It's disabled by Samsung on my Galaxy A55 for some reason. Maybe the hardware doesn't support the feature.

cess11 10 hours ago | parent | prev | next [-]

Even more reason to keep supporting Termux.

JoshTriplett 6 hours ago | parent | prev | next [-]

I'm really looking forward to that being more usable, but it isn't quite there yet. The GUI especially.

prettyblocks 6 hours ago | parent | prev [-]

Yes, it's good, but it doesn't have access to any sensor apis.