News for hackers. Stuff that matters.
Re:Google have declared Droidscript is malware by yjftsjthsd-h on Tuesday April 27, 2021 @11:29AM (#26957275)
Given the issues that termux has hit, they're certainly moving that way.

https://github.com/termux/termux-packages/wiki/Termux-and-An...

Re:Google have declared Droidscript is malware by donio on Tuesday April 27, 2021 @11:39AM (#26957432)
Once there is no way to run Termux that will be the end of the line for me and I've been on the Android train since the G1 days. I am ok with installing it from F-Droid or adb as long as it remains runnable. (I guess I am in the bargaining phase)

I don't think that I am ok with not being able to easily run my own executables since I rely on running a few Go utilities in the Termux CLI.

Re:Google have declared Droidscript is malware by yjftsjthsd-h on Tuesday April 27, 2021 @11:45AM (#26957521)
I'm personally planning to replace termux with a full chroot; my phone is rooted, so all I need is an app to give me the actual terminal emulator and I'm good. This would be fine for running the odd Go utility, but is likely to be insufficient if you're doing anything with the actual Android API (which termux has been great at). And of course, in the long term this is just another reason for me to hope the pinephone gets to prod-ready ASAP:)
Re:Google have declared Droidscript is malware by suifbwish on Tuesday April 27, 2021 @12:39PM (#26958289)
I am curious what root kit you use for rooting your droid? I’ve always been hesitant to trust 3rd party kits like that.
Re:Google have declared Droidscript is malware by yjftsjthsd-h on Tuesday April 27, 2021 @01:26PM (#26958898)
I use magisk; it's open source and reputable.
Re:Google have declared Droidscript is malware by nromiun on Tuesday April 27, 2021 @11:35AM (#26957363)
Yep, Termux is the most used app on my phone and I don't know what I will do when they have to migrate to SDK 29. I will probably buy another phone and install LineageOS.
Re:Google have declared Droidscript is malware by negativegate on Tuesday April 27, 2021 @12:26PM (#26958105)
This is the first I've heard of Termux and now I'm curious what you use it for. Like are you SSHing into other environments?
Re:Google have declared Droidscript is malware by dheera on Tuesday April 27, 2021 @12:41PM (#26958313)
SSH, and also when you're on the road and want to write a simple Python script to process something, or do something with your sensor data logging. Termux has a Python API to access sensor data, it has numpy, it has requests, so you can do a lot.
Re:Google have declared Droidscript is malware by nromiun on Tuesday April 27, 2021 @12:37PM (#26958264)
https://www.passwordstore.org

Here is a popular CLI app to manage passwords. I use it on my desktop, laptop and phone.

Re:Google have declared Droidscript is malware by terseus on Tuesday April 27, 2021 @03:47PM (#26960591)
You don't need Termux for that, there are native clients for Android, I use this one: https://play.google.com/store/apps/details?id=dev.msfjarvis....
Re:Google have declared Droidscript is malware by nromiun on Wednesday April 28, 2021 @12:02AM (#26965428)
There are native clients, but can you use git to sync the encrypted passwords with your other devices?

And that was just one example. You can also use python as a much better calculator, share files over wifi with a web server etc.

Re:Google have declared Droidscript is malware by donio on Tuesday April 27, 2021 @12:58PM (#26958537)
For me ssh to access my main Emacs session is a big part of it but I also run some shell scripts and CLI tools and services written in Go. ssh-ing back into the phone for file transfer is another important use.
Re:Google have declared Droidscript is malware by femiagbabiaka on Tuesday April 27, 2021 @11:42AM (#26957475)
Curious, is the Librem 5 an alternative you would consider?
Re:Google have declared Droidscript is malware by nromiun on Tuesday April 27, 2021 @11:48AM (#26957556)
Sure, it is a good alternative. But I still need a phone to do some work, like Whatsapp and banking apps (which I don't think Librem supports). So I am waiting for it to become stable and a little mature.
Re:Google have declared Droidscript is malware by femiagbabiaka on Tuesday April 27, 2021 @12:24PM (#26958078)
Makes sense!
Re:Google have declared Droidscript is malware by edrxty on Tuesday April 27, 2021 @12:21PM (#26958031)
Does LineageOS provide a workaround for this?
Re:Google have declared Droidscript is malware by nromiun on Tuesday April 27, 2021 @12:27PM (#26958117)
Unfortunately there is no good alternative to Termux (its Android API). But with a rooted phone you can use chroot to install a Linux distribution. LineageOS is just a popular ROM for rooted phones.
Re:Google have declared Droidscript is malware by edrxty on Tuesday April 27, 2021 @02:41PM (#26959782)
I run lineage but I don't typically use my terminal on my phone unless I'm using it for SSH. I hadn't though of the chroot angle though. That's rather interesting...
[dead]
Re:Google have declared Droidscript is malware by nromiun on Tuesday April 27, 2021 @11:40AM (#26957448)
It was just a figure of speech and if you know how Termux works even a rooted phone is no alternative. (Termux exposes Android APIs, like camera and GPS.)
Re:Google have declared Droidscript is malware by pjmlp on Tuesday April 27, 2021 @12:25PM (#26958088)
Only because Termux developers refuse to use Java APIs and don't accept Android isn't a POSIX clone.
Re:Google have declared Droidscript is malware by higerordermap on Tuesday April 27, 2021 @12:32PM (#26958204)
Chill dude. How do I run gcc in java beanshell?
Re:Google have declared Droidscript is malware by pjmlp on Tuesday April 27, 2021 @01:10PM (#26958692)
Re:Google have declared Droidscript is malware by nulld3v on Tuesday April 27, 2021 @02:06PM (#26959332)
Can you elaborate on how this link is relevant?
Re:Google have declared Droidscript is malware by pjmlp on Wednesday April 28, 2021 @02:02AM (#26966161)
Read it and learn how to use a C compiler on Android without termux.
Re:Google have declared Droidscript is malware by yjftsjthsd-h on Tuesday April 27, 2021 @05:09PM (#26961593)
Android certainly has an acceptable POSIX component when it's not artificially broken.
Re:Google have declared Droidscript is malware by pjmlp on Wednesday April 28, 2021 @02:04AM (#26966174)
Where is POSIX listed here?

https://developer.android.com/ndk/guides/stable_apis

> Starting in Android 7.0, the system prevents apps from dynamically linking against non-NDK libraries, which may cause your app to crash. This change in behavior aims to create a consistent app experience across platform updates and different devices. Even though your code might not be linking against private libraries, it's possible that a third-party static library in your app could be doing so. Therefore, all developers should check to make sure that their apps do not crash on devices running Android 7.0. If your app uses native code, you should only be using public NDK APIs.

Taken from https://developer.android.com/about/versions/nougat/android-...