17 ms·
Microsoft is working on an Android subsystem for Windows 10
- curt15 6y agoMicrosoft previously reimplemented some Android and iOS APIs in Project Islandwood and Astoria. Is this a continuation of that effort in the spirit of WSL1 or does this use the WSL2 method of using a VM?
- vageli 6y ago> The biggest obstacle will be the graphical user interface requirement of Android apps, but with the release of WSL 2, Microsoft has begun working on a project called 'WSL-G,' or 'WSL - Graphics Architecture.' This project utilizes a built-in Wayland display server to run Linux GUI apps directly in the Windows 10 user interface. Seems to be WSL2. Interesting as I had trouble getting graphical applications to work in Ubuntu under WSL2.
- XzAeRosho 6y agoWSL2 explicitly didn't support GUI apps, even though you can do it with workarounds. Officially GUI support is coming "really soon"™ [1]. [1] https://devblogs.microsoft.com/commandline/whats-new-in-the-windows-subsystem-for-linux-september-2020/#gui-apps https://devblogs.microsoft.com/commandline/whats-new-in-the-...
- temac 6y agoThe concept of "explicitely" not supporting graphics did not make much sense with the X architecture and X servers under Windows being available. Of course MS dis not ship one, and of course X is considered deprecated by its own maintainers. But de facto it is more a lack of support as in "we don't ship or own implementation yet" than "explicitely it does not work". It works already, Wayland just takes more effort and is just way more coupled to all parts of the stacks, as usual (but don't get me wrong, this sometimes has benefits too)
- numpad0 6y ago$ export DISPLAY=$WSL_HOST:0 $ export LIBGL_ALWAYS_INDIRECT=1 $ export PULSE_SERVER=tcp:$WSL_HOST $ xlogo Couldn’t get glxgears to rotate though
- pjmlp 6y agoNaturally you had problems, this feature is not yet out. :) Here are the details about it, https://xdc2020.x.org/event/9/contributions/611/attachments/702/1298/XDC2020_-_X11_and_Wayland_applications_in_WSL.pdf https://xdc2020.x.org/event/9/contributions/611/attachments/...
- tmzt 6y agoThis is cool. I wonder if the damage based forwarding can be supported in X as well with the X server in the Linux VM. I would also love to see this for docker/containers, possibly using Spice instead of RDP. Is Weston GPL? Will Microsoft be contributing these changes under the upstream license? Also, interesting to see FreeRDP used instead of a Microsoft implementation, since there's already an Android port of it.
- billylo 6y agoThese steps worked for me. Would be good to have better support from MS itself for sure (e.g. built-in X server) https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242 https://techcommunity.microsoft.com/t5/windows-dev-appconsul...
- vageli 6y agoThis seems to be for WSL1 though.
- matchbok 6y agoMan, good luck with that. The Android SDK is so poorly designed.
- _trampeltier 6y agoI allway wondered why there is nothing like that. Also why DEX is not pushed more. I'm still waiting for something like HP tried with there Elite X3 phone. Just connect my phone to a notebook and just use the display and keyboard from the notebook, while the data and CPU is used from the phone.
- deleted 6y ago[deleted]
- arcbyte 6y agoIve used dex on my note 5. It works very well. One annoyance though is the connection/disconnection process should be more streamlined. When I leave my desk to wander around im always taking my phone with me but of course I would leave my laptop behind if I was using that instead. With my phone it was very annoying to disconnect, close things on my phone so it isnt eating battery, just to come back and have everything be out of wack.
- ryukafalz 6y agoYep, I'm currently using DeX a lot with my NexDock but mostly in anticipation of getting my Librem 5 and Phosh working better as a daily driver. This has been my dream for a long time, and it finally feels so close. A few things: - Having to dig out a cable to dock to the NexDock each time is a bit cumbersome. I have a small one but it's still one more thing to manage/keep with the dock. A mounting arm on the lapdock with something like Apple's MagSafe (wireless charging+NFC to initiate a Miracast connection) would be very nice - The available lapdocks right now... aren't great. The one with the best touchpad I've found is the Elite x3 lapdock, but Samsung phones don't seem to be compatible with it. Works with my PinePhone though, so it's the one I hope I'll be able to use with the Librem 5. (This is something I expect would be improved if lapdocks gained popularity) That aside, though... connecting my phone to a dock and using it as my computer feels super futuristic and I'm loving it so far.
- deleted 6y ago[deleted]
- 6y ago
- swiley 6y agoWhy are they going off and doing their own thing instead of improving and using anbox? EDIT: I don't normally ask why my comments are downvoted but I feel like the two people who did must know more than I do and probably have a good answer to my question. Why did you downvote this?
- minot 6y agoI upvoted you. I’ve never heard of it before so thank you fir sharing Just an observation: snap seems like a strange hill to die on when flat pak exists https://docs.anbox.io/userguide/install.html https://docs.anbox.io/userguide/install.html
- VWWHFSfQ 6y agoAccording to anbox: > To achieve our goal we use standard Linux technologies like containers (LXC) to separate the Android operating system from the host. I don't know much about what Microsoft is working on, but "running Linux inside of Linux inside of Windows" probably isn't what they really want to do.
- swiley 6y agoContainers aren't "running Linux inside of Linux" they just give you new namespaces for lots of kernel managed resources. The only thing that's really duplicated is the userspace which you have to do with android anyway.
- qz2 6y agoDo everything badly appears to be the Microsoft mantra.
- yholio 6y agoWe badly need more competition in the OS space. Perhaps Android can become an open standard for application delivery, with commercial vendors and non-profits competing in providing runtime environments.
- mikhailt 6y agoCan you expand on what you mean? There are plenty of competition in the OS space, Linux: (Canonical (Ubuntu), IBM (RedHat/Fedora), System76 (Pop!_OS)), MS, Apple, Google, and so on. How would using Android or AOSP (open) as the platform to run apps on many platforms better than using Electron with the web as the backend, which, despite all of the negativity going around for it, is likely to be more free/open and integrated with the OS than Android runtime would be?
- pjmlp 6y agoLinux distribution wars as replacement to UNIX wars is not competition. Just sand of the same bag with distinct flavours, as we say back home.
- yholio 6y agoMonstrosities such as Electron ar the simptom of the problem, not it's solution. Competition in this context means that the end user is free to select any device from any manufacturer, and can expect his applications to run roughly in the same way and with similar performance on comparable hardware, without repurchasing them, without getting locked to a proprietary application store that takes a pound of flesh from the developers etc. The competition between walled gardens, ex. Apple vs. Android, is not conducive to a consumer friendly outcome, see for example the Windows vs. everybody else competition of the previous era. A single proprietary platform will gain a critical mass and people will orient themselves naturally to the system that can run their applications. An Android subsystem running on Windows has the chance to be exceptionally close to the hardware and provide a near native experience.
- tonyedgecombe 6y agoCompetition in this context means that the end user is free to select any device from any manufacturer, and can expect his applications to run roughly in the same way and with similar performance on comparable hardware, without repurchasing them, without getting locked to a proprietary application store that takes a pound of flesh from the developers etc. That would require the operating systems to become a commodity with little to distinguish between them. There is no way any of the OS developers is going to allow that to happen.
- mrpippy 6y agoLink should be the original story: https://www.windowscentral.com/windows-10-project-latte-android-apps https://www.windowscentral.com/windows-10-project-latte-andr...
- lsllc 6y agoSubmitted yesterday! https://news.ycombinator.com/item?id=25238651 https://news.ycombinator.com/item?id=25238651
- masterofmisc 6y agoJust checked and its tumbleweed over there. No comments or discussion. Strange how this happens sometimes.
- deleted 6y ago[deleted]
- whereistimbo 6y agoTitle, points and total written comments determines popularity of HN discussion.
- Triv888 6y agoIt happens all the time... depends on time of submission, who is looking at new submissions, etc...
- manzu 6y agoNow with the M1 and this... Android will finally run on Apple hardware
- samsquire 6y agoI like this idea a lot. I'm a fan of Samsung DeX even if I never use it but having the convenience available is really powerful. I use Linux in a VirtualBox virtual machine on Windows 10. I'd like to see Android apps appear as part of the Windows windowing experience.
- afandian 6y agoBack when BlackBerry were an exciting innovative phone manufacturer (IMHO) they implemented an Android runtime on top of their QNX OS. It was a great idea, and worked (modulo whatever lockin Google were doing at the time).
- ocdtrekkie 6y agoThis is so irritating: Project Astoria worked great on Windows Mobile at the time. It seemed solely as a strategic choice they didn't launch it. And now they're doing it again... even though they already killed their mobile platform? Why?
- pjmlp 6y agoManagement and politics. I also was enjoying C++/CX, until their WinDev team decided to kill it, replace it with C++/WinRT, without comparable tooling, and now we are told to wait until ISO C++ manages to come up with the features that C++/CX already offered to tooling authors. And I am not the only one complaining, but since they have decided to reboot UWP into Project Reunion, having nicer tooling for C++/WinRT users seems to be at the very bottom of their priority list. At least Project Astoria has brought us WSL.
- muststopmyths 6y agoFrom what I heard, they killed Astoria because there was fear no one would write UWP if it became good enough. The new Microsoft has pretty much given up on real Windows development, so they're not afraid of Astoria in that sense any more.
- pjmlp 6y agoIf that was the case they wouldn't be spending money on Project Reunion, React Native for Windows, Python on Windows (even hired Guido).
- Lammy 6y agoThat’s how Blackberry 10 ended up for me. Very few native apps but lots of good FOSS Android ones that were just never perfect on the device. Overall poor experience that I wanted to love.
- dleslie 6y agoI still have my BB Classic kicking around somewhere. It's neat to load up for interests' sake because the app store and BB services are mostly still operational, and all the apps on the store are _free_; albeit, those apps which are wrappers around proprietary services tend to be grossly out of date. As a phone, it's still a better daily driver than my Pinephone. The camera is fast and decent, the audio is top-notch, it never crashes, and so on.
- varbhat 6y agoNow, for the benefit of Mankind , Microsoft must release Linux/MacOS subsystem for Windows (Subsystem which is capable to run Windows applications in Linux/MacOS) . I know Wine do exist, but it is not 100% Windows compatible. If they really care about us people, they must either release Windows subsystem for Linux/MacOS or contribute to wine to make it fully windows compatible. Solely benefitting off Open Source Projects adding those to their closed system is not so nice imo , they must do it in other direction too. Just imagine frustration to dualboot windows just because of one application which runs only in Windows. On other hand, Just imagine the application running perfectly in subsystem in Linux/MacOS without any dual boot. Many wouldn't bother even if it's paid application imo.
- jhfdbkofdcho 6y agoI don't know if you heard already, but Microsoft did release a Windows Subsystem for Linux! Here's the wikipedia page and everything! https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux I find the naming scheme kind of confusing though.
- mynegation 6y agoFollowing that scheme I believe varbhat meant “Linux subsystem for Windows”, I.e. Windows emulation as a Linux Software.
- usrusr 6y agoBut Linux doesn't have the concept of a "subsystem", that's pretty much a Windows NT exclusive (inherited from its core predecessor OS/2). User mode like WINE is the correct approach on Linux. It's pretty wild that Microsoft actually managed to reactivate the subsystem concept for (first generation) WSL after it had been dormant as an 1:1 boundary for so many iterations of Windows and even wilder how quickly (and elegantly) they switched to a completely different abstraction for WSL2. This switch was mostly motivated by cross-environment filesystem performance afaik, so it might be perfectly reasonable to take the other approach (an actual NT level subsystem) for the android use case: the guest apps won't do much file I/O outside of the subsystem's dedicated playground because of how Android is discouraging free-form filesystem use.
- poisonborz 6y agoThis is a lot less exciting than it seems to be at first glance. Opening apps from my phone on desktop: yes, I can see utility at that. But opening standalone phone app installations on my desktop? Why? There is almost no phone app I can think of that doesn't have a much better desktop equivalent - save, maybe, for games, but this doesn't seem to be aimed for that. Since app developers need to make extra effort here to make it work (repackaging, maintaining store presence) and the experience is definitely worse, I don't see why big brands would do so. Microsoft should instead aim for improved general Android integration, like what they did for Samsung phones.
- dooglius 6y agoWhat's the desktop equivalent of Uber?
- rchowe 6y agoI believe Uber used to have a web app.
- reader_mode 6y agoMobile app > web app almost every time
- mrkramer 6y agoAnd they still have m.uber.com
- k__ 6y agoI often use Bluestacks to play Android games on Windows.
- bserge 6y agoAnd I will keep using that because MS can kiss my ass. Windows 10 has been nothing but trouble, on years old machines, which you'd think would be rock stable. Linux is. Linux is more reliable than Windows 10 for me, even though it takes days to properly configure every little thing, and it can crap out because the bootloader decided to quit one day. Windows 7 was the pinnacle of this OS, now it's just a bunch of trash. Everyone, including Microsoft, realized the desktop OS is just a host for everything else. Why they keep pushing ridiculous "features" and installation-breaking updates I don't understand. And Windows 10 users are just beta testers for all this crap.
- mrkramer 6y agoThis would be killer app feature for Android gaming on PC since you wouldn't have to install emulators anymore to play Android exclusive games on your Windows PC.
- jerrygoyal 6y agoand people can finally ditch that crappy and memory hogging bluestacks
- v-yadli 6y agoThe XDC 2020 video: https://www.youtube.com/watch?v=b2mnbyRgXkY&feature=emb_logo https://www.youtube.com/watch?v=b2mnbyRgXkY&feature=emb_logo If you're interested in the lowlevel WDDM driver <-> VM driver mapping, seek to 1:18:01 -- it also talks about the compute APIs like CUDA and OpenCL. If you're interested in WSLG, seek to 2:13:01 -- this is the GUI part of the story.
- nailer 6y agoI thought Android doesn't use Wayland (and it definitely doesn't use X). Microsoft might be working on an Android subsystem but I think this article isn't right on the technical details.
- z3t4 6y agoMicrosoft should add support for x84 Mac apps on Windows now when Apple is rolling out arm based devices.
- kyriakos 6y agoNot that much mac only apps that Windows would benefit from.
- toyg 6y agoFair. I think the relevant audio and graphics apps already had Windows versions. I reckon a bunch of communities have been migrating away from macOS since Catalina. Mac-first development has not been a thing for a long time, in practice.
- stinos 6y agoBowden states that it is unlikely that this new subsystem will support Google Play as Google does not allow this service to be installed on non-native Android or ChromeOS devices So how does Bluestacks get away with that? Or is it considered a native Android device?
- jonnypotty 6y agoBe good if they made the basic OS work first.
- p1necone 6y agoDon't you mean Windows subsystem for Android? ;)
- _a1_ 6y agoThat feeling when a stable version of Wayland will be released on Windows faster than on Linux ;( (disclaimer: i've tried to use it on Nvidia, but it's far from being usable, also tried to use it on Radeon 5700, it hangs on start, even mouse didn't work)
- SahAssar 6y agoI've used wayland as a daily driver for over a year now and everything besides screensharing has been working well (arch with sway on intel & amd)
- ed25519FUUU 6y agoThis type of interaction is like a defining meme for linux on the desktop. One person's experience is horrible (mouse not working, monitor resolution not working, some other minor thing not working) and another person says "It's always worked for me." Notice how people almost never have these conversations about MacOS or Windows? Consistency in experience takes A LOT of investment, and it's a very weak point for linux on the desktop (speaking as someone who tries it every few years and goes back to Mac).
- Arnavion 6y agoPeople have these conversations about Windows all the time. And it's usually worse when it comes to Windows because the software is closed both in the "source" sense and the "visibility" (logs, etc) sense, so nobody has any idea what to do except "try restarting", "try reinstalling the software", "try reinstalling Windows". (No idea about Macs; I don't pay attention to conversations about them.)
- 59nadir 6y agoThey really, really don't. This is one area where Stockholm syndrome usually kicks in hard for people who desperately want it to be true that Linux is polished and ready for the masses. Truthfully, I think I have the same issues on Linux nowadays as I had in the late 00's, just less consistently. The things that might work better nowadays (sound is a somewhat fixed issue?) work inconsistently (`pulseaudio -k`) and for some people might not work at all. Open source has done very little to remove inconsistencies and all three of your "try ..." remain very relevant with tons of software on Linux. Having used a Windows 10 box primarily for the last two years I can say there are way less issues and way less blockers involved when using Windows for development than Linux. I'm almost mad I didn't give up on Linux as a daily driver earlier, because in hindsight it really wasn't a productive experience.
- rich_sasha 6y agoTo me, Windows’ only saving graces may be the VMs it comes with running Linux and/or Android now. But what’s the point of Windows then??
- HideousKojima 6y agoGames, though Valve's Proton is making even that less important month by month
- cs702 6y agoFirst Linux, and now Android too, have become "subsystems," i.e., optional components in all but name, of Windows. It's only a matter of time before Microsoft starts offering newer libraries and APIs that mediate and abstract away the idiosyncrasies of both operating systems, you know, to make life easier and more convenient for developers who use Windows to access these subsystems.
- deleted 6y ago[deleted]
- voltagex_ 6y agoI hope it works better than the Your Phone app does.
- jsz0 6y agoMobile app compatibility is becoming really important now that so many popular apps/services spend all their money into iOS/Android development. If they even offer a web version it's pretty much guaranteed to be a crippled bad experience these days and native apps are a rare luxury.
- sally1620 6y agoThis is all speculation, considering original Project Asturia didn't go anywhere. It is very unlikely to launch. The only case this could work would be for Surface Neo and Duo devices. That way, those devices can actually run Windows and run the same Android apps.
- jangid 6y agoWill that be called /Windows subsystem for Android/?