From: Twaik Yont <9674930+twaik@users.noreply.github.com> Android 10 enforces W^X restrictions for apps targeting API level 29+, including removal of execute permission for the app home directory and restrictions on execve() and executable mappings. See: https://developer.android.com/about/versions/10/behavior-changes-10#execute-... Lower targetSdkVersion to 28 so the current Wine Android startup model continues to work on modern devices while the codebase is being adapted to these restrictions. Set Java compile options to 1.8 as required by the Android build after lowering compileSdkVersion. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/wineandroid.drv/build.gradle.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/wineandroid.drv/build.gradle.in b/dlls/wineandroid.drv/build.gradle.in index 56ffd06ca82..d83082bb8c5 100644 --- a/dlls/wineandroid.drv/build.gradle.in +++ b/dlls/wineandroid.drv/build.gradle.in @@ -113,6 +113,7 @@ android { applicationId "org.winehq.wine" minSdkVersion 26 + targetSdkVersion 28 versionCode 1 versionName "@PACKAGE_VERSION@" } @@ -126,6 +127,12 @@ android main.res.srcDirs = [ "res" ] main.manifest.srcFile get_srcdir() + "/AndroidManifest.xml" } + + compileOptions + { + sourceCompatibility JavaVersion.VERSION_1_8 + compileOptions.targetCompatibility JavaVersion.VERSION_1_8 + } } configurations.configureEach -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10683