mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 21:35:59 +00:00
feat: target Android 14 so Play Protect installs DroidDeck without a warning (#2683)
* fix(proot): ship proot in the APK and run it from the native library directory * fix(native): start rootfs programs through an APK-shipped exec loader where data files may not be executed * fix(audio): start PulseAudio through the system linker where data files may not be executed * feat: target Android 14 (SDK 34) so Play Protect installs DroidDeck without a warning * fix: ask for all-files access on Android 11+, reject unloadable ELFs before exec, keep checking the proot pack * fix: hand host scripts to the kernel, skip startup launch while all-files Settings is open * fix: run proot from its add-on pack through Android's linker, so the APK carries no proot * fix: declare high sampling rate sensors for controller gyro at target 34 * fix: offer the rootfs proot fallback only where Android lets proot exec its loader * test: install the runtime's proot pack in GameFileSync fixtures
This commit is contained in:
1 parent
6188c9ac0d
commit
dc98b6b96a
28 files changed
+601
-58
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.droiddeck.launcher.frontend
|
||||
|
||||
import com.droiddeck.launcher.core.AddonPack
|
||||
import com.droiddeck.launcher.runtime.LinuxRuntime
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import org.junit.Assert.*
|
||||
@@ -16,9 +17,10 @@ class GameFileSyncTest {
|
||||
@Test fun syncUsesFreshInstalledManifestsAndStopsWhenDisabled() {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val root = LinuxRuntime.rootDir(context)
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/"), "opt/android-host/proot", "opt/android-host/loader").forEach { path ->
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/")).forEach { path ->
|
||||
File(root, path).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
}
|
||||
AddonPack.PROOT.file(context, AddonPack.COMPLETE).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
SessionPrefs.setGameStorage(context, SessionPrefs.GAME_STORAGE_OFF, "")
|
||||
SessionPrefs.setAddedGamesDirs(context, emptyList())
|
||||
val steamapps = File(root, "root/.local/share/Steam/steamapps").apply { mkdirs() }
|
||||
@@ -51,9 +53,10 @@ class GameFileSyncTest {
|
||||
@Test fun libraryNotCreatedYetOnPresentStorageIsEmptyNotUnavailable() {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val root = LinuxRuntime.rootDir(context)
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/"), "opt/android-host/proot", "opt/android-host/loader").forEach { path ->
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/")).forEach { path ->
|
||||
File(root, path).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
}
|
||||
AddonPack.PROOT.file(context, AddonPack.COMPLETE).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
SessionPrefs.setAddedGamesDirs(context, emptyList())
|
||||
File(root, "root/.local/share/Steam/steamapps").mkdirs()
|
||||
val volume = File(context.filesDir, "card").apply { mkdirs() }
|
||||
@@ -80,9 +83,10 @@ class GameFileSyncTest {
|
||||
@Test fun previousAutomaticLibraryNotCreatedYetKeepsSyncingButRemovedDriveStops() {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val root = LinuxRuntime.rootDir(context)
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/"), "opt/android-host/proot", "opt/android-host/loader").forEach { path ->
|
||||
listOf("usr/bin/gamescope", LinuxRuntime.SESSION_SCRIPT.removePrefix("/")).forEach { path ->
|
||||
File(root, path).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
}
|
||||
AddonPack.PROOT.file(context, AddonPack.COMPLETE).apply { parentFile!!.mkdirs(); writeText("") }
|
||||
SessionPrefs.setAddedGamesDirs(context, emptyList())
|
||||
SessionPrefs.setGameStorage(context, "", "")
|
||||
File(root, "root/.local/share/Steam/steamapps").mkdirs()
|
||||
|
||||
Reference in new issue
Block a user