From 2172c53b7b067b01ae09bb6209f7d49b7ca7cf71 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 2 Feb 2018 09:34:52 +0100 Subject: [PATCH] Force the server target filename The server path may be customized using SCRCPY_APK. If its basename is different from "scrcpy.apk", it will be pushed with a different name, so the execution would fail. Therefore, force the push target filename. --- app/src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/server.c b/app/src/server.c index 41f2a20a..5660fef9 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -11,7 +11,7 @@ process_t push_server(const char *serial) { if (!apk_path) { apk_path = "scrcpy.apk"; } - return adb_push(serial, apk_path, "/data/local/tmp/"); + return adb_push(serial, apk_path, "/data/local/tmp/scrcpy.apk"); } process_t enable_tunnel(const char *serial, Uint16 local_port) {