https://bugs.winehq.org/show_bug.cgi?id=48366
Bug ID: 48366 Summary: Wine 5.0-rc2 for Android is built with a very obsolete Android SDK and doesn't work properly on Android 10 Product: Packaging Version: unspecified Hardware: arm OS: Android Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-packages Assignee: wine-bugs@winehq.org Reporter: vyproyects@gmail.com CC: dimesio@earthlink.net, michael@fds-team.de, sebastian@fds-team.de
Created attachment 66109 --> https://bugs.winehq.org/attachment.cgi?id=66109 Warning dialogs on Android 10
Wine 5.0-rc2 APKs for ARM and x86 are built with a very obsolete SDK for Android API Level 25 (Android 7.1) which is compileSdkVersion tag
Also targetSdkVersion tag appears to be below 23 as it doesn't ask for permissions during runtime on Android 6.0+ and it asks for them on Android 10 at start (new security feature on Android 10): https://developer.android.com/about/versions/10/behavior-changes-all#low-tar.... This is an attached image.
Besides during start a dialog appears warning that it is built for an old version of android, also attached as image.
I have tested on an Android 10 AVD emulator with x86 CPU architecture. But also have opened both APKs to check their compile and target SDK versions.
Furthermore it crashes after extracting files. This outdated packaging appears to be the cause although android 10 includes some changes to NDK for all apps even when targeting an old version what may be the cause: https://developer.android.com/about/versions/10/behavior-changes-all#q-ndk
In conclusion Wine for android needs a deep upgrading.
https://bugs.winehq.org/show_bug.cgi?id=48366
--- Comment #1 from vyproyects@gmail.com --- My recommendations are, first upgrade compileSdkVersion with latest Android SDK and fix compile problems
Then try to upgrade targetSdkVersion to 23 (android 6.0) and request permissions on runtime.
Then upgrade targetSdkVersion to 24 (android 7) and fix any problem. Also check split windows which was introduced on this version.
Then upgrade targetSdkVersion to 28 (android 9) as Android 10 has quite security features that could make wine not to work and fix any problem. Most significant changes on Android 8 are notifications channels. So this could also fail.
Last, upgrade it to targetSdkVersion 29 (android 10) and fix any upcoming problem again.