Slashdot Mirror


Anbox Can Run Android Apps Natively On Linux (In A Container) (anbox.io)

Slashdot user #1083, downwa, writes: Canonical engineer Simon Fels has publicly released an Alpha version of Anbox. Similar to the method employed for Android apps on ChromeOS, Anbox runs an entire Android system (7.1.1 at present) in an LXC container. Developed over the last year and a half, the software promises to seamlessly bring performant Android apps to the Linux desktop.

After installing Anbox (based on Android 7.1.1) and starting Anbox Application Manager, ten apps are available: Calculator, Calendar, Clock, Contacts, Email, Files, Gallery, Music, Settings, and WebView. Apps run in separate resizeable windows. Additional apps (ARM-native binaries are excluded) can be installed via adb. Installation currently is only supported on a few Linux distributions able to install snaps. Contributions are welcome on Github.

In a blog post Simon describes it as "a side project" that he's worked on for over a year and a half. "There were quite a few problems to solve on the way to a really working implementation but it is now in a state that it makes sense to share it with a wider audience."

66 comments

  1. BankID by therealspacebug · · Score: 2

    If this could make is possible to run the app BankID, it would be awsome! (BankID is a used in Sweden to login to many websites like banks, drugstores, state websites, etc). The support for the desktop program for Linux ended a few years back, and since that, the mobile app is the only thing we GNU/Linux users can use.

    1. Re:BankID by Anonymous Coward · · Score: 0

      This could be great for Linux if it becomes a standard feature. The only area that Linux is lacking is in software library. Android has a lot of software that about a billion people in the world use daily.

    2. Re:BankID by davester666 · · Score: 1

      So, you can use apps "designed" for a pretty small screen with a touch-only UI, on a large monitor with a keyboard/mouse?

      I suppose that's better than just sitting on the floor with the lights off, but not by much.

      --
      Sleep your way to a whiter smile...date a dentist!
    3. Re:BankID by gsliepen · · Score: 1

      Having used BankID myself, I can tell you that the Linux version never worked well, but neither did the Windows version (I had one of those Gemalto NCR1 card readers that you had to connect to your computer via USB). The Mobile BankID app is a big step back in security. The Norwegian BankID system is much better; you still have a hardware token with a PIN code, but you don't need to connect it to your computer.

    4. Re:BankID by deltaromeo · · Score: 1

      Many of these apps are designed for larger tablets not just for small screens. Many newer laptops are touch screen. I think this may be pretty useful.

    5. Re:BankID by davester666 · · Score: 2

      Virtually no Android apps are even redesigned to work well on a tablet screen.

      Yes, the apps will run, but for any non-trivial app, it will suck.

      --
      Sleep your way to a whiter smile...date a dentist!
  2. Wish I could run... by Type44Q · · Score: 0
    I can't think of any android apps I'd like to run on Linux but I wish I could run Banshee on an android tablet; it's a pile of shit code-wise but i love the interface.

    Now back to your regular programming. ;)

    1. Re:Wish I could run... by Anonymous Coward · · Score: 0

      Why not run a real player like foobar2000? I've heard it works fine under Wine.

      Failing that, you could use DeaDBeeF, which isn't nearly as flexible, powerful or efficient as fb2k, but is miles better than Banshee.

    2. Re:Wish I could run... by Anonymous Coward · · Score: 0

      I can't think of anything I have to contribute to the topic being discussed, but I wish I could drive a city bus on the river. In my personal opinion, buses do not float on water, but if I load it with your family the world would get a boost in average intelligence.

      Now that you've skipped over my idiotic spam, you may read something you are actually interested in. Now let me say someone is stupid for saying grammar is irrelevant, while myself writing at the level of the GED recipient that I am.

      Boy is your comment history a fun read. It's like a walk through the fields of stupid.

    3. Re:Wish I could run... by Anonymous Coward · · Score: 0

      Since you spawned idiotic comments anyway.. Did you try deadbeef's Android version on Android? If so, is it any good? I don't have an Android to try.

      You can run Banshee on an Ubuntu tablet or perhaps an Android tablet modified to run the Ubuntu desktop.. OH SHIT Ubuntu on tablet is dead anyway!
      Btw Deadbeef on desktop linux is just a clone of Audacious 3.x which is a clone of winamp but also with a newer GUI. Kind of a tabbed unskinned winamp, unless you make sense of work in progress GUI customization features.

  3. It's in alpha, don't expect too much out of it by The+MAZZTer · · Score: 5, Informative

    at the moment.

    I loaded it into a VirtualBox Ubuntu 16.04 VM and ran into two problems. 1. is it doesn't properly start its background service after install. Once you start it the app will start up and display the list of Android apps. However launching one of these segfaults the whole thing.

    1. Re:It's in alpha, don't expect too much out of it by OrangeTide · · Score: 1

      Even if it's unstable, if I can play some of the games I bought a few years ago that would be brilliant. I've gone from having Android clamshells and tablets to phone only, so all I have left with a nice big screen are my Linux desktops. I do have Android TV but so few of my games run on it because of the intentional crippling Google has done to it.

      --
      “Common sense is not so common.” — Voltaire
    2. Re:It's in alpha, don't expect too much out of it by Anonymous Coward · · Score: 0

      Why the fuck would you play android games on a real computer ? There are much better games for real computers.

      Not to mention whatever you are playing will be in a cripplebox container.

    3. Re:It's in alpha, don't expect too much out of it by FudRucker · · Score: 1

      it is already a container, and you are using virtual box to run ubuntu which is a container too, you have a container within a container, like those Russian dolls within dolls, i think it would be best to run a container up on a native system to not add layers of complexity to a system that is already complex on its own (plus its an alpha release and still not ready for prime-time) but i hope it does make good progress because i love both Linux and android

      --
      Politics is Treachery, Religion is Brainwashing
    4. Re:It's in alpha, don't expect too much out of it by OrangeTide · · Score: 1

      I paid for some Final Fantasy re-releases for Android as well as Might & Magic: Clash of Heroes. I don't want to buy them again for PC (if they are even available).
      There are Android games that are equivalent to browser flash games, except they perform better and have better music. I'm mostly thinking of the thousands of tower defense games out there.

      So some little free project that lets me play the games I want and doesn't cost me anything except a little bit of my time sounds great.

      --
      “Common sense is not so common.” — Voltaire
    5. Re:It's in alpha, don't expect too much out of it by therealspacebug · · Score: 1

      Should you really run this in VirtualBox? The post says it's a LXC container. Those should be run with LXC right? (https://help.ubuntu.com/lts/serverguide/lxc.html) That might be why they segfault? I have not worked with LXC so I don't know. Currently I have used VirtualBox and VMware to make virtual machine, but this week I left all that for QEMU/KVM to get a completly free software experience. Though from what I understand LXC is a much more light way approach.

    6. Re:It's in alpha, don't expect too much out of it by Anonymous Coward · · Score: 0

      I'm sorry but Another World, Baldur's Gate, Baldur's Gate II, Bard's Tale, Carmageddon, Doom, Doom II, Doom 3, Final Fantasy VI, Final Fantasy VII, Grand Theft Auto III, Grand Theft Auto: San Andreas, Grand Theft Auto: Vice City, Grim Fandango, Guardians of the Galaxy, Half-Life 2, Icewind Dale, Jade Empire, LEGO Batman, LEGO Star Wars, Limbo, Max Payne, Minecraft, Planescape: Torment, Portal, realMyst, Secret of Mana, Shadowrun: Returns, Star Wars: Knights of the Old Republic, Terraria, The Walking Dead: Season One, The Walking Dead: Season Two, The Walking Dead: Season Three and The Wolf Among Us are better than anything you play. You wouldn't know a good game if you played one, kid.

    7. Re:It's in alpha, don't expect too much out of it by Anonymous Coward · · Score: 0

      Exactly, why would someone want to play an Android game on a real computer when they could play one of those instead?

    8. Re:It's in alpha, don't expect too much out of it by Anonymous Coward · · Score: 0

      Those are all Android games.

    9. Re:It's in alpha, don't expect too much out of it by OrangeTide · · Score: 1

      I have almost all of those for PC, so I did not re-buy them for Android. But I could not (at the time) get Final Fantasy for PC, so there you have it.

      --
      “Common sense is not so common.” — Voltaire
  4. Found the LUDDITE! by Anonymous Coward · · Score: 0

    Modern app appers know that ONLY apps can app apps! These LUDDITES are so desperate to become appy app appers that they're making a LUDDITE program that lets them app apps on LUDDITE computers! Appald Trump will put a stop to this by deporting these LUDDITES to LUDDITE Mexico!

    Apps!

  5. ARM binaries by Zaiff+Urgulbunger · · Score: 3, Interesting

    Additional apps (ARM-native binaries are excluded) can be installed via adb.

    What about if my Linux was running on an ARM cpu, e.g. on a Raspberry Pi?

    1. Re:ARM binaries by Anonymous Coward · · Score: 0

      I don't think the Pi kernel supports the features needed for the container

    2. Re:ARM binaries by Anonymous Coward · · Score: 0

      "The Pi kernel"? The Raspberry Pi is not one of those shitty Chinese boards where there is only the one kernel provided by the manufacturer.
      If you need some kernel features from the vanilla kernel to run this, then enable them and recompile.

  6. Did you mean: GNU/Linux by TeknoHog · · Score: 1

    Last time I checked, both Android and Chromebooks were already running the Linux kernel.

    --
    Escher was the first MC and Giger invented the HR department.
  7. good news fucked summary/title by gravewax · · Score: 2

    If it is running in a container that itself is running Android then it aint running fucking natively. still awesome news.

    1. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      Containers are just chroot on steroids, so, yeah, the apps run natively.

    2. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      It sounds like it's an ART interpreter executing directly in the host's native hardware instead of virtualizing the runtime. That means that there is only level of emulation going on, not two. Java has had this same model of execution for 21 years now (oh yeah--they *program* Android applications in Java don't they?). That means that the basic mode of running Android apps is not groundbreaking at all. What I wish they had done was implement this thing like Java. It's already in its own execution sandbox, after all. There is no need at all to run this in containers or with Ubuntu snaps. The thing is that Ubuntu has a fetish for those things.

      Unanswered question for this system that does not emulate the CPU of phone hardware: how do they deal with native code in those apps that have it?

    3. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      No it isn't in this case. As the article explains within the Container Android is running. Basically this is just a virtualised environment.

    4. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      It's running the android app on your desktop kernel. Container isolation doesn't mean it's virtualized, and using android libraries doesn't mean it's virtualized either. It is entirely accurate to say these apps are running native. In fact it's redundant, *all* android software is linux-native in the first place.

    5. Re:good news fucked summary/title by ChunderDownunder · · Score: 1

      Unanswered question for this system that does not emulate the CPU of phone hardware: how do they deal with native code in those apps that have it?

      They don't emulate ARM on an x86 host if that's what you mean.

      Intel at one point did release a library called Houdini, which does what you're asking.

    6. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      it behaves like a native app but in no way is it the same as it being a native app, it is abstracted/emulated through an Android OS that has been integrated into the underlying OS. it is closer to virtualised environment then a native app.

    7. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      it behaves like a native app but in no way is it the same as it being a native app, it is abstracted/emulated through an Android OS that has been integrated into the underlying OS. it is closer to virtualised environment then a native app.

      You are wrong. Linux containers don't have a guest kernel or the overhead traditionally associated with "virtualization." systemd uses Linux containers for better resource isolation on plain old desktop systems. They're not similar to qemu, kvm, or VirtualBox.

      "abstracted/emulated" is not something you can be so ambiguous about as to separate by a slash: all complicated computing uses abstraction, but only some uses emulation. They are squishy concepts (ex. is all java "emulated" before JIT runs?), but they are separate enough you can't wave your hands here.

      Granted, the Anbox web page has called out the OpenGL pipeline as deeper and more complicated in Anbox than ChromeOS Android compatibility, which is in turn a little deeper than plain Android. However that applies just to graphics subsystem. LXC itself is not "emulation" nor is it "virtualization". Plain Java code should be expected to run at the same speed in Anbox as native x86 Android phones like Lenovo K800.

    8. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      There is no need at all to run this in containers or with Ubuntu snaps.

      There is a need. The Java sandbox has always had terrible security, which is why Chrome has never supported Java applets. Java's language sandbox is an early failure and a teaching moment for langsec. Even regular Android wisely doesn't depend on the Java sandbox. Instead it depends on Linux's ability to isolate uids, plus SELinux policies to mitigate the many local root exploits and avenues of cross-user data leaks that exist.

      Therefore I expect they need LXC to offer Unix uid isolation to the inner Android system, since Android runtime requires this, without polluting the outer system's uid space.

      Unanswered question for this system that does not emulate the CPU of phone hardware: how do they deal with native code in those apps that have it?

      presumably the app doesn't run.

    9. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      "Anbox runs an entire Android system (7.1.1 at present) in an LXC container."

      Doesn't sound native to me if it's running under that...

    10. Re:good news fucked summary/title by Anonymous Coward · · Score: 0

      So, you are so ignorant of how containers work you base your entire understanding of the system on a single line in a summary written by someone unaffiliated with the project. Gee, why didn't you just lead with "I don't know anything about what what I am talking about" and save us all the time?

      I will explain it to you - it runs an entire Android userspace.

  8. Good example of how Android isn't really Linux by Anonymous Coward · · Score: 0

    There are a lot of people who brag about Linux's popularity just because the Linux kernel is buried deep under the many layers that make up Android, and Android is very widely used.

    Well I think that this project just goes to show how much Android is not Linux.

    If Android should really be considered "Linux", then it would be so much easier to run an Android app on a typical GNU/systemd/Linux system.

    Here we have somebody who works for one of the main desktop/server Linux vendors, and it took even him a long time, a lot of effort, and apparently some difficulty just to get something that barely works.

    Yeah, the Linux kernel is way deep down inside of Android, but it's buried so deeply that it's pretty much irrelevant.

    It's misleading to consider Android a form of Linux when it's damn difficult to get an Android app running on a traditional Linux distro.

    1. Re:Good example of how Android isn't really Linux by Anonymous Coward · · Score: 0

      > show how much Android is not Linux.

      Android is not Ubuntu or Fedora, but it is exactly the same Linux underneath.

      > then it would be so much easier to run an Android app on a typical GNU/systemd/Linux system.

      It is easy to run Android apps on Gnome/KDE/etc, just run the SDK.

      > but it's buried so deeply that it's pretty much irrelevant.

      The Windows kernel is buried deep inside of Windows, that must make it irrelevant too.

      > It's misleading to consider Android a form of Linux

      Ubuntu (or Fedora, or SUSE) is a Linux distro that happens to use GNU and Gnome/KDE/etc.

      Android is a Linux distro for _exactly_ the same reason - it uses the Linux kernel - but it happens to use different GUI and stuff.

      The difficulty you have is simply with the terminology.

    2. Re:Good example of how Android isn't really Linux by Anonymous Coward · · Score: 0

      What should worry us geeks is not the operating system. That's easy to emulate.
      The app code itself disappears as apps die, get region- or hardware-locked.
      Unlike old windows exes, it's not easy to just find someone sharing it on their website because
      1) the app stores hide the apk abstractions unless you've rooted your machine
      2) today's world you can't easily put a file up without someone coming to take it down, especially now that hosting is rarely private.

      It is alarming to me that with how commonly us power-users download software, there was never any outcry over being unable to share a single program across devices without the mothership finding out. This is not just a problem with Android. I've had issues with being way behind the curve running a Centos-derivative whose supported browsers were behind the curve the day I downloaded them. Google's extension store locked out my version years ago. At some point (Chrome version 39, I think) Google disabled local installs, so even our uber-geek CLI workarounds and unapproved extension repositories have been moot. Firefox turned the same way about 6 versions ago (you can't force-install anything private even if you have old versions laying around an older profile).
      Windows 8+ also gets me nervous, because I decided to stay on 7.

      I am more worried than most, because until yesterday I had spent years with a broken install whose package repos failed due to a few conflicting repos that were causing dependency issues. Still the only way to download, say, a fresh Firefox is to dist-upgrade or radically mess with my repos again (risking the same breakage I had run into).

  9. Finally! by Anonymous Coward · · Score: 0

    The year of Android apps on the Linux desktop has commenced!

  10. sounds like a great idea by FudRucker · · Score: 2

    there are some android apps i like and would enjoy running on a Linux desktop with a proper mouse & keyboard, for example SDRTouch with my SDRPlay software defined receiver would be much better than on a little bitty tablet, and hopefully using a mouse with it would make it nicer for adjusting the frequency or bandwidth and other stuff, good luck to the developers i hope this pans out to be a great program and improves both Linux and android

    --
    Politics is Treachery, Religion is Brainwashing
    1. Re:sounds like a great idea by Pikoro · · Score: 1

      try gqrx

      --
      "Freedom in the USA is not the ability to do what you want. It is the ability to stop others from doing what THEY want"
  11. works with ChromeOS & crouton? by Anonymous Coward · · Score: 0

    I wonder if this has hope of working with crouton, the Ubuntu chroot for ChromeOS.

    I want emulated Android mainly for privacy.

    I cannot use the native ChromeOS Android support because it's not privacy-respecting: it force-hands-over the data of the Google account you use to login to ChromeOS, and it doesn't support ChromeOS multiprofile so you can't choose what Google account that will be. I suspect it also hands over device-wide serial numbers to the Android Play Store "ecosystem", just like native Android, something ChromeOS web browsing doesn't do. I'm not letting Uber create a dossier on me that I can't escape without throwing out my Chromebook to get a new serial number. I'm not letting Android apps of different companies compare dossiers about me amongst each other in the cloud, correlating them by Google account or device serial number, something iOS and web let you frustrate somewhat but Android eagerly enables.

  12. waiting... by markdavis · · Score: 1

    I have been waiting for something like this for a long time. Unfortunately I have no interest in "snap" nor *buntu. And having it in a container isn't really "running android apps natively on linux" although it might be close, depending on the container system used. https://en.wikipedia.org/wiki/...

    Other Android-under-Linux setups never seem to be free, open, stable, reliable, and compatible (especially when dealing with a touchscreen and trying to deal with screen rotation). At least not that I have tried.... and none were "native".

    http://www.shashlik.io/
    https://www.genymotion.com/
    http://www.android-x86.org/
    http://www.jide.com/remixos

    1. Re:waiting... by drinkypoo · · Score: 1

      Your comment at least prompted me to go look at Android-x86, they say they are working on 3d acceleration now. If they can get that together then they'll finally really have something.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  13. Are there any killer apps for Android? by Anonymous Coward · · Score: 0

    Something that runs on Android only that you wish Linux had?
    I can't think of any.

    1. Re:Are there any killer apps for Android? by Anonymous Coward · · Score: 0

      Maybe some games can't imagine anything productive being useful. Doubt it will gain traction or even work properly as the need value just seems to be 0.

    2. Re:Are there any killer apps for Android? by Ramze · · Score: 1

      My Charter Spectrum Cable TV app runs on Android, but isn't available on Linux.

      Spectrum has live TV available through their app and their web site. Unfortunately, the app only works on Android/iOS, and the site only works on Microsoft OSes because it requires silverlight and flash to be installed. The Linux wrapper for the silverlight plugin (pipelight) has been discontinued, so I'm out of luck. I've tried and failed to get it working under Linux with Firefox, Chrome, Chromium -- natively, under wine, natively with the last pipelight wrapper which only ran the plugin through Wine. No dice. It'd be really nice to have a Linux machine to watch all my cable channels on without needing to use a Windows box or a cable box.

      I can watch youtube, twitch, netflix, amazon, and a dozen other streaming services on Linux... but, not my own cable/ISP's digital TV lineup. This isn't Linux's fault, of course -- Spectrum should know that silverlight was deprecated years ago and flash is a dinosaur.... but... being that they're a monopoly, there isn't much I can do about it.

      There are a few other mobile-only android apps one can't install on PCs -- and even the web interfaces for some sites which have apps lack features which are only found in their apps. (Instagram doesn't let you "like" things from the website, nor does it give you emoji options for instance).

    3. Re:Are there any killer apps for Android? by Anonymous Coward · · Score: 0

      No, the only benefit to android is that it suits the interface and form factor of the devices it traditionally runs on and lets you accomplish common tasks

  14. in docker would be better by Anonymous Coward · · Score: 0

    not interested in snap.

    but if one could run android in docker, with 3d acceleration, that would be nice.

  15. Actually, much better. by DrYak · · Score: 1

    So, you can use apps "designed" for a pretty small screen with a touch-only UI, on a large monitor with a keyboard/mouse?

    Actually, android also runs on tablets so not only small screens.

    Nearly every last android device has a OTG port, and Android supports mouse and keyboard input out of the box (yup, plugin a powered hub, an USB keyboard and USB mouse and, suprise, everything works as expected.) (There are even small accessory manufacturer specializing in hardware keyboards with USB and Bluetooth for Android).

    Not only that, but since recently Android even support variable-sized windows.
    On actual real tablets, this is used to enable to tile application side-by-side.
    But in Anbox it's used to enable application to run as arbitrary windows on the desktop.

    And the parent was asking about an App that simply works as a glorified OTP. So that's definitely something which isn't entirle built around a phone UX.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Actually, much better. by davester666 · · Score: 1

      Yes, the apps will run and you can use the keyboard, mouse or even a touchscreen to interact with them. And yes, if the app developer takes the time and effort, it could have a UI that works well on a larger screen with a keyboard and mouse instead of a touchscreen.

      Except virtually no Android apps even bother to make their apps work well on slightly larger tablet screen. They just depend on basic scaling and automatic re-jigging of screen elements to take up the extra space.

      But for the vast majority of Android apps, the actual UI experience is designed for an approx. 6" diagonal vertically oriented screen with only touch-input. Virtually no apps are designed or redesigned to even work well on a slightly larger tablet screen. Any non-trivial app will absolutely suck to use on a 27" horizontally oriented screen using a keyboard and mouse.

      Yes, the original poster's bankid app, this is a valuable tool, as it's a relatively trivial app that doesn't exist on the platform, but to claim this as a library of apps for Linux now would quickly turn off users. Hell, WINE or a virtual PC environment will give you much better apps than Android will.

      --
      Sleep your way to a whiter smile...date a dentist!
    2. Re:Actually, much better. by Anonymous Coward · · Score: 0

      You haven't got a clue what you are talking about. Most Android apps are happy in either orientation and work perfectly fine on a tablet or in a Remix OS window. I own four tablets varying from 7" to 9" and a Jide Remix Mini and have had very few issues with any Android apps.

      Either you're basing your experience on ancient tablets with ancient software or you're talking bullshit about things you have never used.

    3. Re:Actually, much better. by davester666 · · Score: 1

      You are confusing "works" and "works well". The apps "work". They don't "work well". The UI is, well, wrong for a keyboard/mouse/larger monitor experience.

      Some people don't care about this.

      Some do.

      --
      Sleep your way to a whiter smile...date a dentist!
    4. Re:Actually, much better. by Anonymous Coward · · Score: 0

      Yes, they work well. Again, you don't have a clue what you are talking about, kid.

  16. Native CPU by DrYak · · Score: 4, Informative

    The summary is badly worded.

    you can install apps but they need to be

    either:
    - in android's architecture-neutral bytecode ("I can't believe it's not Java(tm) !")
    - in the same native architecture as your main OS, because there's no emulator, Anbox runs in a container, thus interecting straight with your current kernel.

    Currently supported architecture lists: AMD64 (obviously), but also ARMHF and ARM64.

    So you can install an ARM app, as long as you do it on a compatible Raspberry Pi, or Pyra, etc..

    But again, the whole thing is currently alpha. So for the next few months don't excpet much except a lot of crashes, specially if you're not running the same kind of configuration as most other testers.
    (You'll find way more bugs)

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: Native CPU by guruevi · · Score: 1

      So it is basically Android x86 which is indeed an unstable pile of shit - unless ran on the hardware that the "owner" of the x86 project provides from a parallel commercial company he runs and in violation of the GPL doesn't release the customizations to the Linux Kernel that makes it stable.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
  17. *hardware* limitation by DrYak · · Score: 2

    Actually there is a limitation, but the above poster is wrong: it's not a kernel one, it's a hardware one.
    - Android expects hardware floating point (e.g.: armhf). But Raspberry Pi 1 lacks them.

    Also this requires Android directly talking to the host kernel.
    And not all Android Kernel extension (that are needed in this case) have been thoroughly tested with raspberry pi.
    Expect to stumble unpon even more never-before-seen bugs.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  18. Any linux by DrYak · · Score: 1

    If you play close attention :
    on any user space that lacked Android support up until now.

    Anbox is a combination of 3 things :
    - an LXC container containing the Android userland
    - compiling android-only kernel extensions so the container can actually find them in the kernel (e.g.: Binder)
    - using a forwarder normally designed for the emulator that will forward a few things (like graphics). Because the container is isolated from nearly all hardware accesses.

    As long as your weird user-space can hangle this, you can give it a try.
    (GNU/Linux of course. But Android might be able to host such a thing. Maybe even find a way to get a Busybox/uLibc user space run this)

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  19. Make things simple by DrYak · · Score: 1

    Solution to run Android APPs before :

    They run a virtual machine. A whole Android computer is emulated.
    A complete stack, including the anrdoid userlan (of course, that's the point), but also including its own kernel which talks to the virtual hardware that is emulated inside the emulator/virtual machine, and that emulator/virtual machine is a user-land application that in turns runs on the host linux, and talk to yet another kernel, the one running on the real hardware.

    In short you have two completey stack kernel+userspace, and a heavy emulation layer that simulates a whole imaginary computer in between.
    (that layer can even have a CPU emulator, to run ARM apps on AMD64 hardware).

    Solution such as Anbox :
    - Add a few key missing feature to the host's kernel (e.g.: Android needs Binder, desktop seldom have it).
    - Simply run the Android userland in a chroot
    - Android talks to the real kernel running on the real hardware.

    (Well not exactly a chroot. LXC uses namespace - like chroot but isolates many more things).

    The point: Now you avoid an entire extra layer simulating a computer in which you run a whole stack with a kernel.
    As sais, android userland talk directly to your desktop's kernel.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  20. That's the fucking point by DrYak · · Score: 1

    I will explain it to you - it runs an entire Android userspace.

    Yeah, and that's the entire point.

    Before, you would need to fire up something like Qemu, and emulated a complete android machine with a running kernel inside.

    Now said Android userspace can talk straight to the kernel, without any emulation layer.
    That's the whole fucking point of this.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  21. Killer? Maybe not. Useful? yep.. by gosand · · Score: 1

    I am a long time GIMP user, but sometimes I just want to do quick things with photos - tweak the colors, crop, add an arrow or note, or make a quick collage. There are lots of android apps that make things like this quick and easy. I have G'MIC but that gives you all the settings, which I do use. But sometimes it's nice to just have presets. And sometimes you just gotta make a meme out of a pic to send to friends. :)

    --

    My beliefs do not require that you agree with them.

  22. Made-up words by Anonymous Coward · · Score: 0

    Is "Canonical engineer Simon Fels" the illiterate fuck who thinks "performant" is a real word. If he is, he needs remedial English lessons ASAP.

  23. Go and try by DrYak · · Score: 1

    Except virtually no Android apps even bother to make their apps work well on slightly larger tablet screen. {...} But for the vast majority of Android apps, the actual UI experience is designed for an approx. 6" diagonal vertically oriented screen with only touch-input. Virtually no apps are designed or redesigned to even work well on a slightly larger tablet screen.

    My personnal experience differs (10" asian tablet here).
    Of course, your personal annecdotal experience is just one data point as well as mine.

    But I've seen several applications which work flawlessly on the 10" portrait (16:9 widescreen) tablet.
    None of those that I regularily use pose any problem.
    (Of the top of my head: Firefox, VLC, Google Maps, Google Calendar, the finding/renting software of a couple of car-sharing services, a few games, several chat programs both personnal (Skype, etc.) and professional (Cisco WebEx, Adobe Connect), Orbot (=tor), ConnectBot, ES Files, Netflix, Spotify, etc.)
    They are either trivial (e.g.: Orbot - it's just a single "Start TOR" button in the middle) or they are correctly adapted.

    And again, what the parent poster misses most are a few key apps (banking OTP / 2FA) which tend to have a trivial layout.

    Any non-trivial app will absolutely suck to use on a 27" horizontally oriented screen using a keyboard and mouse.

    Yes, I get it, like me and most other people on /. you're a dev. We tend to have our IDE open full screen on giant 27" 4k desktops, full with tools box and other small windows which completely clutter the screen.
    But you, me and the rest of /. aren't typical users.

    Most more "regular people" I know - even those with Linux installed on their laptop - tend to be of the 13-15" laptop HD screen crowd.
    And again, thank to the same extension that enable side-by-side display on tablets, Anbox should allow you to open application in windows.
    So in the end, it's not the a smartphone game will be so much scaled up, that you can see individual pixels, each the size of your normal desktop icon.

    It's more that a laptop user will be able to open a small/medium window with an android app running inside.
    Not that much different than any flash games.

    Hell, WINE or a virtual PC environment will give you much better apps than Android will.

    If the app do actually have a Windows desktop port.
    There are a lot of people who use their iOS or Android smartphone or tablet as their main computing platform.
    Thus there are a lot of things which are primarily targeting pocket devices.
    e.g.: There is no such thing as a desktop Windows or Mac OS X verison of Instagram.

    the typical non-dev hobbyist who's likely to install Linux on their laptop, would be also more likely to be interested in trying android-only apps on a laptop.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  24. GPU by DrYak · · Score: 1

    So it is basically Android x86 which is indeed an unstable pile of shit - unless ran on the hardware that the "owner" of the x86 project provides from a parallel commercial company he runs

    I strongly suspect that most of the problems with android kernels are the hardware drivers : for the GPU, the wireless chips, etc.
    (because there aren't much kernel drivers which support android's unusuall ABI.
    Most free/libre linux kernel drivers use GNU/Linux's DRI API for graphics instead of Android's Flinger)

    Here the situation is a bit different :

    - in the special case of the GPU, anbox uses a facility which is normally used by the emulators (like QEMU) for accelerated emulated graphics.
    Graphics command are recorded by the container android compositor, and then sent to a daemon on the host whose role is to draw them on a regular Linux desktop over OpenGL.
    There's no requirement for the host to support Android's ABI.

    - network is isolated. guest can't have access to the actual network device (no direct Wifi chip control). container usually sees only a bridge device.

    - Bluetooth isn't currently supported inside the container.

    So once anbox leaves beta, it might end up being more stable than x86 android counting on special kernel API/ABI

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  25. It's easy to do, just follow these steps... by Guyle · · Score: 1

    1. Cut a hole in a box
    2. Put your droid in the box
    3. Make Linux open the box
    And that's the way you do it!