News for hackers. Stuff that matters.
Re:Termux is an Android terminal emulator and Linux environm... by bosswipe on Tuesday November 03, 2020 @02:53PM (#24983303)
I hate the direction Google is taking Android. They're on an appliance-ification quest trying to hide any exposed linux-ness of the OS, including trying to remove developer access to all file handles. They always claim it's in the name of security but my suspicion is that it's an effort to transition from Linux to Fuchsia.
Re:Termux is an Android terminal emulator and Linux environm... by varispeed on Tuesday November 03, 2020 @03:00PM (#24983370)
For me so far the worst thing Google did was disabling API for call recording. That makes new phones pretty much useless for me. I always record calls, so that I can go back to them if I forget something or that nobody can claim they said something when they didn't (most recently insurance salesperson told me I will have option X if I take their insurance and they once I bought it, there was no such option. Once I pulled the "I have recorded your salesman lying to me", I got a prompt refund and apologies).
Re:Termux is an Android terminal emulator and Linux environm... by joecool1029 on Tuesday November 03, 2020 @04:18PM (#24984100)
I got around this limitation by using LineageOS. Unfortunately, I'm forced to compile my own builds with call recording enabled for the US because there's no way to tell which state you're in through MNC-MCC numbers and states like California and Pennsylvania have lame two-party consent laws for recording calls[1][2]. My state is single party consent. Just super lame that all my featurephones from the mid-2000's could record without modification.

[1] https://en.wikipedia.org/wiki/Telephone_call_recording_laws#...

[2] File to edit: https://github.com/LineageOS/android_packages_apps_Dialer/bl...

Re:Termux is an Android terminal emulator and Linux environm... by causality0 on Tuesday November 03, 2020 @05:19PM (#24984679)
I'm surprised and disappointed LineageOS disables it as well. Do they block apps with the word "torrent" in them as well?
Re:Termux is an Android terminal emulator and Linux environm... by vorpalhex on Tuesday November 03, 2020 @05:12PM (#24984605)
One would think a stern warning dialog would be sufficient...
Re:Termux is an Android terminal emulator and Linux environm... by dredmorbius on Tuesday November 03, 2020 @05:31PM (#24984777)
"This call may be recorded..."
Re:Termux is an Android terminal emulator and Linux environm... by tyingq on Tuesday November 03, 2020 @03:36PM (#24983684)
I assume you're up on all the various local laws on recording conversations, so this is for others, not you. Look into it before doing this.
Re:Termux is an Android terminal emulator and Linux environm... by varispeed on Wednesday November 04, 2020 @05:06AM (#24987763)
Ok but then why don't they disable the camera and a microphone when you record videos? You can hide the phone in a way that the person you talk to won't see you are recording it. I don't accept this explanation.
Re:Termux is an Android terminal emulator and Linux environm... by tyingq on Wednesday November 04, 2020 @05:29AM (#24987853)
Yes, laws overlap. The ones I'm talking about are generally about "intercepting communications" i.e., "recording conversations". In general, the US requires one-party consent, but there are 15 states that require two-party consent.
Re:Termux is an Android terminal emulator and Linux environm... by varispeed on Wednesday November 04, 2020 @06:35AM (#24988150)
So you can put your phone on recording e.g. in a restaurant "intercepting communications", but when someone calls you it's a no-no. Regardless, in my country recording is perfectly legal and yet Google has disabled it. If this is the law, then don't you think they should either follow it or not? I am not sure how you can only partially follow the law.
Re:Termux is an Android terminal emulator and Linux environm... by tyingq on Wednesday November 04, 2020 @07:42AM (#24988473)
They are doing the lazy thing and configuring it for "lowest common denominator". Yes, it's irritating. The effort to integrate GPS and allow/not-allow would be low.

Maybe it's complicated for telephone conversations where you're not breaking a law locally, but are breaking a law remotely?

Re:Termux is an Android terminal emulator and Linux environm... by varispeed on Wednesday November 04, 2020 @08:19AM (#24988723)
I'd rather think that insurance companies and similar who rely on sales over the phone lobbied Google to disable it. The law thing for me is too poorly done to be a valid excuse.
Re:Termux is an Android terminal emulator and Linux environm... by sxiin on Tuesday November 03, 2020 @04:15PM (#24984067)
Not against the law in Finland at least and thus seems unfair that rooting is needed to do this.
Re:Termux is an Android terminal emulator and Linux environm... by fencepost on Tuesday November 03, 2020 @03:11PM (#24983462)
You may be better off with a VoIP service and a softphone client, though I don't think any are as smooth as the phone native performance
Re:Termux is an Android terminal emulator and Linux environm... by wtracy on Tuesday November 03, 2020 @06:00PM (#24985032)
This is more a limitation of smartphone hardware than of Android. In most phones, calls are entirely handled by the baseband processor, and the ARM chip never sees any of the audio data.

Android doesn't expose it because the hardware doesn't expose it to the OS in the first place.

Re:Termux is an Android terminal emulator and Linux environm... by varispeed on Wednesday November 04, 2020 @05:08AM (#24987773)
I am not sure if that is true. I am running Samsung S9 with an early Android version and call recording works just fine. The Samsung released an update that disables call recording altogether (and does not allow you to turn off updates, so I've been postponing the OS update for almost two years now every day or so).
Re:Termux is an Android terminal emulator and Linux environm... by p_l on Tuesday November 03, 2020 @04:20PM (#24984125)
DISCLAIMER: It's been some time since I used to read release notes for every new api level

Well... IIRC there was never an official call recording API, and in fact on some phones it was physically impossible to snoop on the telephony audio.

Most recording apps used to either work only on some qualcomm single chip phones where baseband exposed audio path to application processor, or enabled microphone recording in hopes of catching the audio from speakers (and not all phones allowed simultaneous mic use like that).

Re:Termux is an Android terminal emulator and Linux environm... by CivBase on Tuesday November 03, 2020 @05:37PM (#24984845)
Ironically, the biggest concern I have with "security" on my Android phone is Google itself. Their overzealous collection of private data makes them a constant liability which I have practically no control over other than to abandon the Android platform altogether. I've ditched Google for almost everything else, but Android is one of the few things which I don't have a reasonable alternative for.
Re:Termux is an Android terminal emulator and Linux environm... by AsyncAwait on Tuesday November 03, 2020 @04:58PM (#24984492)
That's why I decided to get a PinePhone this year.
Re:Termux is an Android terminal emulator and Linux environm... by pjmlp on Tuesday November 03, 2020 @04:18PM (#24984107)
Android was always about Java (now Kotlin).

The NDK was only added in 2.0 to appease game developers and workaround for Dalvik anemic performance.

Any access to Linux APIs was accidental and never part of the official native APIs.

Re:Termux is an Android terminal emulator and Linux environm... by bosswipe on Tuesday November 03, 2020 @05:59PM (#24985026)
But Java has interfaces for interacting with the host OS, for example you can create a file by writing `new File("myfile").createNewFile()` which makes a Linux call under the hood. Android 11 breaks that File API.
Re:Termux is an Android terminal emulator and Linux environm... by pjmlp on Wednesday November 04, 2020 @01:02AM (#24986695)
The same API on Windows does a Windows call under the hood, on IBM I does a TIMI call under the hood and on PTC bare metal it does the work itself.

Android ported to any of those platforms would still make use of File("myfile").createNewFile() with zero dependencies on a Linux implementation.

No it doesn't, the API call is still valid in Android 11, as long as the filesystem reserved for the application is used.

Even so, it has to do with the Java implementation.

Re:Termux is an Android terminal emulator and Linux environm... by stuaxo on Tuesday November 03, 2020 @05:00PM (#24984514)
It's a shame as it you can make much more powerful apps with a native API.
Re:Termux is an Android terminal emulator and Linux environm... by pjmlp on Tuesday November 03, 2020 @05:39PM (#24984861)
On modern Android Java is native both ways.

It is the main userspace programming APIs are written in. Followed by the increased use of Kotlin.

In both cases, the final execution tier does produce a pure binary, when the device is idle, after getting the PGO data from the JIT tier.

The NDK C and C++ APIs are based on ISO C, ISO C++, OpenGL, Vulkan, OpenSL (now replaced by AAudio), and Android specific native APIs.

Plenty of choice, just not Linux specific APIs.

Re:Termux is an Android terminal emulator and Linux environm... by badsectoracula on Tuesday November 03, 2020 @07:33PM (#24985625)
> They always claim it's in the name of security

Like pretty much everything that goes against the user and people are way too quick to accept anything that has the word "security" applied to it.

Re:Termux is an Android terminal emulator and Linux environm... by Ballas on Wednesday November 04, 2020 @02:19AM (#24987005)
I heard somebody mispronounce the color fuchsia as fucks-ya. Seems apt in this case?
Re:Termux is an Android terminal emulator and Linux environm... by yorwba on Wednesday November 04, 2020 @04:02AM (#24987445)
The color fuchsia is named after the plant which is names after the German botanist Leonhart Fuchs, whose surname means "fox" and is pronounced roughly "fooks". I strongly suspect that the usual English pronunciation is the result of taboo avoidance. (If it were a regular sound change, you'd expect "axial" to be pronounced "ashal" as well.)
Re:Termux is an Android terminal emulator and Linux environm... by Valkhyr on Tuesday November 03, 2020 @08:33PM (#24985913)
This.