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.
This commit is contained in:
Romain Vimont 2018-02-02 09:34:52 +01:00
parent ca44585f96
commit 2172c53b7b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {