no need for the remote path

This commit is contained in:
Adonis Najimi 2018-05-01 13:20:49 +02:00
parent 30b03bfef5
commit 716ca9761e
3 changed files with 5 additions and 6 deletions

View file

@ -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));
}

View file

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

View file

@ -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,