diff --git a/app/src/command.c b/app/src/command.c index c555c0e1..067bc929 100644 --- a/app/src/command.c +++ b/app/src/command.c @@ -73,8 +73,8 @@ process_t adb_push(const char *serial, const char *local, const char *remote) { return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd)); } -process_t adb_install(const char *serial, const char *local, const char *remote) { - const char *const adb_cmd[] = {"install", local, remote}; +process_t adb_install(const char *serial, const char *local) { + const char *const adb_cmd[] = {"install", local}; return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd)); } diff --git a/app/src/command.h b/app/src/command.h index 4c218060..4113f251 100644 --- a/app/src/command.h +++ b/app/src/command.h @@ -42,7 +42,7 @@ process_t adb_forward_remove(const char *serial, uint16_t local_port); process_t adb_reverse(const char *serial, const char *device_socket_name, uint16_t local_port); process_t adb_reverse_remove(const char *serial, const char *device_socket_name); process_t adb_push(const char *serial, const char *local, const char *remote); -process_t adb_install(const char *serial, const char *local, const char *remote); +process_t adb_install(const char *serial, const char *local); process_t adb_remove_path(const char *serial, const char *path); // convenience function to wait for a successful process execution diff --git a/app/src/server.c b/app/src/server.c index 41823d6a..ea49baef 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -146,9 +146,8 @@ void server_init(struct server *server) { } SDL_bool server_install(struct server *server, const char* apk_path) { - adb_install(server->serial, apk_path, DEVICE_SERVER_PATH); - // async command - return SDL_TRUE; + process_t process = adb_install(server->serial, apk_path); + return process_check_success(process, "adb install"); } SDL_bool server_start(struct server *server, const char *serial, Uint16 local_port,