From 23bebc5270bfd5a149aeb8bb5a3a2dd4433bd5e1 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Thu, 1 Jun 2023 00:05:06 +0200 Subject: VideoBackends:Vulkan: Allow loading custom drivers on Android ... using libadrenotools --- Source/Android/app/build.gradle | 7 ++- Source/Android/app/src/main/AndroidManifest.xml | 10 +++- .../features/settings/model/StringSetting.kt | 6 +++ .../dolphinemu/utils/DirectoryInitialization.java | 60 ++++++++++++++-------- Source/Android/app/src/main/res/values/strings.xml | 12 +++++ 5 files changed, 73 insertions(+), 22 deletions(-) (limited to 'Source/Android/app') diff --git a/Source/Android/app/build.gradle b/Source/Android/app/build.gradle index 36ed3baf02..3ad867b2a6 100644 --- a/Source/Android/app/build.gradle +++ b/Source/Android/app/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' + id 'org.jetbrains.kotlin.plugin.serialization' version "1.7.20" } task copyProfile (type: Copy) { @@ -110,6 +111,7 @@ android { externalNativeBuild { cmake { path "../../../CMakeLists.txt" + version "3.22.1+" } } namespace 'org.dolphinemu.dolphinemu' @@ -122,7 +124,7 @@ android { abiFilters "arm64-v8a", "x86_64" //, "armeabi-v7a", "x86" // Remove the line below if you want to build the C++ unit tests - targets "main" + //targets "main", "hook_impl", "main_hook", "gsl_alloc_hook", "file_redirect_hook" } } } @@ -160,6 +162,9 @@ dependencies { // For loading game covers from disk and GameTDB implementation 'io.coil-kt:coil:2.2.2' + // For loading custom GPU drivers + implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3" + implementation 'com.nononsenseapps:filepicker:4.2.1' } diff --git a/Source/Android/app/src/main/AndroidManifest.xml b/Source/Android/app/src/main/AndroidManifest.xml index f470bafee7..db35188e6e 100644 --- a/Source/Android/app/src/main/AndroidManifest.xml +++ b/Source/Android/app/src/main/AndroidManifest.xml @@ -41,7 +41,8 @@ android:supportsRtl="true" android:isGame="true" android:banner="@drawable/banner_tv" - android:hasFragileUserData="true"> + android:hasFragileUserData="true" + android:extractNativeLibs="true"> @@ -82,6 +83,13 @@ android:theme="@style/Theme.Dolphin.Main" android:label="@string/settings"/> + + GitHub Support \u00A9 2003–2015+ Dolphin Team. \u201cGameCube\u201d and \u201cWii\u201d are trademarks of Nintendo. Dolphin is not affiliated with Nintendo in any way. + System driver + The GPU driver that is part of the OS. + + + GPU driver + Installing the GPU driver… + GPU driver installed successfully + Failed to unzip the provided driver package + The supplied driver package is invalid due to missing metadata + The supplied driver package contains invalid metadata, it may be corrupted + Your device doesn\'t meet the minimum Android version requirements for the supplied driver + The supplied driver package is already installled Emulated USB Devices -- cgit v1.2.3