https://bugs.winehq.org/show_bug.cgi?id=46037
Bug ID: 46037 Summary: "wine_get_host_version" in ntdll.dll for Android should contain "Android" Product: Wine Version: 3.18 Hardware: x86 OS: Android Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: reinhold.hoffmann@hotmail.com
On Android "wine_get_host_version" in ntdll.dll contains "Linux" as host system name. It is adequate to have on Android for the host system name "Android" in order to be able to potentially differentiate on the app level to other operating systems.
Reinhold
https://bugs.winehq.org/show_bug.cgi?id=46037
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- It returns unmodified uname() output. There is nothing to fix here I think.
https://bugs.winehq.org/show_bug.cgi?id=46037
--- Comment #2 from Reinhold reinhold.hoffmann@hotmail.com --- If it is just taken from uname then Android's uname is Linux.
Is there any other possibility for a Windows app to find out that the underlying OS is Android? (e.g. for macOS "wine_get_host_version" provides Darwin)
In prticular on Android a Windows app needs to act differently compared to Linux and macOS because Android is usually on smartphones or tablets where the keyboard behaves differently. Further, the knowledge of the underlying OS is important for service aspects.
https://bugs.winehq.org/show_bug.cgi?id=46037
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Reinhold from comment #2)
If it is just taken from uname then Android's uname is Linux.
Is there any other possibility for a Windows app to find out that the underlying OS is Android? (e.g. for macOS "wine_get_host_version" provides Darwin)
That's what uname() returns for macos kernel, it's not treated differently that other systems for get_host_version(). Currently it's used for system information report during error reporting.
If you really want to detect Android specifically you could probably look for specific Android FS paths, or wine build artifacts specific to Android.
https://bugs.winehq.org/show_bug.cgi?id=46037
--- Comment #4 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=46037
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com --- Closing.