News for hackers. Stuff that matters.
Re:Android Studio 4.0 by heavyset_go on Thursday May 28, 2020 @06:17PM (#23343528)
iOS simulator can leverage the host's macOS libraries and kernel. Android doesn't share anything at all with Windows or macOS, and shares only the kernel at best with Linux. The best you can hope for is running Android in a container on a host Linux system, or via WSL. Unless you can get containers running natively on macOS, or run a Linux kernel a la WSL, there will need to be a layer of emulation to run Android.
Re:Android Studio 4.0 by xenadu02 on Thursday May 28, 2020 @10:36PM (#23345738)
While the iOS Simulator does share the host kernel it does not share libraries. It is effectively a separate userspace, with its own launchd_sim, its own mach bootstrap namespace, and so on.

The only exception to that is libsystem_{pthread,kernel,platform} because those form the kernel's ABI boundary. Libraries like libc, libdispatch, et al are the iOS build and use the iOS ABI.

Re:Android Studio 4.0 by heavyset_go on Sunday May 31, 2020 @09:32PM (#23374755)
Thanks for the clarification, I was under the impression that they shared libraries like the browser engine and what not. Not sure where I got that misconception.
Re:Android Studio 4.0 by Kipters on Thursday May 28, 2020 @07:22PM (#23344293)
I find it a bit ironic that WSL was born for supporting Android apps on Windows (Mobile)
Re:Android Studio 4.0 by qwerty456127 on Thursday May 28, 2020 @07:47PM (#23344521)
> Android doesn't share anything a

An Android app is a Java app using a set of special APIs. Why can't it run on a host JVM given some libraries implementing the same APIs? I'm not interested in the NDK.

Re:Android Studio 4.0 by MaulingMonkey on Thursday May 28, 2020 @08:42PM (#23344988)
> Why can't it run on a host JVM given some libraries implementing the same APIs?

That's a hideously huge API surface to double-implement - with a new and unique set of bugs reducing it's usefulness in CI builds - for slightly improved performance in a relatively niche dev edge case (!ndk android dev without android hardware.) You'd also need to skip conversion to DEX format (or convert back) to run on a standard JVM.

But your suggestion isn't technically impossible. You could (re)implement the subset of APIs your application happens to use yourself, if you really wanted to go down that route - which by virtue of being a much smaller subset of the APIs than the entire Android Java API surface, wouldn't even be practically impossible.

Re:Android Studio 4.0 by pjmlp on Friday May 29, 2020 @05:11AM (#23347891)
What one can expect, they don't even manage to keep up with Java.