Live data from Hacker News

Virtual Machine as a core Android Primitive

android-developers.googleblog.com

141–150 of 177 posts

Re: Virtual Machine as a core Android Primitive

#141
post #79

So what is something running in this virtual machine allowed to do? Talk to the Internet? Talk to the screen? Talk only to whatever started it? How much of this is closed source?

This is probably for playing DRM content, apps like Netflix will provide an encrypted VM image to play a movie.

DRM already uses a trusted execution environment (TEE), which provides more robust isolation than a VM. Thus I doubt needs of video streaming apps are the main motivation.

Re: Virtual Machine as a core Android Primitive

#143
post #111

Earlier quoted context omitted.

It is still baffling that root is so shunned upon in the Android communities. Imagine not having root access to your linux laptop. Magisk users are persecuted and punished by Google for getting root access, which is the bare minimun for a device you own.

Easy, that is how many of us use UNIX like OSes, macOS, Windows devices on corporate environments. Not everyone gets to be root, and even for devs there are IT management tools that only allow root for specific use cases, or time boxed.

Sure, you shouldn't always get to be root on other people's computers. But you absolutely should get to be root whenever you want on your own computers.

Re: Virtual Machine as a core Android Primitive

#144

Looks like something absolutely overengineered and unnecessary. Why do you need a virtual machine with a separate kernel? Why do you need to protect it from kernel? I guess, it is made mostly for playing DRM content?

It is. I'd like to believe that the android team is removed enough from Google's shenanigans that they aren't doing it specifically for them, but there are a lot of corporate app developers (including Google) who want exactly this feature. This means much higher difficulty hacking in multiplayer games (yes haha mobile games, but they're huge in china for example), increased DRM for Netflix et al., and I'm sure the chrome for Android team is salivating at the prospect of running your browser in a trusted VM. Your bank obviously would also enjoy the added security but in reality the current safeguards work well enough for these purposes. This is about protecting apps from adversarial users, not protecting apps from unwittingly infected users.

Re: Virtual Machine as a core Android Primitive

#145
post #111

Earlier quoted context omitted.

Easy, that is how many of us use UNIX like OSes, macOS, Windows devices on corporate environments. Not everyone gets to be root, and even for devs there are IT management tools that only allow root for specific use cases, or time boxed.

Sure, you shouldn't always get to be root on other people's computers. But you absolutely should get to be root whenever you want on your own computers.

[deleted]

Re: Virtual Machine as a core Android Primitive

#146
post #111

Earlier quoted context omitted.

Easy, that is how many of us use UNIX like OSes, macOS, Windows devices on corporate environments. Not everyone gets to be root, and even for devs there are IT management tools that only allow root for specific use cases, or time boxed.

Sure, you shouldn't always get to be root on other people's computers. But you absolutely should get to be root whenever you want on your own computers.

Depends, that is how normies get Ask Jeeves toolbars.

Re: Virtual Machine as a core Android Primitive

#147
post #118

Earlier quoted context omitted.

No, I think the reason is that not letting user have full control over hardware is more profitable for manufactures, government and economy as a whole.

Anyone that misuses their root account to have an exploit taking place inside the organization gets shown the door.

And what is "getting shown the door" with your own device? A Fullscreen message telling you you are now banned from the device you spent a months wages on?

Re: Virtual Machine as a core Android Primitive

#148

Earlier quoted context omitted.

This is probably for playing DRM content, apps like Netflix will provide an encrypted VM image to play a movie.

DRM already uses a trusted execution environment (TEE), which provides more robust isolation than a VM. Thus I doubt needs of video streaming apps are the main motivation.

The DRM TEE on Android needs to be baked in at the factory. If an app brings its own DRM then it's not able to use the TEE. If this enabled apps to use TEE like functionality it'd be good for that use case.

Re: Virtual Machine as a core Android Primitive

#149

Looks like something absolutely overengineered and unnecessary. Why do you need a virtual machine with a separate kernel? Why do you need to protect it from kernel? I guess, it is made mostly for playing DRM content?

DRM on Android is already ubiquitous and runs in trusted hardware contexts (TEEs). These are also used for Android’s secure key storage.

Normal apps usually don’t have the opportunity to run there, so this levels the playing field somewhat in terms of security.

And unless there is also attestation or binary encryption involved, I doubt this would give app developers any DRM-like capabilities.

Re: Virtual Machine as a core Android Primitive

#150
post #42

Earlier quoted context omitted.

> if I spin up a VM with networking disabled I feel pretty confident I can run anything safely, even malware is not going to escape. You are putting too much faith in your VM monitor to keep you safe. There's a lot of attack surface in (for example) QEMU peripherals, and there's plenty of examples of VM escape [1]. CrosVM is probably the only publicly available VMM I'd be willing to trust, and even then I'd be nervou…

While QEMU uses C, which is not great, it has on its side 15+ years of hardening by the KVM developers. The problem with QEMU is not so much insecurity, it's that it contains the kitchen sink. However, most of the exploits you'll find in QEMU are against configurations that are never used in real world virtualization scenarios where guests are untrusted. You can recognize them because hardware not commonly used with…

> But now it's been tamed and there's also passt, a much higher performance and much more secure implementation of user-mode networking

In case anyone else needs a link: http://blog.vmsplice.net/2021/10/a-new-approach-to-usermode-...

Post reply on HN