MustardChef / WSABuilds

Run Windows Subsystem For Android on your Windows 10 and Windows 11 PC using prebuilt binaries with Google Play Store (MindTheGapps) and/or Magisk or KernelSU (root solutions) built in.
GNU Affero General Public License v3.0
8.19k stars 1.37k forks source link

Cannot install with an unprivileged user on Windows 10 #30

Closed DarkElve closed 7 months ago

DarkElve commented 1 year ago

Even when running installer as an administrator. 2023-03-09 03_17_17

Installs and works fine if interactively log in into admin, but still isn't visible from any other account.

MustardChef commented 1 year ago

@DarkElve Seems like this is a problem with WSA and WSL itself. If you use an unpriviliedge/other (non admin) account and try to install (even with elevation), it will not work. Hence, you will have to log into your admin account to install it. Although I might be wrong and it could be something to do with MagiskOnWSALocal and how it installs WSA. Frankly, I have no clue since officially, WSA can be install on a non admin account.

DarkElve commented 1 year ago

Well, can't say about WSA, but WSL works just fine, upgraded it to version 2 a couple of days ago. But probably clean install wouldn't work, seems like Microsoft broke something. Thanks anyway, subscribed to the WSL issue too, maybe someone'll work something out.

rom4ster commented 1 year ago

Hello, I got a question from someone about this and was able to reproduce it myself. He claimed that there was no help given on the discord so I thought I would come here and petition for this to be open again. The issue you have linked to only mentions WSL but WSL does not exhibit this behavior on either system. If there is no evidence that this is a WSA issue, then could this be looked at? If however this is a WSA issue, then could we get a link to a thread that actually follows the issue in a WSA context so that people have a place to go to for questions.

As of current this issue has no solution and no tracking which means it is likely to become forgotten.

Thank You

MustardChef commented 1 year ago

@rom4ster I appreciate the concern. However, I believe that the correct place to report this issue here, to the repo of the development team of the MagiskOnWSA installer script. This is why I closed this issue and I appologise for not making this clearer before closing it. If this issue also exists with official versions of WSA, then it would be advised to also open the issue in the Microsoft Github repo for WSA

MustardChef commented 1 year ago

If you would like, I can open this issue to use as a thread to discuss and investigate the issue at hand.

rom4ster commented 1 year ago

I appreciate it, this way people will know where to go, if I find any updates, I will mirror here

MustardChef commented 1 year ago

I appreciate it, this way people will know where to go, if I find any updates, I will mirror here

Could you try the fixes shown in this guide, excluding the first one: https://windowsreport.com/specified-logon-session-not-exist/

rom4ster commented 1 year ago

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

rom4ster commented 1 year ago

https://github.com/LSPosed/MagiskOnWSALocal/issues/276

Found this post on MagiskOnWSA, I have asked them to reopen it because their resolution was garbage

MustardChef commented 1 year ago

@rom4ster As mentioned in the issue thread above, https://github.com/LSPosed/MagiskOnWSALocal/issues/276, the best method is to package up the unpacked msix and self sign using a your own certificate (with tools such as MSIX Hero). Then, install the certificate on the admin account and then proceed to install the .msix file (that you packaged) as normal.

I could pre-package it and include a certificate in releases. However, this would be a security risk.

traversone commented 1 year ago

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

hello! can you elaborate this "current solution is simulteneous remoting" ? I have some issue as many other users, thank you

MustardChef commented 1 year ago

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

hello! can you elaborate this "current solution is simulteneous remoting" ? I have some issue as many other users, thank you

Are you referring to the issue being unable to install WSA on a non-admin account?

traversone commented 1 year ago

yes, I am just referring to the issue being unable to installa WSA on a non-admin account...

MustardChef commented 1 year ago

yes, I am just referring to the issue being unable to installa WSA on a non-admin account...

Well, the only solution is to package and self sign using your own certificate. Then, install the certificate on the admin account and then proceed to install the .msix file (that you packaged) as normal.

traversone commented 1 year ago

thank you MustardChef ! I was also under the impression that rom4ster adopted a simpler (at least for me as very basic user) solution "simultaneous remoting": maybe on the same machine we could access admin account from within non admin one

@rom4ster: could you tell us if you do not mind?

rom4ster commented 1 year ago

thank you MustardChef ! I was also under the impression that rom4ster adopted a simpler (at least for me as very basic user) solution "simultaneous remoting": maybe on the same machine we could access admin account from within non admin one

@rom4ster: could you tell us if you do not mind?

Sure, simultaneous remoting is just that. You remote desktop to 127.0.0.2 (you may be familiar with 127.0.0.1 as a localhost but RDP will fail on that ip). I can then just use my android app on my admin account WHILE my normal account is logged in through remote desktop.

UNFORTUNEATELY, this is not the super simple solution you are looking for as if you try this, you will get access denied (unless you have windows server for some reason). You need to look into the rdpwrapper project and then make sure you get a good update script so windows update does not bork the functionality.

PS: THere is a stack overflow question on this 127.0.0.2 thing and I HATE THE COMMENTS WITH A RAGE OF FIRE. This is because people who dont understand termserv limitations coming in and talking smack about a perfectly reasonable method of accessing RDP on localhost