no need for the remote path

This commit is contained in:
Adonis Najimi 2018-05-01 13:20:49 +02:00
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)); return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
} }
process_t adb_install(const char *serial, const char *local, const char *remote) { process_t adb_install(const char *serial, const char *local) {
const char *const adb_cmd[] = {"install", local, remote}; const char *const adb_cmd[] = {"install", local};
return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd)); 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(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_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_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); process_t adb_remove_path(const char *serial, const char *path);
// convenience function to wait for a successful process execution // 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) { SDL_bool server_install(struct server *server, const char* apk_path) {
adb_install(server->serial, apk_path, DEVICE_SERVER_PATH); process_t process = adb_install(server->serial, apk_path);
// async command return process_check_success(process, "adb install");
return SDL_TRUE;
} }
SDL_bool server_start(struct server *server, const char *serial, Uint16 local_port, SDL_bool server_start(struct server *server, const char *serial, Uint16 local_port,