mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +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
@@ -7,6 +7,9 @@
|
||||
#ifndef DDNATV_HOST_TEST
|
||||
|
||||
static char g_real_exe[PATH_MAX] = {0};
|
||||
// DDNATV_EXEC: the app's libddexec.so. A targetSdk 29+ app may not execve() its data files; this
|
||||
// executable maps one and starts it as the kernel would ("libddexec.so <file> <argv0> [args...]").
|
||||
static char g_exec_loader[PATH_MAX] = {0};
|
||||
// DDNATV_PRELOAD: guest paths of libraries every program loads before the hook (what
|
||||
// /etc/ld.so.preload does for programs run by the rootfs's own ld.so), and the same as host paths.
|
||||
static char *g_preload_guest = NULL;
|
||||
@@ -34,12 +37,14 @@ static void init_ddnatv_hook(void) {
|
||||
}
|
||||
}
|
||||
ddnatv_load_binds(getenv("DDNATV_BINDS"));
|
||||
const char *exec_loader = getenv("DDNATV_EXEC");
|
||||
if (exec_loader && exec_loader[0] == '/' && strlen(exec_loader) < sizeof(g_exec_loader))
|
||||
ddnatv_copy_cstr(g_exec_loader, sizeof(g_exec_loader), exec_loader);
|
||||
const char *hostname = getenv("DDNATV_HOSTNAME");
|
||||
if (hostname && hostname[0] && strlen(hostname) < sizeof(g_hostname)) ddnatv_copy_cstr(g_hostname, sizeof(g_hostname), hostname);
|
||||
const char *link_root = getenv("DDNATV_LINK_ROOT");
|
||||
if (link_root && link_root[0] == '/' && strlen(link_root) < sizeof(g_link_root)) {
|
||||
ddnatv_copy_cstr(g_link_root, sizeof(g_link_root), link_root);
|
||||
g_link_root_len = strlen(g_link_root);
|
||||
g_link_root_len = ddnatv_kernel_path(link_root, strlen(link_root), g_link_root, sizeof(g_link_root));
|
||||
while (g_link_root_len > 1 && g_link_root[g_link_root_len - 1] == '/') g_link_root[--g_link_root_len] = 0;
|
||||
}
|
||||
const char *preload = getenv("DDNATV_PRELOAD");
|
||||
|
||||
Reference in new issue
Block a user